Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help me fix this lighting fade script? I'm trying to make a spotlight's range fade to 0.

Asked by 5 years ago
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? fredfishy 833 — 5y
0
No error, I just can't get the outcome I want from it. (just won't work) YhuIsTooMadd 0 — 5y
0
maybe its the lighting system not updating correctly fanofpixels 718 — 5y

Answer this question