function fade()
local lights = script.Parent:GetChildren("SpotLight")
for x = 27, 0, -3 do
for i = 1, #lights do
lights[i].Range = x
end
end
end
script.Parent.Part.ClickDetector.MouseClick:connect(fade)
0
What doesn't work about it? Is there an error printed?fredfishy833— 5y
0
No error, I just can't get the outcome I want from it. (just won't work)YhuIsTooMadd0— 5y
0
maybe its the lighting system not updating correctlyfanofpixels718— 5y