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: TextLabel problem

Previous Thread :: Next Thread 
rockshe1000 is not online. rockshe1000
Joined: 26 May 2011
Total Posts: 547
10 Jul 2014 12:35 PM
So I am trying to make a textlabel show a value of a leaderscript, hres my code, evertime I try it, it decides not to show anything that I say it to show,
this is the code I am using :/
while wait(2) do
StarterGui.Main.Agility.Text = "Agility: ".. Player.leaderstats.Agility.Value
end

As you can see I am also auto updaating the code for it to stay with the leaderstats

so anyone know why its not working? XD
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
10 Jul 2014 12:37 PM
while wait(2) do
Player.Main.Agility.Text = "Agility: ".. Player.leaderstats.Agility.Value
end
Report Abuse
rockshe1000 is not online. rockshe1000
Joined: 26 May 2011
Total Posts: 547
10 Jul 2014 12:40 PM
Smiley, thanks but that still does not fix the problem XD should I put the script in a certain place? atm its in the textlabel should I try moving it somewhere else?
Report Abuse
rockshe1000 is not online. rockshe1000
Joined: 26 May 2011
Total Posts: 547
10 Jul 2014 12:45 PM
Tried using it in workspace still does not work, anyone else got any ideas? XD
Report Abuse
rockshe1000 is not online. rockshe1000
Joined: 26 May 2011
Total Posts: 547
10 Jul 2014 01:09 PM
Anyone know the fix? XD
Report Abuse
UgOsMiLy is not online. UgOsMiLy
Joined: 15 Sep 2009
Total Posts: 2095
10 Jul 2014 01:23 PM
I think

StarterGui.Main.Agility.Text = "Agility: ".. Player.leaderstats.Agility.Value

should be

Player.PlayerGui.Main.Agility.Text = "Agility: ".. Player.leaderstats.Agility.Value

Have you defined StarterGui?
Report Abuse
UgOsMiLy is not online. UgOsMiLy
Joined: 15 Sep 2009
Total Posts: 2095
10 Jul 2014 01:24 PM
Is the "Agility" inside a frame? If not, it has to be, or text won't show.
Report Abuse
rockshe1000 is not online. rockshe1000
Joined: 26 May 2011
Total Posts: 547
10 Jul 2014 01:40 PM
Ug0 no luck with those, its still broke XD
Report Abuse
UgOsMiLy is not online. UgOsMiLy
Joined: 15 Sep 2009
Total Posts: 2095
10 Jul 2014 01:58 PM
Is the "Agility" inside a frame? If not, it has to be, or text won't show.
Report Abuse
rockshe1000 is not online. rockshe1000
Joined: 26 May 2011
Total Posts: 547
10 Jul 2014 02:06 PM
Its inside a frame XD
Report Abuse
UgOsMiLy is not online. UgOsMiLy
Joined: 15 Sep 2009
Total Posts: 2095
10 Jul 2014 03:48 PM
And the frame is in a screengui.. Right?
Report Abuse
rockshe1000 is not online. rockshe1000
Joined: 26 May 2011
Total Posts: 547
10 Jul 2014 03:56 PM
Yes it is in a screengui the label does show, and if I use the properties to add text instead of a script, it does show, but I need to use it in a script to change it automaticly.
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