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: Making a backpack gui

Previous Thread :: Next Thread 
YoursTrulyDevAccount is not online. YoursTrulyDevAccount
Joined: 01 Jan 2015
Total Posts: 73
03 Jan 2015 12:00 AM
I am making a gui that lets you equip tools. It will function the same as the roblox default toolbar. However, I do not know how to equip the tool on a player through script. I know there is an equipped event, but I do not know how to force the player to equip it.

What is the logic behind this? (unequip as well)
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
03 Jan 2015 12:00 AM
player.Character.Humanoid:EquipTool(tool)
Report Abuse
preztonizer is not online. preztonizer
Joined: 22 Oct 2008
Total Posts: 375
03 Jan 2015 12:01 AM
you can just parent the tool into their character
Report Abuse
YoursTrulyDevAccount is not online. YoursTrulyDevAccount
Joined: 01 Jan 2015
Total Posts: 73
03 Jan 2015 12:01 AM
Wait wait wait, that's it?

Maybe I had to search harder in the method list.
Report Abuse
YoursTrulyDevAccount is not online. YoursTrulyDevAccount
Joined: 01 Jan 2015
Total Posts: 73
03 Jan 2015 12:02 AM
@prez

I have attempted that, it does not function the same.
Report Abuse
preztonizer is not online. preztonizer
Joined: 22 Oct 2008
Total Posts: 375
03 Jan 2015 12:03 AM
player = game.Players.LocalPlayer;

function equip(tool)
tool.Parent = player.Character
end

function uneuip(tool)
tool.Parent = player.Backpack
end

equip(thetool)
wait(1)
unequip(player.Character:findFirstChild(thetool.Name))
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