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)
To change the team of a player, simply use the TeamColor
property of Player
s 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")