I am trying to make a street light that turn on at night and turn off when it is day. can some help me to fix this script.
light = Script.Parent.PointLight
function
if
game.Lighting.TimeOfDay=17 then
light.range=0
end
end
function
if
game.Lighting.TimeOfDay=7 then
light.range=30
end
end

1 comment
thank that worked