Why isn't the animation stopping when I Unequip a tool? Thanks for helping!

script.Parent.Equipped:Connect(function()
	local idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle)
	idle:Play()
end)

  
script.Parent.Unequipped:Connect(function()
	local idle = script.Parent.Parent.Humanoid:LoadAnimation(script.Idle)
	idle:Stop()
end)