Exports

There are 4 exports included with the script (both are client-side).

Export
Description
Parameter(s)
Return type

IsPlayerCrouched

Returns if the local player is crouched

None

Boolean

IsPlayerProne

Returns if the local player is laying down or not

None

Boolean

IsPlayerCrawling

Returns if the player is crawling (only when moving forward/backward)

None

Boolean

GetPlayerProneType

Returns if the player is on his back or front ("onfront" or "onback")

None

String

Example

local isCrouched = exports.sit:IsPlayerCrouched()

if isCrouched then
    print("Player is crouching")
else
   print("Player is not crouching")
end

Last updated