Sword equip sound plays when activated. (tool)

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

  2. What is the issue? Include screenshots / videos if possible!

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local anim = script:WaitForChild("Animation")
script.Parent.Activated:Connect(
	function(a)
		

		script.Parent.Handle["GoodSoun"]:Play()
		script.Parent.Handle.Unsheath:Stop()
		
		script.Enabled = false

		local char = script.Parent.Parent
		local animt = char.Humanoid:LoadAnimation(anim)
		
		animt.Priority = Enum.AnimationPriority.Action
		
		animt:Play()
		script.Parent.Handle.damager.Enabled = true
		
		task.wait(0.4)

		script.Parent.Handle.damager.Enabled = false
		task.wait(0.3)

		script.Enabled = true
		
	end
)

script.Parent.Equipped:Connect(
	function(playSound)
		script.Parent.Handle.Unsheath:Play()
	end
)
script.Parent.Unequipped:Connect(
	function(playSound)
		script.Parent.Handle["Sword Unequip"]:Play()
	end
)

When my sword tool is activated, the equip sound plays. I have made sure that the sound isn’t recursive. I have no idea what this is. No, the solution is not to stop the sound.

Whoops, looks like I just found out the issue, but i’ll pinpoint it for users havinng trouble:

When you disable and then re enable the tool script, the equipped event runs again. That’s why I was having my issue. I disabled the tool instead.

script.Parent.Enabled = false