I’m making a Climb System.
When player is Climbing,they can move on the wall.So i need detect their move direction.
But humanoid.Running and detect humanoid’s State is useless.How can i detect player move when their speed is 0?
Humanoids have a property called MoveDirection, which you can use to tell if they are moving with this:
if Hum.MoveDirection ~= Vector3.zero then
print('Walking')
end
or
if Hum.MoveDirection.Magnitude > 0 then
print('Walking')
end
2 Likes
You can also read the LinearVelocity of the HumanoidRootPart.
As @FroDev1002 said, check the Vector3 Value, but I wouldn’t check to make sure it’s exactly 0. Maybe try checking if it’s < .1 on all 3 axes instead.
1 Like
Even if you have a walkspeed equal to 0 the Humanoid.MoveDirection
still updates because it describes where the direction the player wants to move.
So you can check if the Humanoid.MoveDirection.Magnitude
is greater than 0
1 Like
2 Likes