Essentially you would want to create two different tables that host the different teams. When you add the players to the game you will check to see which team has fewer players and add it to that one. If the teams have an even amount of players you will want to choose a random team or just choose any team. You will want to change the spawn locations to team-specific spawns and send the player to the CFrame accordingly. You will then want to update the died and removed connections to remove the player from the team tables that they are a part of. You will want to then change the if statement that checks if there is 1 player left and change that to see if either team has players (size of the table). If one of the teams won by the time the timer runs out then you will iterate over the winning team and reward each player. That is how I would do it at least.
2 Likes