while true do
game.Lighting.TimeOfDay = ("12:00:00")
game.Workspace:GetChildren("PointLight").Enabled = false
wait(5)
game.Lighting.TimeOfDay = ("01:00:00")
game.Workspace:GetChildren("PointLight").Enabled = true
wait(5)
end
Any parts that have PointLight shall be enabled at 01:00:00 not 12:00:00.

1 comment
There's no need to check if it has at least 1 child--it works exactly the same for empty objects. That said, is there a good reason to use
nextinstead of pairs?