Stop animation on unequipped

How do I make it so that when this tool is unequipped, the animation stops playing?

script.Parent.Equipped:connect(function(m)
	m.Button1Down:connect(function()
		 hum = game.Players.LocalPlayer.Character.Humanoid
		 anim_feet = hum:LoadAnimation(script.Parent.Animation)
		current = anim_feet
		current:Play()
	end)
end)

You can connect that to an Unequipped event, storing the animation as a variable, then stopping it:

local hum -- Localizing variables(good practice)
local anim_feet -- Localizing variables(good practice)
local current -- Localizing variables(good practice)
local MouseConnection -- Making a variable so the 'Button1Down` connection is disconnected, or it will run when the tool is unequipped

script.Parent.Equipped:connect(function(m)
	MouseConnection = m.Button1Down:connect(function() -- Setting the connection to a variable
		hum = game.Players.LocalPlayer.Character.Humanoid
		anim_feet = hum:LoadAnimation(script.Parent.Animation)
		current = anim_feet
		current:Play()
	end)
end)

script.Parent.Unequipped:Connect(function()
    current:Stop()
    MouseConnection:Disconnect() -- Disconnecting the connection so it wont run when the tool is unequipped
end)

It’d be better if you use Activated though, they are specifically made for tools that get activated via the mous.