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 » Scripters
Home Search
 

Re: Leaderboard script

Previous Thread :: Next Thread 
0071ronman is not online. 0071ronman
Joined: 09 Jan 2016
Total Posts: 99
26 Oct 2016 11:13 AM
I'm trying to fix the cash leaderboard which doesn't seem to be working. It comes up in player but the value from ServerStorage doesn't change the leaderboard.

game.Players.PlayerAdded:connect(function(player)
local plr = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
local money = plr.Value
local stats = Instance.new('IntValue', player)
stats.Name = 'leaderstats'
local cash = Instance.new('IntValue', stats)
cash.Name = 'Cash'
while true do
wait(0.5)
cash.Value = money
end
end)
plz help thnx
Report Abuse
0071ronman is not online. 0071ronman
Joined: 09 Jan 2016
Total Posts: 99
27 Oct 2016 10:34 AM
plz help
Report Abuse
foreverpower is not online. foreverpower
Joined: 05 Feb 2011
Total Posts: 5578
27 Oct 2016 11:18 AM
game.Players.PlayerAdded:connect(function(player)
local plr = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
local money = plr
local stats = Instance.new('IntValue', player)
stats.Name = 'leaderstats'
local cash = Instance.new('IntValue', stats)
cash.Name = 'Cash'
while true do
wait(0.5)
cash.Value = money.Value
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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