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 table containing all Players who joined the game.

Players are indexed by their "player ID". Player IDs range from 0 to 15.

⚠️ Don't use ipairs for iterating over Players, but only pairs.

for id, player in pairs(Players) do
  -- id and player.ID have the same value here
  print(id, player.ID, player.Username)
end