Dinobird
|
  |
| Joined: 29 Apr 2009 |
| Total Posts: 213 |
|
|
| 25 Aug 2014 04:07 PM |
| I am trying to make a script that takes the place of the backpack gui. I just need a way to make the player use a tool. |
|
|
| Report Abuse |
|
|
Tripane
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 11432 |
|
|
| 25 Aug 2014 04:11 PM |
Use the EquipTool method.
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/EquipTool |
|
|
| Report Abuse |
|
|
Dinobird
|
  |
| Joined: 29 Apr 2009 |
| Total Posts: 213 |
|
|
| 25 Aug 2014 07:19 PM |
| Can that be triggered from the client? |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
| |
|
Dinobird
|
  |
| Joined: 29 Apr 2009 |
| Total Posts: 213 |
|
|
| 26 Aug 2014 08:14 AM |
| I will be sure to use that, and does it clone the tool it equips, or does it just take it? |
|
|
| Report Abuse |
|
|
iIikeyou
|
  |
| Joined: 07 Mar 2012 |
| Total Posts: 1659 |
|
|
| 26 Aug 2014 08:58 AM |
Do not use EquipTool.
The tool must be in the workspace in order for that to work; allowing possible lag or glitches to let it go to another player or fall off the map and be deleted. Simply call the UnequipTools method of Humanoid, and then reparent the Tool/Hopperbin to the player's character. |
|
|
| Report Abuse |
|
|