GetTeams (Method)

From Legacy Roblox Wiki
Revision as of 14:18, 27 December 2010 by >MrNicNac (Added an example.)
Jump to navigationJump to search
GetTeams( )
Returns Table teams
Description: Returns a table of all of the teams.
Member of: Teams


Example
This is an example of using the method above to get all the teams and remove them. Includes the generic for loop.
local TeamTable = Game:GetService("Teams"):GetTeams()

for i,k in pairs(TeamTable) do
   k:Remove()
end