Team
Team : Instance
Overview
Team Class and Teams services are used to divide players into teams within the game, and to manage interaction between teams. This allows creators to design team-based gameplay.
Description
It allows creators to manage teams and their properties within the game environment. Its primary purpose is facilitating communication between players and game logic related to teams.
Properties
TeamColor
BrickColor
TeamColor is a property of the Specifies the team color of the team
Code Samples
Methods
Events
PlayerAdded
This event is triggered when a player is added to the team. It allows developers to execute custom logic or update the team status dynamically in response to the addition of a new player.
Parameters
Code Samples
PlayerRemoved
PlayerRemoved is triggered when a player is removed from the team. It allows developers to handle cleanup tasks, update team rosters, or perform any necessary actions when a player leaves a team.