Script:
local tool = script.Parent local anim = Instance.new("Animation") anim.AnimationID = "http://www.roblox.com/Asset?ID=8490330226" local track tool.Equipped:Connect(function() track = script.Parent.Parent.Humanoid:LoadAnimation(anim) track.Priority = Enum.AnimationPriority.Action track:Play() end) tool.Unequipped:Connect(function() if track then track:Stop() end end)
local tool = script.Parent local anim = Instance.new("Animation") anim.AnimationId = "rbxassetid://8490330226" local track local player = game.Players.LocalPlayer tool.Equipped:Connect(function() track = player.Character.Humanoid:LoadAnimation(anim) track.Looped = true track.Priority = Enum.AnimationPriority.Action track:Play() end) tool.Unequipped:Connect(function() if track then track:Stop() end end)