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
""7:00:00" then script.pointlight.enabled = false " enabled has to be uppercase I believe.