From c3033cc4eb0a62bc5d3bb25beb6857df72701e42 Mon Sep 17 00:00:00 2001 From: SillyMeTimbers <70308288+SillyMeTimbers@users.noreply.github.com> Date: Sat, 8 Feb 2025 23:15:41 -0500 Subject: [PATCH] Update main.luau Updated 479 to use :GetDescendants() rather than :GetChildren() to allow lights not directly parented to the object to be used. --- src/handler/EVHEvent/loader/modules/main.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler/EVHEvent/loader/modules/main.luau b/src/handler/EVHEvent/loader/modules/main.luau index 3b8b371..672889d 100644 --- a/src/handler/EVHEvent/loader/modules/main.luau +++ b/src/handler/EVHEvent/loader/modules/main.luau @@ -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)