Skip to content

Team

Supported Class Scripting & Networking

The Team class represents a faction in a Roblox place. The only valid parent for a Team is in the Teams service.

4 Nova members · 3 modern Roblox members not implemented yet

Description

The Team class represents a faction in a Roblox place. The only valid parent for a Team is in the Teams service. Teams offer a range of features that are useful to developers that can be divided into two rough groups:

  • Features that work 'out of the box'
  • Features developers can program into their game.

Built-in Team Behavior

The following functionality of Teams exists by default and does not require the developer to program any custom behavior.

Optional Extended Team Behaviors

Many developers chose to add the following features to teams in their own code.

  • Implement checks in weapon code to prevent friendly fire.
  • Implement checks in doors or other features that allow only certain teams to use them
  • Periodically reassign teams to maintain team balance

Inheritance

Object → Instance → Team

Nova inheritance: Instance → Team

Properties

AutoAssignable Supported Property This property determines whether Players will be automatically placed onto the Team when joining. If multiple teams have this property set to true, R…
AutoAssignable: bool

This property determines whether Players will be automatically placed onto the Team when joining. If multiple teams have this property set to true, Roblox will attempt to even the teams out when Players are added.

When a Player joins a game they will be assigned to the Team with Team.AutoAssignable set to true that has the fewest players. If no such team is available, Player.Neutral will be set to true.

Note while using this property will help even out teams when players are added, it will not do anything when players are removed. For this reason developers may wish to implement their own team balancing system.

Roblox documentation

AutoColorCharacters Supported Property Deprecated Nova: stored, no effect Legacy team setting. Nova stores it, but no engine code reads it.
AutoColorCharacters: bool

Legacy team setting. Nova stores it, but no engine code reads it.

Historically this controlled whether character models were tinted with the team colour. Nova stores and replicates the boolean, but the 2016 character code no longer consumes it.

Nova behaviour: Stored but ignored by Nova.

Roblox documentation

Score Supported Property Deprecated Nova: stored, no effect Legacy team score. Nova stores it, but no game service reads it.
Score: int

Legacy team score. Nova stores it, but no game service reads it.

This is a free integer storage field, not a functioning scoreboard. Nova stores and replicates it, but does not use it for leaderboards or team logic.

Nova behaviour: Nova keeps this legacy member for compatibility. Roblox's modern deprecation wording may describe later Roblox behaviour; verify it against Nova before relying on the copied text.

Roblox documentation

TeamColor Supported Property This property sets the color of the Team. Determines the Player.TeamColor property of players who are a member of the team. Also determines the color…
TeamColor: 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.

Roblox documentation

Inherited members

Inherited from Instance: 8 properties, 36 methods, 7 events. They are documented on the base class page.

3 modern Roblox member(s) are not implemented yet — expand to inspect

Members declared by Roblox's Team class (or by a missing base class) that Nova does not expose. Use this list to scope a migration; the compatibility guide has the recommended workaround.

Methods

Member Signature Status Notes Flags
GetPlayers Team:GetPlayers(): Instances Not yet Returns a list of Players who are assigned to the Team. A Player is considered assigned if their Player.Team prope… —

Events

Member Signature Status Notes Flags
PlayerAdded PlayerAdded(player: Player) Not yet Fires whenever a Player is assigned to the Team. A player is considered assigned if their Player.Team property is equal to the… —
PlayerRemoved PlayerRemoved(player: Player) Not yet Fires whenever a Player is removed from a Team. This can be due to the Player leaving the game, Player.Neutral… —

Roblox reference: Team

Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.