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: :EquipTool()

Previous Thread :: Next Thread 
DogBone343 is not online. DogBone343
Joined: 09 Jan 2014
Total Posts: 6855
14 Sep 2015 06:17 PM
just found out this a real function.
very useful.
Report Abuse
Garfanzo is online. Garfanzo
Joined: 24 Apr 2015
Total Posts: 742
14 Sep 2015 06:18 PM
How does one use it?
Report Abuse
DogBone343 is not online. DogBone343
Joined: 09 Jan 2014
Total Posts: 6855
14 Sep 2015 06:20 PM
Humanoid:EquipTool(Tool)

for instance:

game.Players.LocalPlayer.Character:findFirstChild("Humanoid"):EquipTool(script.Parent)
Report Abuse
Garfanzo is online. 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
DogBone343 is not online. DogBone343
Joined: 09 Jan 2014
Total Posts: 6855
14 Sep 2015 06:22 PM
for that example, yes.
but I imagine it can be used in other ways too.
Report Abuse
Garfanzo is online. 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 is online. 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
DogBone343 is not online. DogBone343
Joined: 09 Jan 2014
Total Posts: 6855
14 Sep 2015 08:06 PM
yeah, such and scrolling to cycle through tools.
Report Abuse
DogBone343 is not online. DogBone343
Joined: 09 Jan 2014
Total Posts: 6855
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
SaveDaTurtlesMan is not online. SaveDaTurtlesMan
Joined: 09 Dec 2013
Total Posts: 260
15 Sep 2015 11:48 AM
Can you equip a tool that is in lighting?
Report Abuse
DogBone343 is not online. DogBone343
Joined: 09 Jan 2014
Total Posts: 6855
16 Sep 2015 06:20 PM
I think it has to be in the backpack.
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