Roblox Studio Tutorials/Effects and lighting
...
editThis tutorial will be about how to make a light that goes off in the day and goes on at night. First, make the part that shines. Insert a script and a PointLight inside it. And let's say it is named "Light". Script:
light = game.workspace.Light minutesAfterMidnight = 0 while true do() minutesAfterMidnight =[press space]minutesAfterMidnight+10