|
| 18 Jan 2016 05:58 PM |
I was wondering if there was a way to make it so that when you are at a trash can a gui will pop up and ask if you want your tools recycled.
I made this script here, but I'm not sure how to make it switch from onTouchced to the funtion where I touch on the gui.(I don't know the function name)
function onTouched(hit) if hit.Name == "Handle" then hit.Parent:remove() end end
script.Parent.Touched:connect(onTouched)
I'm very new to scripting so any help would be appreciated. Thanks! |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 18 Jan 2016 06:26 PM |
basically u want to
click a text button and remove ur tool?
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$216 Tx387 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 06:30 PM |
| Yeah, click a textbutton and make it clear your inv |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 18 Jan 2016 06:36 PM |
>text button #code local plr = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() plr.Backpack.Tool:Destory() end) --Best i can do rn
http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$216 Tx387 (づ ゚ ³ ゚)づ |
|
|
| Report Abuse |
|
|