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: Allow switching between tools but disable putting one down?

Previous Thread :: Next Thread 
Babyfett1 is not online. Babyfett1
Joined: 02 Apr 2011
Total Posts: 141
26 Nov 2015 10:04 AM
I can't figure out a script so that, say, I pull out tool 1, and can switch tools, but I always have to hold one. Anybody have some help?
Report Abuse
mircostaff is not online. mircostaff
Joined: 28 Sep 2012
Total Posts: 288
26 Nov 2015 10:16 AM
Every tool has a box that, if you check it off, will disable dropping of tools. All you need to is just check that box (or in this case, set it to true)
Report Abuse
Babyfett1 is not online. Babyfett1
Joined: 02 Apr 2011
Total Posts: 141
26 Nov 2015 03:31 PM
I meant so you always have to be holding an item in your hand and you are able to switch between them.
Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
26 Nov 2015 03:33 PM
You would record whatever tool the player currently has out. When they put it away, wait a very small amount of time. If another tool hasn't been equipped in that time, it means they didn't switch a tool and just tried to put it away. Force them to re-equip the last tool they had out.
Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
26 Nov 2015 03:34 PM
You can force them to equip a tool using the EquipTool() function in their Humanoid.

http://wiki.roblox.com/index.php?title=API:Class/Humanoid/EquipTool
Report Abuse
mircostaff is not online. mircostaff
Joined: 28 Sep 2012
Total Posts: 288
26 Nov 2015 03:34 PM
You know the normal Roblox Inventory allows that right? You could also just make your own.
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