Why is my animation not working?

I have a script and an animation that works for when a tool is equipped but when the tool is equipped, only the left arm works and the animation holds for 1 second and then falls:

Even when I walk, the animation stops.

Here is the local script:

local tool = script.Parent
local char,hum,track

tool.Equipped:Connect(function()
	char = tool.Parent
	hum = char:WaitForChild("Humanoid")
	if not track then
		track = hum.Animator:LoadAnimation(tool.Animation)
	end
	track:Play()
end)

tool.Unequipped:Connect(function()
	track:Stop()
	char, hum = nil,nil
end)

What is happening?
Thanks

is the animation’s priority set to action?? that could be the issue.

Is the animation looped? If not, make it looped. Maybe that’s the problem.