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 a script repeat its self?

I'm making something using this script:

wait(3)

Game.Workspace.Part.BrickColor = BrickColor.new("New Yeller")

wait(3)

Game.Workspace.Part.BrickColor = BrickColor.new("Maroon")

and I want it to repeat so it goes: RED, YELLOW, RED, YELLOW, ETC.

How do I make it repeat?

2 comments

0

Put that in this

0

while true do wait() end

1 answer

✓ Accepted answer

Wrap it in a while loop:

while true do
    wait(3)
    game.Workspace.Part.BrickColor = BrickColor.new("New Yeller")
    wait(3)
    game.Workspace.Part.BrickColor = BrickColor.new("Maroon")
end

2 comments

0

?????? Thats it.

0

That's it

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