|
| 25 Jul 2014 05:58 PM |
| I have this Coin/Star Token you use to unlock new levels. I have the leaderstats ready. The thing is, how can I make a GUI's text read the amount of Star Tokens I have? For example, if I had 3 Tokens, then the GUI would say "3". Anyone know? |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
|
| 25 Jul 2014 06:00 PM |
tokens.Changed:connect(function() textlabel.Text = "Tokens: " ..tostring(tokens.Value) end) |
|
|
| Report Abuse |
|
|
ehern11
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1541 |
|
|
| 25 Jul 2014 06:01 PM |
well, i tried
coins = game.Players.LocalPlayer.leaderstats.Coins
coins.Changed:connect(function() script.Parent.Text = coins.Value.." Coins"
didn't work :> |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2014 07:52 PM |
| Sensei, aren't I supposed to identify what "tokens" is? |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2014 07:53 PM |
| Yeah, none of these scripts work. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2014 07:56 PM |
| I've made the place uncopylocked, if anyone could tell me what's wrong, that would be great! |
|
|
| Report Abuse |
|
|
| |
|
ehern11
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1541 |
|
|
| 05 Aug 2014 02:33 PM |
| http://www.roblox.com/GUI-Testing-place?id=152738864; this place, correct? |
|
|
| Report Abuse |
|
|
ehern11
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1541 |
|
|
| 05 Aug 2014 02:38 PM |
went ahead and make it for you, and it works.
http://www.roblox.com/for-medina-item?id=170360679 Just go into the LocalScript if you wanna change something. |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2014 06:22 PM |
| Thanks! I hope you don't mind being in the credits for my game Treasure Trove. :) |
|
|
| Report Abuse |
|
|