Hello! I need help finding out if the player is walking or not. I tried Humanoid:GetState()
, I tried the Running event inside of the Humanoid, but it doesn’t seem to work. If you can help, please let me know. Thanks! WE
.Running usually works for me, but have you tried Humanoid.MoveDirection?
https://developer.roblox.com/en-us/api-reference/property/Humanoid/MoveDirection
2 Likes
What I need is a solution to this:
This happens when a player lets go of shift before the jump ends.
Humanoid.Jumping:Connect(function(Status)
if SprintAnimationTrack.IsPlaying then
SprintAnimationTrack:Stop()
Humanoid.StateChanged:Connect(function(Old, New)
if New == Enum.HumanoidStateType.Landed then
if Humanoid.Running then
SprintAnimationTrack:Play()
end
end
end)
end
end)
MoveDirection seems to work. Thanks for the solution.
if Humanoid.MoveDirection ~= Vector3.new(0, 0, 0) then
3 Likes