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: GUI that displays the users name and team?

Previous Thread :: Next Thread 
lordwh is not online. lordwh
Joined: 01 Sep 2009
Total Posts: 481
08 Mar 2014 03:27 PM
I need a GUI that displays the users name and team. Can anyone help?
Report Abuse
lordwh is not online. lordwh
Joined: 01 Sep 2009
Total Posts: 481
08 Mar 2014 03:32 PM
bump
Report Abuse
DragonOfWar900 is not online. DragonOfWar900
Joined: 11 May 2011
Total Posts: 1508
08 Mar 2014 03:33 PM
If you didnt noticed, we dont make scripts for people, we only fix scripts that are broken, try see codetheorens scripting tutorials and check the wiki and learn by your self
Report Abuse
lordwh is not online. lordwh
Joined: 01 Sep 2009
Total Posts: 481
08 Mar 2014 03:34 PM
but could you help me find the solution? I have

name = Script.parent.parent.parent.parent.name

Why doesn't this work?
Report Abuse
DragonOfWar900 is not online. DragonOfWar900
Joined: 11 May 2011
Total Posts: 1508
08 Mar 2014 03:35 PM
Capitalization is something really important, Name needs to be capitalized and script cannot be capitalized
Report Abuse
DragonOfWar900 is not online. DragonOfWar900
Joined: 11 May 2011
Total Posts: 1508
08 Mar 2014 03:36 PM
and just that it wont do anything
Report Abuse
DragonOfWar900 is not online. DragonOfWar900
Joined: 11 May 2011
Total Posts: 1508
08 Mar 2014 03:37 PM
So can you give me the whole script
Report Abuse
lordwh is not online. lordwh
Joined: 01 Sep 2009
Total Posts: 481
08 Mar 2014 03:38 PM
name = Script.parent.parent.parent.parent.name
print(name)
TextBox.Text = name

I used the print(name) to see if it gets the name. Should I use a local script as it is in the GUI?
Report Abuse
DragonOfWar900 is not online. DragonOfWar900
Joined: 11 May 2011
Total Posts: 1508
08 Mar 2014 03:41 PM
name = script.Parent.Parent.Parent.Parent.Name
print(name)
TextBox = script.Parent
TextBox.Text = name


Put this script inside textbox.
And as i said, capitelization is IMPORTANT, a parent without P capitalized will make the script not work.
Report Abuse
lordwh is not online. lordwh
Joined: 01 Sep 2009
Total Posts: 481
08 Mar 2014 03:45 PM
Thanks for the help!

But originally I put it inside a frame, but I fixed that by adding another 'parent'.
Report Abuse
DragonOfWar900 is not online. DragonOfWar900
Joined: 11 May 2011
Total Posts: 1508
08 Mar 2014 03:47 PM
Your Welcome

"http://www.roblox.com/Dragons-Game-Stations-Indev-place?id=147510859 <= Check it out!"
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