Guide 1 Docs 2 Reference 3

Function of Players

players.on_join

Calls fn when a player arrives: on the globals when a client connects, on a room's table each time a player moves into it.

players.on_join(fn: (player: Player) -> ()) → Connection

Parameters

fn(player: Player) -> ()required

Returns

Connection

Used in