How to make an item disappear after clicking

I have a food in my game, and I want it to be where when the food is equipped, the player will click twice, and the food will disappear. How do I do this?

within the tool’s script you can just have it destroy the tool’s instance

this

local tool = script.Parent
local click = 0

tool.Activated:Connect(function()
      click += 1

      if click >= 2 then
           tool:Destroy()
      end
end

this should be what you are looking for

1 Like