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: Leader boards connected to GUIs?

Previous Thread :: Next Thread 
BlueHound is not online. BlueHound
Joined: 30 Jan 2012
Total Posts: 1971
02 Jul 2012 07:31 PM
Can leaderboards be connected to GUIs?

Like if I have a GUI shop, could I make it work with a leader board, which contains the money?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
02 Jul 2012 07:32 PM
That's kind of how GUI-based shops work.

> † KMXD †
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
02 Jul 2012 07:36 PM
Yea. The leaderstats are with the Player. Gui's are within the PlayerGui that are within the player. You just have to make it to check the Value of a certain Stat.
Report Abuse
dddylan98 is not online. dddylan98
Joined: 16 Jul 2008
Total Posts: 1497
02 Jul 2012 07:40 PM
function onClicked()
game.Players.LocalPlayer.leaderstats.Money.Value = game.Players.LocalPlayer.leaderstats.Money.Value - 500
end

script.Parent.MouseButton1Down:connect(onClicked)

This would be put in a TextButton and would remove 500 Money. Basic script.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
02 Jul 2012 07:45 PM
@dddylan
You forgot to mention that it had to be a LocalScript :P
Report Abuse
dddylan98 is not online. dddylan98
Joined: 16 Jul 2008
Total Posts: 1497
02 Jul 2012 07:46 PM
I figured the LocalPlayer would be obvious to a scripter but. Meh yeah c:
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