Tool Animation Not Playing Properly

I made an animation for my sword tool, but it doesn’t play properly. The arm holding the sword stays in place. What could be causing this, and how can I fix it?

video (vimeo.com)

Heres my tool animation code:

local Player = game.Players.LocalPlayer
repeat wait() until Player.Character
local Character = Player.Character
local Humanoid = Character:FindFirstChild("Humanoid")
local tool = script.Parent
local Animation = Humanoid:LoadAnimation(script.Animation)

local debounce = false


tool.Activated:Connect(function()
	if debounce == false then
		debounce = true
		Animation:Play()
		wait(3)
		debounce = false
end

tool.Unequipped:Connect(function()
	Animation:Stop()
	end)
end)
1 Like

Make sure the animation priority is Action or higher- quick fix, just add this line of code:

Animation.Priority = Enum.ActionPriority.Action4

(this line should be right after you load the animation)

2 Likes

I changed it to Animation Priority instead of Action Priority and it works! Thank you so much

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.