Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I repeat a script?

Asked by 11 years ago
1game.Players.PlayerAdded:connect(function(player)
2    while true do
3        wait(60)
4        player.TeamColor = BrickColor.new("Bright yellow")
5        wait(180)
6        player.TeamColor = BrickColor.new("Bright blue")
7 
8    end
9end)

I don't know how to make my script repeat it self over and over. Can somebody help me?

0
Uhm, it looks as if it should work fine..? What makes you think it doesnt work? Tempestatem 884 — 11y
0
So Player will change teams forever? DerpTrollark 20 — 11y

1 answer

Log in to vote
-1
Answered by 11 years ago

That is correct, below is the code for a loop.

1while true do
2 
3end
Ad

Answer this question