|
| 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
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 29 Dec 2014 11:19 AM |
| Leaderboard has to be leaderboard |
|
|
| Report Abuse |
|
|
|
| 29 Dec 2014 11:24 AM |
@Absurdism Does not commute |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
| |
|
|
| 29 Dec 2014 11:28 AM |
| Thank you, it works now that I've changed it to leaderstats. |
|
|
| Report Abuse |
|
|