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 add certain amount of players to one team?

I want to know how to add a certain amount of players to 1 team. This is the script that I have so far

01 blue = game.Teams.Blue --This defines the blue team. Make sure a blue team exists! 02 red = game.Teams.Red --This defines the red team. Make sure a red team exists! 03

04 function onJoin(player) 05 --define your function below 06

07

08 end 09

10 game.Players.PlayerAdded:connect(onJoin)

1 answer

To change the team of a player, simply use the TeamColor property of Players and set it to the same color as the team you want the player to change to.

game.Players.Player.TeamColor = BrickColor.new("Really red")

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