|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 10 Jul 2014 12:45 PM |
| Tried using it in workspace still does not work, anyone else got any ideas? XD |
|
|
| Report Abuse |
|
|
| |
|
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
|
  |
| 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 |
|
|
|
| 10 Jul 2014 01:40 PM |
| Ug0 no luck with those, its still broke XD |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
UgOsMiLy
|
  |
| Joined: 15 Sep 2009 |
| Total Posts: 2095 |
|
|
| 10 Jul 2014 03:48 PM |
| And the frame is in a screengui.. Right? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|