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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Is it possible..

Previous Thread :: Next Thread 
KLGA is not online. KLGA
Joined: 19 Apr 2014
Total Posts: 2571
02 Aug 2014 02:55 PM
To make it so if a player unequips a tool, the tool then exits the player's inventory and goes on the ground as if they dropped it with backspace? If so how can I do that?
Report Abuse
GamesKeith is not online. GamesKeith
Joined: 28 Jul 2014
Total Posts: 2261
02 Aug 2014 02:56 PM
it's possible

but im lazy
Report Abuse
KLGA is not online. KLGA
Joined: 19 Apr 2014
Total Posts: 2571
02 Aug 2014 02:57 PM
How do you detect if a tool is unequipped? Is it like Tool.Unequipped or something?
Report Abuse
KLGA is not online. KLGA
Joined: 19 Apr 2014
Total Posts: 2571
02 Aug 2014 02:59 PM
Wiki says yes. So I could do like:
Tool.Unequipped:connect(function(dropt)
Tool.Parent = workspace
end)
?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Aug 2014 03:03 PM
That should work, but you should probably yield if you get the error "trying to set parent to blah at the same time setting to blah"
Report Abuse
KLGA is not online. KLGA
Joined: 19 Apr 2014
Total Posts: 2571
02 Aug 2014 03:07 PM
yes I think i got that.
Something unexpectedly tried to set the parent of Bomb to Workspace while trying to set the parent of Bomb. Current parent is Backpack.
How can I fix it from doing this?
Report Abuse
KLGA is not online. KLGA
Joined: 19 Apr 2014
Total Posts: 2571
02 Aug 2014 03:08 PM
Nevermind, I just had to add a wait.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Aug 2014 03:08 PM
Add like a wait(0.1) before parenting to workspace
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