Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

lighting/time of day?

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

1 comment

0

Block code plz.

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.