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

lighting/time of day?

Asked by 9 years ago

i want the time of lights to turn off at 7 and to turn on at 10 what is wrong with this script im trying to put it in a part doesn't work correctly while true do wait(1) if game.Lighting.TimeOfDay == "7:00:00" then script.pointlight.enabled = false script.Parent.Transparency = .4 elseif game.Lighting.TimeOfDay == "18:00:00" then script.pointlight.enabled = true script.Parent.Transparency = 0 end end

0
Block code plz. Tesouro 407 — 9y

1 answer

Log in to vote
0
Answered by
Ortron 27
9 years ago

""7:00:00" then script.pointlight.enabled = false " enabled has to be uppercase I believe.

Ad

Answer this question