How do I make an item disappear after using it?

Yes, it is in the handle. Should I change it?

Uhm that script is a virus- Last synced is a old virus to take over your game look at near the end of the comment by scrolling you’ll see a require script that’s a virus.

Also do

tool.Activated:Connect(function()
    --stuff here to do
    tool:Destroy()
end)

Which script is it? I don’t see anything

Image tool as any object btw I just use tool

The image you sent at first

This is the virus that took over my game

It is not, I wrote that script just today.

Then what is the Last synced virus doing there? Send me the entire script by copy and pasting it. Go into the script and press CTRL+A and CTRL+C then CTRL+V to paste

The last synced was when you last edited it. Dude I just wrote that script.

I assume you have a “Door” script. Could you show that & where the door is located (along with the name)?

Hm weird that was a virus for me xd anyways when I said Tool in the script that’s any object that works with the event

image
It is the white clear part

Not an image of the door… The door model/part in explorer (with the script)

image

Also the script please…
Any errors when you run the game?

No errors in the game right now. And ok

image

Ahhhh… You said this was in the handle.
Not script.Parent.Parent:Destroy(), but instead

For the first event:
hit.Parent:Destroy()
For the second event:
player.Backpack["White Key"]:Destroy()

3 Likes

You used hit.Parent.name but it is hit.Parent.Name roblox Lua(U) is very case sensitive so make sure to use Name not name

.name does work although .Name as you suggested, should be used instead.

1 Like

Now it removes the key, but the door does not disappear.