SlashCo Wiki

Player:IsStuck

 boolean Player:IsStuck( boolean worldOnly )

Description

Checks if the player's current position is stuck inside solid geometry, by tracing their player hull at their own position.
Always returns false for spectators and players who are noclipping.

Arguments

1boolean worldOnly

If true, only checks against the world instead of players too

Returns

1boolean stuck

Whether the player is stuck