Players.Get
Declaration
Players.Get(number PlayerID)
Description
Retrieves the Player object for the specified PlayerID, containing their name, powerups and other stats, otherwise returns a Player object with ID set to -1 if the player doesn't exist.
--Prints the name of the player with ID 0 in the Scripts Console
local firstPlayer = Players.Get(0);
Print(firstPlayer.Name);
Note
Player IDs must be whole numbers.
Keep in mind the Player IDs aren't necessarily ordered. Players can join and leave in the lobby, potentially several times, increasing their ID, which is why using Players.GetAll is advised if you want to target a player at a specific slot.