Function of Players
players.on_place
Asks fn before a player puts a block down; return false to cancel it. A missed deadline denies the place.
players.on_place(fn: (player: Player?, pos: Vec3, block: string) -> boolean?) → Connection
Parameters
Returns
ConnectionUsed in
Placing it fires `players.on_place`, then the block's `on_place` with theCustom blocks`players.on_break` and `players.on_place` run **before** the world changes. ACancelling eventsplayers.on_place(function(player, pos, block) return false end) -> connectionCancelling events(kind `"break"`), `players.on_place` (kind `"place"`) andLimits and reload