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
|
  |
| Joined: 01 Sep 2009 |
| Total Posts: 481 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 08 Mar 2014 03:35 PM |
| Capitalization is something really important, Name needs to be capitalized and script cannot be capitalized |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2014 03:36 PM |
| and just that it wont do anything |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2014 03:37 PM |
| So can you give me the whole script |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 08 Mar 2014 03:47 PM |
Your Welcome
"http://www.roblox.com/Dragons-Game-Stations-Indev-place?id=147510859 <= Check it out!" |
|
|
| Report Abuse |
|
|