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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 26 Nov 2015 03:34 PM |
| You know the normal Roblox Inventory allows that right? You could also just make your own. |
|
|
| Report Abuse |
|
|