I have 3 tools that use this script and only 2 of them work. The third one only works in studio.
script.Parent.Equipped:Connect(function()
local animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
animation:Play()
script.Parent.Unequipped:Connect(function()
animation:Stop()
end)
end)

5 comments
Did you upload the animation or get it from someone else?
Made it myself and uploaded it.
Is the animation action or what?
Type of animation (e.g. Action Movement), as well as whether you uploaded it on your own account or on a group game.
It is movement.