GetPlayers (Method)

From Legacy Roblox Wiki
Revision as of 06:54, 26 January 2012 by >JulienDethurens
Jump to navigationJump to search
GetPlayers( )
Returns table players
Description: Gives you 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