Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
|
| 31 May 2014 04:00 PM |
Hello i made quite and nice text label here i want to show it my gold value in leaderboard
game.Players.PlayerAdded:connect(function(p) p = script.Parent wait(1) p.Text = p.Stats.Gold.Value end)
why is doesnt work ? |
|
|
| Report Abuse |
|
|
Dushax
|
  |
| Joined: 28 Apr 2010 |
| Total Posts: 12892 |
|
|
| 31 May 2014 04:02 PM |
Are you making it as a leaderboard itself or just a GUI to add with the leaderboard?
|
|
|
| Report Abuse |
|
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
|
| 31 May 2014 04:02 PM |
| i know its fool question but i doesn't for some reason... |
|
|
| Report Abuse |
|
|
|
| 31 May 2014 04:03 PM |
| You should do this with a local script. |
|
|
| Report Abuse |
|
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
|
| 31 May 2014 04:03 PM |
| i already have leaderboard i want to show my text label my leaderboard value |
|
|
| Report Abuse |
|
|
|
| 31 May 2014 04:04 PM |
| I'm not even going to bother. |
|
|
| Report Abuse |
|
|
|
| 31 May 2014 04:06 PM |
Ummmm
The player is p, but then you assign p as script.Parent |
|
|
| Report Abuse |
|
|
golfercab
|
  |
| Joined: 26 Sep 2011 |
| Total Posts: 714 |
|
|
| 31 May 2014 04:06 PM |
leaderboard might not be loaded when the player joins, i think i have encountered this before. what is the hierarchy for the script and the leaderboard?
script would look like:
function playeradded() if leaderboard ~= nil then p = script.Parent wait(1) p.Text = p.Stats.Gold.Value else wait(3) playeradded() end end
game.Players.PlayerAdded:connect(playeradded) |
|
|
| Report Abuse |
|
|
Dushax
|
  |
| Joined: 28 Apr 2010 |
| Total Posts: 12892 |
|
|
| 31 May 2014 04:11 PM |
Basically if you forget to add in the
game.Players.PlayerAdded:connect(p)
but that guy did the script for you though. |
|
|
| Report Abuse |
|
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
|
| 31 May 2014 04:15 PM |
Yeah but i still can fix it nvm..
i will bump this later if i cant fix it |
|
|
| Report Abuse |
|
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
|
| 31 May 2014 04:21 PM |
lol i fixed it but its little bit long
p = script.Parent p.Text = script.Parent.Parent.Parent.Parent.Parent.Stats.Belli.Value |
|
|
| Report Abuse |
|
|
golfercab
|
  |
| Joined: 26 Sep 2011 |
| Total Posts: 714 |
|
| |
|