generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Help?

Previous Thread :: Next Thread 
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
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
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
18 Jan 2016 06:02 PM
1
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
18 Jan 2016 06:12 PM
2
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
18 Jan 2016 06:18 PM
3
Report Abuse
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
18 Jan 2016 06:23 PM
4
Report Abuse
xlaser23 is not online. 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
XanderConway is not online. XanderConway
Joined: 06 Jun 2013
Total Posts: 1037
18 Jan 2016 06:30 PM
Yeah, click a textbutton and make it clear your inv
Report Abuse
xlaser23 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image