Jump to content

Roblox Studio Tutorials/Effects and lighting

From Wikibooks, open books for an open world

This 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