Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Remove a certain tool script?

Asked by 6 years ago

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?

1
:Remove(), :Destroy(), variable = nil awesomeipod 607 — 6y
1
simple awesomeipod 607 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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.

0
Good try to answer but I doubt this guy even knows what a variable is if he asks this... User#20388 0 — 6y
0
Actually I do know what a variable is, I'm just a little rusty at my LUA. Thanks. roblox245688679934 18 — 6y
Ad

Answer this question