A player can choose many tools to use but when they choose a different magic, it will destroy the gear, but if the user used the tool, and they quickly choose a different magic, it will abort? What can I do? Is there an event like that to still work even if it is destroyed? Example (not full work this is just a thing to know that what am i really talking about):

--this is the gear
script.Parent.Deactivated:Connect(function()
	script.Parent.RemoteEvent:FireServer()
end)

(i didn't want to put my original work here because it will take a lot of codes to do..)