The GetTeam function returns a table containing the game’s
Note this will only return Team objects that are directly parented to the
Teams service. For this reason it is recommended developers only parent
Team objects to the
Teams service and not to other
Instances (or to each other).
An array of
The example below prints the number of players on each Team.