You can divide players in your game into multiple teams using the Teams service. By configuring the Teams service and assigning teams, players are automatically differentiated by their display name color, as well as their name in the default player list.
Add teams
By default, no teams are configured. To add teams:
Select the new Team object and, in the Properties window, change the team Name and assign a unique matching TeamColor. A team's name and color both appear in the game's player list.

Repeat these steps to add more teams.
Assign players to teams
By default, Roblox auto-assigns new players joining the game to the team with the fewest members, and you can still use the following steps to assign players to a specific team.
Uncheck the AutoAssignable checkbox.

Assign a player to a specific team by changing their Player.Team property to the team name in the format of Teams[TEAM_NAME], such as Teams["Blue Team"].
Team spawn locations
You can use SpawnLocation objects to spawn players of different teams at specific locations when they join or respawn. By default, SpawnLocations are neutral and any player can spawn upon them, so you need to lock each one to the team that can occupy it using the following steps:
Using the Explorer, insert a new SpawnLocation into the workspace.
With the new SpawnLocation selected, uncheck its Neutral checkbox in the Properties window.
Set the spawn's TeamColor property to the TeamColor of an existing team. For example, if the intended team's Team.TeamColor is Lapis, set the spawn's SpawnLocation.TeamColor to Lapis as well.

