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?
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?
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.
Good try to answer but I doubt this guy even knows what a variable is if he asks this...
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.
2 comments
:Remove(), :Destroy(), variable = nil
simple