Noverwyn Documentation
API set:
148

‹ All natives

Namespace: PLAYER API set: server Language: Luau Improve

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: playerJoin is not replayed for players already there.

Namespace: PLAYER

Namespace: ENTITY

Namespace: ZONE

Namespace: TIME

Namespace: SCRIPT

Namespace: EVENT

Namespace: CLIENT

Namespace: CLIENT EVENT

Namespace: UNIFORM

Namespace: WAND

Namespace: LOOK

Namespace: CONTROL

Namespace: GAIT

Namespace: VOICE

Namespace: ATELIER

Namespace: TOOL