local W=script.Parent local h=script.Animation local U W.Equipped:Connect(function()U=script.Parent.Parent.Humanoid:LoadAnimation(h)U:Play()end)W.Unequipped:Connect(function()if U then U:Stop()end end)

local tool = script.Parent
local anim = script.Animation --Animation ID
local track
tool.Equipped:Connect(function()
    track = script.Parent.Parent.Humanoid:LoadAnimation(anim)
    track:Play()
end)
tool.Unequipped:Connect(function()
    if track then
        track:Stop()
    end
end)
