Skip to content

Commit

Permalink
Merge pull request #33 from SillyMeTimbers/patch-1
Browse files Browse the repository at this point in the history
[EVH] Check all descendants instead of children of lights for emitters
  • Loading branch information
parker02311 authored Feb 9, 2025
2 parents c1d706b + c3033cc commit 0502219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler/EVHEvent/loader/modules/main.luau
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ local function addLight(vehicleData: types.vehicle, light: Instance)
for _, color in vehicleData.configuration.lightSettings.colors do
table.insert(colorNames, color.name)
end
for _, lighto in light:GetChildren() do
for _, lighto in light:GetDescendants() do
if lighto:IsA("Light") then
lighto.Enabled = false
lighto:SetAttribute("defaultBrightness", lighto.Brightness)
Expand Down

0 comments on commit 0502219

Please sign in to comment.