|
| 31 Mar 2014 03:08 PM |
Each player has a value in them
for example
game.Players.Player1.name
name is the value
I want the player's name string to be the text of their playergui, which is game.StarterGui.OpenShop.Text |
|
|
| Report Abuse |
|
|
djwill619
|
  |
| Joined: 13 Jun 2011 |
| Total Posts: 756 |
|
| |
|
|
| 31 Mar 2014 03:09 PM |
.Text = player.Name
Unless you mean something else, too vague. |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:10 PM |
| I want it to be their playergui, not everyone's gui |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:12 PM |
| .Text = game.Players.LocalPlayer.Name |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:13 PM |
| so I can put script.Parent.Text with a Script? |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Mar 2014 03:15 PM |
ERROR
16:14:48.176 - String expected |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:18 PM |
local plr = game.Players.LocalPlayer
script.Parent.Text = plr.Name |
|
|
| Report Abuse |
|
|
| |
|
archie229
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 140 |
|
|
| 31 Mar 2014 03:18 PM |
This is actually quite interesting, i've never thought of doing this. So i would add a GUI, add a label, add a local script, then put this --> .Text = game.Players.LocalPlayer.Name
I just tried that, and it didn't work, what have i done wrong? |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:18 PM |
| I hope you know it's name, not Name, and name is a stringvalue2 |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:19 PM |
| you have to define the local player first, try my second post. |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Mar 2014 03:20 PM |
| It did my player's username, not the stringvalue name. |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:20 PM |
| I want it to be the text of the stringvalue. The stringvalue is lowercase name. |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:20 PM |
As I said, explain what you need. What string do you need, where is the stringvalue? |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:21 PM |
| the stringvalue is under game.Players.PlayerName |
|
|
| Report Abuse |
|
|
archie229
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 140 |
|
|
| 31 Mar 2014 03:23 PM |
| This isn't my post, but i have guis linking to VIP, info and shop ect, and what i would like now is the players name too. So what exactly do i do? |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:24 PM |
oh then just use ".name" where I put ".Name"
If it still does not work use "findFirstChild("name")" |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:25 PM |
| I did that, and it didn't work. please script the FirstFindChild event |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:30 PM |
local plr = game.Players.LocalPlayer
script.Parent.Text = plr:FindFirstChild("name").Value |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:31 PM |
| It's working, but can you edit it so it'll put Your Name :, then a space then his/her name |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2014 03:33 PM |
local plr = game.Players.LocalPlayer
script.Parent.Text = plr.Name .. " : " .. plr:FindFirstChild("name").Value |
|
|
| Report Abuse |
|
|