Players.GetAll

Declaration

Players.GetAll()

Description

Retrieves the Player objects for all the players, containing their name, powerups and other stats.

--Prints the names of all the players in the Scripts Console
local allPlayers = Players.GetAll();

for i, player in ipairs(allPlayers) do 
    Print(player.Name);
end