Motor6d breaking IdleAnimation

I’m making a combo animation, on the 3rd attack, I use a motor6d. after this attack if i unequip my weapon the idle animation is still playing forever, untill I re-equip the sword.

This is the code that handles the motor6d:

if currentcomboclicks == 3 then
		sword.Handle.Name = "BodyAttach"
		local m6d = Instance.new("Motor6D",sword)
		m6d.Part0 = char:FindFirstChild("Right Arm")
		m6d.Part1 = sword:WaitForChild("BodyAttach")
	end

Maybe you didn’t add :Stop() while unequips your tool? And also why create Motor6D on 3rd Attack?

You can just set it after the tool equipped. No need to separate from normal tool handle to Motor6D handle.

I already have the animation stop when I unequip my sword. I guess I’m going to have to animate my tool in all 3 attack anims