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 » Scripting Helpers
Home Search
 

Re: How can I make this script?

Previous Thread :: Next Thread 
DurstAuric is online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
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 is not online. 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
DurstAuric is online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
29 Jun 2014 07:39 AM
Doesn't it need a onClick?

~DurstAuric | GFX Designer~
Report Abuse
DurstAuric is online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
29 Jun 2014 07:41 AM
It worked.. Sorta, I can fix it from here, thanks.

~DurstAuric | GFX Designer~
Report Abuse
DurstAuric is online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
29 Jun 2014 07:52 AM
Never mind.. Anyway for it to wait a few seconds before deleting it?

~DurstAuric | GFX Designer~
Report Abuse
DurstAuric is online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
29 Jun 2014 07:54 AM
Any way*

~DurstAuric | GFX Designer~
Report Abuse
Seizurezxzz is not online. Seizurezxzz
Joined: 12 Feb 2013
Total Posts: 1297
29 Jun 2014 07:58 AM
Tool = script.Parent
Tool.Activated:connect(function ()
print " Activated "
wait(3)
print " Deleting "
Tool:remove()
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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