So I have recently learned how to animate tools so I made a pickaxe, sword, and axe. The pickaxe and sword have the same animation id and they both play the animation I made the axe swing animation different but now the axe animation won't play. All of the have practically the same thing inside the tools: A animation, local script to play animation, handle, and the blades. Here is the code for the local scripts which they all share:
local CanSwing = true
script.Parent.Activated:Connect(function()
if CanSwing == true then
CanSwing = false
local player = game.Players.LocalPlayer
local humanoid = player.Character.Humanoid
local animation = script.Parent.Animation
local SwingAnim = humanoid:LoadAnimation(animation)
SwingAnim:Play()
wait(.75)
CanSwing = true
end
end)

1 comment
Did you make it so your animation's priority is Action?