So I was able to get the weapon animations to work but whenever I remove the weapon the animation stays in place. I'm not sure how I can stop the animation when the weapon is unequipped. Here is the 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 tool = script.Parent
tool.Equipped:Connect(function()
anim:Play()
end)

1 comment
There we go I wrote that but instead of stop I used destroy or delete. But yeah that should work.