Thanks to visit codestin.com
Credit goes to docs.blip.game

Players

Players is not creatable, there's only one instance of it. It can only be accessed through its globally exposed variable.

Players is a array containing all Players currently connected to the World.

Player indexes in Players are arbitrary, and may change as players join and leave.

-- print information about all players:
for _, player in Players do
  print(player.Username, player.UserID, player.ConnectionID)
end

-- another way to iterate:
for i = 1, #Players do
  local player = Players[i]
  print(player.Username, player.UserID, player.ConnectionID)
end