GetTeams (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator better example (imo) |
>ArceusInator No edit summary |
||
Line 9: | Line 9: | ||
{{Example| | {{Example|<pre> | ||
<pre> | |||
local teams = Game:GetService("Teams"):GetTeams() | local teams = Game:GetService("Teams"):GetTeams() | ||
Revision as of 21:38, 13 January 2011
Example
local teams = Game:GetService("Teams"):GetTeams() if type( teams ) == "table" then print( "There are " .. #teams .. " teams." ) print( "They are as follows:" ) for i = 1, #teams do print( "Team " .. i .. ": " .. teams[i].Name ) end else print( "There are no teams!" ) end