Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how do I make this script loop?

a = game.Workspace.test.PointLight
wait(4)
a.Color = Color3.new(1, 0, 0) 
wait(2)
a.Color = Color3.new(1, .156, 0) 
wait(2)
a.Color = Color3.new(1,1,0)
wait(2)
a.Color = Color3.new(.34,1,0) 
wait(2)
a.Color = Color3.new(0,.12,1)
wait(2)
a.Color = Color3.new(1,0,1)

thanks, -bb1

1 comment

0

I probably should have looked at the wiki before I posted this...

2 answers

The coding would look like this:

while true do
a = game.Workspace.test.PointLight
wait(4)
a.Color = Color3.new(1, 0, 0)
wait(2)
a.Color = Color3.new(1, .156, 0)
wait(2)
a.Color = Color3.new(1,1,0)
wait(2)
a.Color = Color3.new(.34,1,0)
wait(2)
a.Color = Color3.new(0,.12,1)
wait(2)
a.Color = Color3.new(1,0,1)
end

This discussion is preserved as it was. New answers, comments, and votes are closed.