Tool Destroy Script

I was able to successfully destroy the item, after a wait time, upon use. However, I’m unsure as to how to correctly go about this. I have multiple of the same item in my inventory, and whenever I activate the item, if I unequip it and equip a different item with the same name, it deletes the item I have equipped rather than the one I activated with. Furthermore, if I activate an item and then unequip it and equip a different item with a different name, no item is destroyed.

How do I make it to where if I activate one item, no matter what item I switch to, same name or not, it deletes the item I activated?

Just do something like this inside your tool

script.Parent.Activated:Connect(Function()
    --do whatever code here or something
    script.Parent:Destroy()
end)

That way whenever the tool is activated it just destroys the tool at the end
If i misunderstood your problem please let me know

1 Like

I’m so sorry for wasting your time lmao, this is so simple and I over complicated it.

Thank you for the help!

No worries i overthink stuff all the time when making stuff