PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

WalkSpeed

Humanoid

float

WalkSpeed is a property that describes how quickly this Humanoid is able to walk, in studs per second. This property defaults to the value of StarterPlayer/CharacterWalkSpeed, which defaults to 16, meaning a Roblox Player/Character can move 16 studs in any direction each second by default.

Notes

  • When controlled on a mobile device or a gamepad, a humanoid can walk slower than their WalkSpeed if the controlling joystick is moved closer to its center
  • Roblox’s default animation script scales a humanoid’s movement animations based on how fast it is moving relative to the default speed of 16 studs/sec
  • The speed the Humanoid is currently walking at can be obtained using the Humanoid/Running event
  • Movement speed is reduced to 87.5% WalkSpeed when swimming and 70% WalkSpeed when climbing


Code Samples


Freeze a Player

This example freezes a player in place by setting their walkspeed to 0. When a humanoid’s walkspeed is 0, that player will not be able to move their character.