|
| 14 Sep 2015 06:17 PM |
just found out this a real function. very useful. |
|
|
| Report Abuse |
|
|
Garfanzo
|
  |
| Joined: 24 Apr 2015 |
| Total Posts: 742 |
|
| |
|
|
| 14 Sep 2015 06:20 PM |
Humanoid:EquipTool(Tool)
for instance:
game.Players.LocalPlayer.Character:findFirstChild("Humanoid"):EquipTool(script.Parent) |
|
|
| Report Abuse |
|
|
Garfanzo
|
  |
| Joined: 24 Apr 2015 |
| Total Posts: 742 |
|
|
| 14 Sep 2015 06:21 PM |
| So you put that in the tool I imagine? |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 06:22 PM |
for that example, yes. but I imagine it can be used in other ways too.
|
|
|
| Report Abuse |
|
|
Garfanzo
|
  |
| Joined: 24 Apr 2015 |
| Total Posts: 742 |
|
|
| 14 Sep 2015 06:23 PM |
| Oh wow, I just added it to my tool, very nice function, thanks for sharing! |
|
|
| Report Abuse |
|
|
Garfanzo
|
  |
| Joined: 24 Apr 2015 |
| Total Posts: 742 |
|
|
| 14 Sep 2015 06:23 PM |
| Yeah I could see haveing hot keys to let you access different tools, that would be nice. |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 08:06 PM |
| yeah, such and scrolling to cycle through tools. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 08:58 AM |
can be used with this script for custom backpack controls
------------------------------------------------------------------------------- -- MouseFunctions -- 7/17/2015 -- Coded by DogBone343 -- Handles mouse buttons and detects when they are activated. ------------------------------------------------------------------------------- -- Declaration of variables Player = game.Players.LocalPlayer.Name Mouse = game.Players.LocalPlayer:GetMouse() -------------------------------------------------------------------------------
-- Begin Mouse Functions
function WheelForward() -- Fired when the mouse wheel is scrolled back print("mouse scroll forwards by "..Player.."") -- Prints in the output -- Code here end
function WheelBackward() --- Fired when the mouse wheel is scrolled forwards print("mouse scroll backwards by "..Player.."") -- Prints in the output -- Code here end
function MouseButton1D() --- Fired when the left mouse button is clicked print("left click down by "..Player.."") -- Prints in the output -- Code here end
function MouseButton2D() --- Fired when the right mouse button is clicked. print("right click down "..Player.."") -- Prints in the output -- Code here end
function MouseButton1U() --- Fired when the left mouse button is clicked print("left click up "..Player.."") -- Prints in the output -- Code here end
function MouseButton2U() --- Fired when the right mouse button is clicked. print("right click up"..Player.."") -- Prints in the output -- Code here end
-- End Mouse Functions
------------------------------------------------------------------------------- -- Don't edit this, it handles the keybindings Mouse.Button1Down:connect(function() MouseButton1D(Mouse) end) Mouse.Button2Down:connect(function() MouseButton2D(Mouse) end) Mouse.Button1Up:connect(function() MouseButton1U(Mouse) end) Mouse.Button2Up:connect(function() MouseButton2U(Mouse) end) Mouse.WheelForward:connect(function() WheelForward(Mouse) end) Mouse.WheelBackward:connect(function() WheelBackward(Mouse) end) |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2015 11:48 AM |
| Can you equip a tool that is in lighting? |
|
|
| Report Abuse |
|
|
|
| 16 Sep 2015 06:20 PM |
| I think it has to be in the backpack. |
|
|
| Report Abuse |
|
|