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

How do I repeat a script?

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?

2 comments

0

Uhm, it looks as if it should work fine..? What makes you think it doesnt work?

0

So Player will change teams forever?

1 answer

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

while true do

end

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