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 10 years ago
game.Players.PlayerAdded:connect(function(player)
    while true do
        wait(60)
        player.TeamColor = BrickColor.new("Bright yellow")
        wait(180)
        player.TeamColor = BrickColor.new("Bright blue")

    end
end)


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 — 10y
0
So Player will change teams forever? DerpTrollark 20 — 10y

1 answer

Log in to vote
-1
Answered by 10 years ago

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

while true do

end
Ad

Answer this question