This script will switch through day and night automatically over a period of time.
game.Lighting.TimeOfDay = "00:00:00:"
wait(1)
game.Lighting.TimeOfDay = "12:00:00:"