So I have an idle animation that is running to the player’s humanoid, and I want when the player walks, the idle animation to stop for a bit and the normal walking animation to play, but it won’t work even though I have the animation priority as an idle animation.
You need to stop the idle animation whenever the player is moving in any direction and then play it again when the player is not moving, stopping the walking animation.
Also make sure the walking animation is of a higher priority than the idle.
but how do I detect when player is moving
good question idk ask someone else cause im not a scripter sorry
use
Character.Humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
if Humanoid.MoveDirection ~= Vector3.new() then
--Player is moving--
else
--Player idle--
end
end)
You might have to make adjustments.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.