Open Asterune
Team

Team

Defines a player team identified by TeamColor.

Creatable
Instance.new("Team")
Inherits
Instance
Replication
Standard

Behavior

Team defines a team under Teams. TeamColor associates spawn locations with the team. Assign a distinct color to each team to avoid ambiguous color matches.

Summary

Members4
Properties3
Methods1

Properties

AutoAssignable

Team.AutoAssignable: boolean = true

Whether the engine can assign joining players to this team during team balancing.

AutoColorCharacters

Team.AutoColorCharacters: boolean = true

Whether characters assigned to this team are tinted with TeamColor.

TeamColor

Team.TeamColor: BrickColor = BrickColor.new(194)

The BrickColor used for team matching and character coloring.

Methods

GetExecutionGroup

Team:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

Example

Luau
local team = Instance.new("Team")
team.Name = "Red"
team.TeamColor = BrickColor.new("Bright red")
team.Parent = game:GetService("Teams")

Teams · SpawnLocation · Players · BrickColor