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: How do I force a player to select a tool properly?

Previous Thread :: Next Thread 
ArrayOfBacon is not online. ArrayOfBacon
Joined: 14 Mar 2012
Total Posts: 3
17 Mar 2012 06:11 PM
I tried putting it in the character model which worked but scripts inside of the tool didn't run.
Report Abuse
ArrayOfBacon is not online. ArrayOfBacon
Joined: 14 Mar 2012
Total Posts: 3
17 Mar 2012 06:46 PM
BAM. FIXED.

So long as you don't manually force the player to move their current tool into their backpack, roblox will do the rest of the work for you.
Report Abuse
KingBoo is not online. KingBoo
Joined: 16 Jul 2007
Total Posts: 8495
17 Mar 2012 08:04 PM
Character.Humanoid:EquipTool(instance Tool)
Report Abuse
LPGhatguy is not online. LPGhatguy
Forum Moderator
Joined: 27 Jun 2008
Total Posts: 4725
17 Mar 2012 08:09 PM
When did they add Humanoid::EquipTool? I've just been putting it in their backpack, waiting a frame, then putting it in their character. But okay.
Report Abuse
KingBoo is not online. KingBoo
Joined: 16 Jul 2007
Total Posts: 8495
17 Mar 2012 08:10 PM
@LPG,
You still have to wait a frame, sadly. :\
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
17 Mar 2012 08:49 PM
I do this

t = Instance.new("Tool")
Instance.new("Part",t).Name = "Handle"
Instnace.new("Part",t).Name = "RobloxBuildTool" -- No clue if that's needed, I just use it because I do. :3
t.Equipped:connect(function()
-- ST00F
end)
t.Parent = game.Players.LocalPlayer.Character
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
17 Mar 2012 08:49 PM
Wait I just helped a spam thread...
WHAT'S WRONG WITH ME???
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
17 Mar 2012 09:21 PM
This thread is fine here.
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