This is my code:

local animation
script.Parent.Equipped:Connect(function(Mouse)
        animation = game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):LoadAnimation(script.Parent.Animation)
        animation:Play()
        animation.Looped = true
end)

script.Parent.Unequipped:Connect(function(Mouse)
       animation:Stop()
end)

On the players screen it works great. But if you look at other players when they equip the tool, The animation plays, But then stops. Any help would be great!