Animation Doesn't Stop

I’m trying to make an “UP” animation when the player hold clicks with an axe, and a “DOWN” animation for when they let go. It works, but the down animation plays, and freezes when it should end. I tried using “AnimationTrack.Stopped:Wait()” but again, it literally just doesn’t finish.

There’s not special about the animations, “UP” is looped and “DOWN” isn’t.

(freezes after playing the down animation)

My code:

Tool.Activated:Connect(function()
	Animations["Up"]:Play()
end)
	
Tool.Deactivated:Connect(function()
    Animations["Up"]:Stop()
	Animations["Down"]:Play()
end)

Help is appreciated.

Wouldn’t you need to add Animations["Down"]:Stop() at the beginning of the Tool.Activated event just as you did with “Up” animation?

You’ll have to stop all animations played.

local hum = player.Character:FindFirstChildOfClass("Humanoid")

Tool.Activated:Connect(function()
	Animations["Up"]:Play()
end)
	
Tool.Deactivated:Connect(function()
    for _,v in next, hum:GetPlayingAnimationTracks() do v:Stop(); end
	Animations["Down"]:Play()
end)

Also, make sure that Animations["Down"] and Animations["Up"] are AnimationTracks (they’re returned by hum.Animator:LoadAnimation()) and not directly from Animation object.

Isn’t that the point of not looping an animation though? Isn’t it only suppose to play once?

Then idk. I’m new on the forum.