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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

More than 1 currency on leaderboard?

Previous Thread :: Next Thread 
johny220 is not online. johny220
Joined: 30 Oct 2011
Total Posts: 4584
15 May 2012 08:46 PM
how do i make more than 1 "money" thing on the leaderboard? i realy need help with it for my minecraft game. thanks!
Report Abuse
ozza is not online. ozza
Joined: 11 Oct 2007
Total Posts: 726
15 May 2012 08:48 PM
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("IntValue", player)
leaderstats.Name = "leaderstats"
leaderstats.Value = 0
local stat1 = Instance.new("IntValue", player.leaderstats)
stat1.Name = "yep"
stat1.Value = 0
local stat2 = Instance.new("IntValue", player.leaderstats)
stat2.Name = "nope"
stat2.Value = 0
end)
Report Abuse
johny220 is not online. johny220
Joined: 30 Oct 2011
Total Posts: 4584
17 May 2012 04:54 PM
i need 5.
Report Abuse
bluepen16 is not online. bluepen16
Joined: 13 Nov 2008
Total Posts: 1870
17 May 2012 04:57 PM
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("IntValue", player)
local name = Instance.new("IntValue",leaderstats)
local name = Instance.new("IntValue",leaderstats)
local name = Instance.new("IntValue",leaderstats)
local name = Instance.new("IntValue",leaderstats)
local name = Instance.new("IntValue",leaderstats)
leaderstats.Name = "leaderstats"
leaderstats.Value = 0
local stat1 = Instance.new("IntValue", player.leaderstats)
stat1.Name = "yep"
stat1.Value = 0
local stat2 = Instance.new("IntValue", player.leaderstats)
stat2.Name = "nope"
stat2.Value = 0
end)
Report Abuse
juriaan is not online. juriaan
Joined: 25 Nov 2008
Total Posts: 939
17 May 2012 04:57 PM
Val = {"Money", "Value", "Value", "Value", "Value"}

Game.Players.PlayerAdded:connect(function(new)
Int = Instance.new("IntValue", new)
Int.Name = "leaderstats"

for i = 1,#Val do
local l = Instance.new("NumberValue, Int)
l.Name = Val[i]
l.Value = 0
end
end)

Report Abuse
johny220 is not online. johny220
Joined: 30 Oct 2011
Total Posts: 4584
18 Jun 2012 03:59 PM
THANK YOU SO MUCH YOU'RE MIRACLE WORKERS
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