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
 

Coin Values on GUI

Previous Thread :: Next Thread 
medinaaldo777 is not online. medinaaldo777
Joined: 04 Oct 2013
Total Posts: 263
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 is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
25 Jul 2014 05:58 PM
yeah
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
25 Jul 2014 06:00 PM


tokens.Changed:connect(function()
textlabel.Text = "Tokens: " ..tostring(tokens.Value)
end)
Report Abuse
ehern11 is not online. 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
medinaaldo777 is not online. medinaaldo777
Joined: 04 Oct 2013
Total Posts: 263
26 Jul 2014 07:52 PM
Sensei, aren't I supposed to identify what "tokens" is?
Report Abuse
medinaaldo777 is not online. medinaaldo777
Joined: 04 Oct 2013
Total Posts: 263
26 Jul 2014 07:53 PM
Yeah, none of these scripts work.
Report Abuse
medinaaldo777 is not online. medinaaldo777
Joined: 04 Oct 2013
Total Posts: 263
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
medinaaldo777 is not online. medinaaldo777
Joined: 04 Oct 2013
Total Posts: 263
05 Aug 2014 02:14 PM
Bump (I had to)

:(
Report Abuse
ehern11 is not online. 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 is not online. 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
medinaaldo777 is not online. medinaaldo777
Joined: 04 Oct 2013
Total Posts: 263
06 Aug 2014 06:22 PM
Thanks! I hope you don't mind being in the credits for my game Treasure Trove. :)
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