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

Ambiet/OutdoorAmbient didn't change?

Asked by 8 years ago

So I have a script that is supposed to change the Ambient and OutdoorAmbient every 61.3 seconds but it does nothing. Also I have no Output error. This is a script in the Workspace:

local l = game:service("Lighting")

while true do
    wait(61.3)
        l.Ambient = Color3.new(126/255, 126/255, 126/255)
        l.OutdoorAmbient = Color3.new(182/255, 182/255, 182/255)
    wait(61.3)
        l.Ambient = Color3.new(0/255, 0/255, 0/255)
        l.OutdoorAmbient = Color3.new(24/255, 24/255, 24/255)
end

Any help is appreciated

Answer this question