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
Whether the engine can assign joining players to this team during team balancing.
Whether characters assigned to this team are tinted with TeamColor.
The BrickColor used for team matching and character coloring.
Returns this instance if it is an ExecutionGroup.
Properties
AutoAssignable
Team.AutoAssignable: boolean = trueWhether the engine can assign joining players to this team during team balancing.
AutoColorCharacters
Team.AutoColorCharacters: boolean = trueWhether 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
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying
Example
local team = Instance.new("Team")
team.Name = "Red"
team.TeamColor = BrickColor.new("Bright red")
team.Parent = game:GetService("Teams")Related APIs
Teams · SpawnLocation · Players · BrickColor