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

Is there a way to change the team of all players?

I just want to know if there is a way to change the team of all the players in a game, if yes, please explain how (It is not necessary to give me a script, just explain how do I do it)

Thank you

1 answer

✓ Accepted answer

You just have to loop through all the players in the game and change their TeamColor.

Example: Change each player's team to the Bright Red team

for _, player in ipairs(game.Players:GetPlayers()) do
	player.TeamColor = BrickColor.new("Bright red")
end

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