PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

TeamColor

Team

BrickColor

This property sets the color of the Team. Determines the Player/TeamColor property of players who are a member of the team.

A lot of Roblox’s default team functionality is based on the team color, rather than the name or object. For example, SpawnLocations can be assigned to a team via SpawnLocation/TeamColor. For this reason it is recommended that developers ensure each Team has a unique TeamColor.

Any player which is a part of a team will have their name color changed to the team’s TeamColor property. They will also be put underneath the team heading on the player list.


Code Samples


Team Only Door

The following code sample will create a door in the Workspace that can only be walked through by Players on the Bright red team.