get the team||doc135506

September 20, 2022

Format

 Entity:getTeam() 
  • The class to which the function belongs:Entity

Description

Get the team instance of the entity object.


Value Returned

type Description
Team instance of team


Code Samples

On the server side of the entity objectmount script, get the entity team id and print

local team = this:getTeam() 
print(team.id)