|
| 29 Jun 2014 07:36 AM |
How can I make a script; when you click, while holding a gear, it deletes the gear from your inventory. Such as a one time use gear, or consumable food, after you've clicked, and "eaten" the food, it deletes it from your inventory.
~DurstAuric | GFX Designer~ |
|
|
| Report Abuse |
|
|
samy22
|
  |
| Joined: 28 Sep 2008 |
| Total Posts: 2181 |
|
|
| 29 Jun 2014 07:38 AM |
Tool = script.Parent
Tool.Activated:connect(function () Tool:remove() end) |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 07:39 AM |
Doesn't it need a onClick?
~DurstAuric | GFX Designer~ |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 07:41 AM |
It worked.. Sorta, I can fix it from here, thanks.
~DurstAuric | GFX Designer~ |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 07:52 AM |
Never mind.. Anyway for it to wait a few seconds before deleting it?
~DurstAuric | GFX Designer~ |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 07:54 AM |
Any way*
~DurstAuric | GFX Designer~ |
|
|
| Report Abuse |
|
|
|
| 29 Jun 2014 07:58 AM |
Tool = script.Parent Tool.Activated:connect(function () print " Activated " wait(3) print " Deleting " Tool:remove() end) |
|
|
| Report Abuse |
|
|