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 Problem

Previous Thread :: Next Thread 
easterbunnytheepic is not online. easterbunnytheepic
Joined: 16 Mar 2013
Total Posts: 19
29 Dec 2014 11:17 AM
I am trying to make a simple leaderboard but it won't work. The output doesn't have anything in it so maybe it's the call of the event? Please help me figure out what is wrong with this...

game.Players.PlayerAdded:connect(function(p)
coolstats = Instance.new("IntValue")
coolstats.Parent = p
coolstats.Name = "Leaderboard"

wins = Instance.new("IntValue")
wins.Parent = coolstats
wins.Name = "Wins"

lost = Instance.new("IntValue")
lost.Parent = coolstats
lost.Name = "Loses"

end)
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
29 Dec 2014 11:19 AM
Leaderboard has to be leaderboard
Report Abuse
easterbunnytheepic is not online. easterbunnytheepic
Joined: 16 Mar 2013
Total Posts: 19
29 Dec 2014 11:24 AM
@Absurdism
Does not commute
Report Abuse
512GB is not online. 512GB
Joined: 19 Apr 2012
Total Posts: 4271
29 Dec 2014 11:24 AM
@easter

Generally, in programming, things are case-sensitive. It needs to be 'leaderboard' instead of 'Leaderboard'
Report Abuse
easterbunnytheepic is not online. easterbunnytheepic
Joined: 16 Mar 2013
Total Posts: 19
29 Dec 2014 11:26 AM
I changed it and it still doesn't work - and shouldn't it be irrelevant because it is a string value and a name of my choice?
Report Abuse
512GB is not online. 512GB
Joined: 19 Apr 2012
Total Posts: 4271
29 Dec 2014 11:27 AM
No, ROBLOX needs it to be a certain name in order to know what it is.

And I'm sorry, it should actually be called leaderstats
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
29 Dec 2014 11:28 AM
leaderstats[2]
Report Abuse
easterbunnytheepic is not online. easterbunnytheepic
Joined: 16 Mar 2013
Total Posts: 19
29 Dec 2014 11:28 AM
Thank you, it works now that I've changed it to leaderstats.
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