Tool Idle animation broken

I have a tool animation and it works. but when I move around the animation doesn’t play, and I want it to play. How do I fix this?

Script:

local plr = game:GetService("Players").LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local h = char:WaitForChild("Humanoid")
local anim = h:LoadAnimation(script.Parent:WaitForChild("Animation"))

local Box = script.Parent

Box.Equipped:Connect(function()
 anim:Play()
end)

Box.Unequipped:Connect(function()
 anim:Stop()
end)

Sounds like an animation priority issue where the animation you made is less prioritized over walk by default the animation is set to core see below), try changing the .Priority property of the animation track so its above walking.

OMG- I forgot about that! Thanks for the support; it worked!

1 Like