GetPlayerSwitchState
Docslocal retval = GetPlayerSwitchState()Returns
intReturns an integer value.
Examples
Official
local stateSwitch = GetPlayerSwitchState()
if stateSwitch == 5 then
-- Player is in the air
elseif stateSwitch == 12 then
-- Player is not in the air or switch is completed
end