GetPlayers (Method)

From Legacy Roblox Wiki
Revision as of 04:04, 30 December 2010 by >ArceusInator (example)
Jump to navigationJump to search
GetPlayers( )
Returns Table list of players
Description: Gives you a table containing all the players in the server.
Member of: Players









Example
local players = game.Players:GetPlayers()

for i = 1, #players do
   players[i].Character:MoveTo( Vector3.new( 0, 50, 0 ) )
end