players.all
players.all(): { Player }
Returns the list of connected players.
Returns#
{ Player }: a table, in the server's internal order. Empty if nobody is there.
Example#
for _, player in players.all() do
log(player.name, player:position())
end
Notes#
- Use it when a script starts:
playerJoinis not replayed for players already there.