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.Text Script

Previous Thread :: Next Thread 
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
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 is not online. djwill619
Joined: 13 Jun 2011
Total Posts: 756
31 Mar 2014 03:09 PM
game.Players.Player1.Name
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
31 Mar 2014 03:09 PM
.Text = player.Name

Unless you mean something else, too vague.
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
31 Mar 2014 03:10 PM
I want it to be their playergui, not everyone's gui
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
31 Mar 2014 03:12 PM
.Text = game.Players.LocalPlayer.Name
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
31 Mar 2014 03:13 PM
so I can put script.Parent.Text with a Script?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
31 Mar 2014 03:13 PM
Ya, localscript.
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
31 Mar 2014 03:15 PM
ERROR

16:14:48.176 - String expected
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
31 Mar 2014 03:18 PM
local plr = game.Players.LocalPlayer

script.Parent.Text = plr.Name
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
31 Mar 2014 03:18 PM
b1
Report Abuse
archie229 is not online. 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
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
31 Mar 2014 03:18 PM
I hope you know it's name, not Name, and name is a stringvalue2
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
31 Mar 2014 03:19 PM
you have to define the local player first, try my second post.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
31 Mar 2014 03:19 PM
It is "Name"
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
31 Mar 2014 03:20 PM
It did my player's username, not the stringvalue name.
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
31 Mar 2014 03:20 PM
I want it to be the text of the stringvalue. The stringvalue is lowercase name.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
31 Mar 2014 03:20 PM
As I said, explain what you need.
What string do you need, where is the stringvalue?
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
31 Mar 2014 03:21 PM
the stringvalue is under game.Players.PlayerName
Report Abuse
archie229 is not online. 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
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
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
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
31 Mar 2014 03:25 PM
I did that, and it didn't work. please script the FirstFindChild event
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
31 Mar 2014 03:30 PM
local plr = game.Players.LocalPlayer

script.Parent.Text = plr:FindFirstChild("name").Value
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
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
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
31 Mar 2014 03:33 PM
local plr = game.Players.LocalPlayer

script.Parent.Text = plr.Name .. " : " .. plr:FindFirstChild("name").Value
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