GetPlayers (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens No edit summary |
>JulienDethurens No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Method | <onlyinclude>{{Method | ||
|name = GetPlayers | |name = GetPlayers | ||
|returns = [[table]] | |returns = [[table]] | ||
|description = | |description = Returns a table containing all the players in the server. | ||
|object = Players | |object = Players | ||
}}</onlyinclude> | }}</onlyinclude> |
Revision as of 01:27, 30 January 2012
GetPlayers( ) | |
Returns | table |
Description: | Returns a table containing all the players in the server. |
Member of: | Players |
Example
for _, player in pairs(game.Players:GetPlayers()) do
player.Character:MoveTo(Vector3.new(0, 50, 0))
end