ActionMap:GetState(actionName: string): boolean

Client Only

Queries immediate device state registers to see if a tracked input key is currently being pressed down.

Parameters

actionName*
string
The distinct mapped key identifier string to query.

Returns

booleanTrue if the physical device input registers an active state otherwise false.
if CharacterInputMap:GetState("Sprint") then
    drainStamina()
end