How do I make an unspammable tool

Basically I’m making a sword tool, if the tool is unequipped, then the sword welds to the player’s back. If the tool is equipped, then the sword welds to the player’s right arm.

My issue is that the tool can be spammed (unequip and equip), so it can ruin the welding.

Is there a way to fix that or a way to make the tool unspammable?
I’ve tried using a debounce for the weld, but it didn’t work.

Add a debounce to it, learn more here:

1 Like

If you weren’t able to add a debounce yourself then you should have provided the code which needs fixing.

Turns out I used debounce incorrectly thank you.

Ah, congrats on getting it ironed out.