Garry's Mod Wiki

Player:IsSprinting

  boolean Player:IsSprinting()

Description

Returns whether the player is currently sprinting or not, specifically if they are holding their sprint key and are allowed to sprint.

This will not check if the player is currently sprinting into a wall. (i.e. holding their sprint key but not moving)

Returns

1 boolean
Is the player sprinting or not