Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Remove a certain tool script?

Hi, so I'm trying to make a script that'll remove a certain tool from somebodies inventory if they have it.

So for example I want the script to remove any tool named "ticket". I've tried multiple different scripts, but none of them work. Any ideas?

2 comments

1

:Remove(), :Destroy(), variable = nil

1

simple

1 answer

This requires only one line of code, i'll give it to you. Use Instance:Destroy() to delete anything. Here is the code.

Ticket:Destroy()

Review: We have the ticket, and we just destroy it. This script assumes there is a variable for the tool defined.

2 comments

0

Good try to answer but I doubt this guy even knows what a variable is if he asks this...

0

Actually I do know what a variable is, I'm just a little rusty at my LUA. Thanks.

This discussion is preserved as it was. New answers, comments, and votes are closed.