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: Parent of tool being used?

Previous Thread :: Next Thread 
NinjaFlamez is not online. NinjaFlamez
Joined: 03 Oct 2012
Total Posts: 132
17 May 2015 11:19 AM
So if you have a touch function it would be hit.Parent,
what if i want to find the character that clicked while holding a tool? IS there a command for that?
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
17 May 2015 11:30 AM
Tools get placed into characters when equipped, so knowing that you'd use character = tool.Parent
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
17 May 2015 11:54 AM
local player = game.Players:GetPlayerFromCharacter(hit.Parent)

you would have to use a local script to get the mouse of the player
Report Abuse
NinjaFlamez is not online. NinjaFlamez
Joined: 03 Oct 2012
Total Posts: 132
17 May 2015 11:55 AM
Thanks man didnt realize that i thought they were just placed in the players 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