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 » Scripting Helpers
Home Search
 

Re: Stupid Question...

Previous Thread :: Next Thread 
wickedninja12 is not online. wickedninja12
Joined: 07 Sep 2010
Total Posts: 145
18 Jan 2013 05:28 PM
I have a rather stupid question I need the answer to. I am trying to have an object be inserted as a Child of X player's head, but it obviously can't find the player's head. Here is the 'local' statement of the CHARACTER. I put GuiOwner.Head further on in the script.

local GuiOwner = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Character

Please help me!
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
18 Jan 2013 05:40 PM
If this is a LocalScript, you just just do this:

local GuiOwner = game.Players.LocalPlayer.Character

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
wickedninja12 is not online. wickedninja12
Joined: 07 Sep 2010
Total Posts: 145
18 Jan 2013 05:46 PM
Thanks! I had forgotten all about LocalPlayer until now!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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