How to make Tool work with Walk/Idle Animation

Hello! I was wondering if someone could help me with my Tool Animations. I’m having a problem that when I equip my tool the animation is the same as my Idle Animation which is what I want. but when I walk my Walk animation won’t work with the tool and my legs just freeze If I were to place my Walk animation then my legs just move on their own can anyone help me thank you!

Here is all the Scripts and stuff have so far
image

The problem I am having

2 Likes

This is because the animation doesn’t stop after moving, do something like this

script.Parent.Equipped:Connect(function()
Animation:Play()
cl = nil
cl = courtine.Wrap(function()
while wait() do
if Character.Humanoid.MoveDirection.Magnitude > 0 then
Animation:Stop()
end
end
end)()
script.Parent.Unequipped:Connect(function()
cl:Disconnect()
Animation:Stop()
end)
end)
4 Likes

I believe the problem is you possibly have the animation priority set to “Core”. Try changing it to “Action” or “Movement” in the animation editor, and make sure there are no keyframes on the legs.

Hope this resolves your issue.

2 Likes

To have a custom idle animation, you need to have it be action, so it overlaps the default one. Since his works that means it’s most likely action priority

1 Like

is this going to be open source because i dont know how to use animations in scripts