OBF
|
  |
| Joined: 29 Sep 2009 |
| Total Posts: 10709 |
|
|
| 26 May 2010 04:54 PM |
| How do I add values in for a leaderboard? |
|
|
| Report Abuse |
|
|
Raven5888
|
  |
| Joined: 12 Feb 2009 |
| Total Posts: 269 |
|
|
| 26 May 2010 04:58 PM |
Player - Leaderstats (IntValue) - - All the values (Integer or Number Value) |
|
|
| Report Abuse |
|
|
Drenkus
|
  |
| Joined: 03 May 2009 |
| Total Posts: 2380 |
|
| |
|
|
| 26 May 2010 05:41 PM |
| Actually, leaderstats have to go in lower case... |
|
|
| Report Abuse |
|
|
Raven5888
|
  |
| Joined: 12 Feb 2009 |
| Total Posts: 269 |
|
|
| 26 May 2010 05:43 PM |
You got me there :3
Long time no speak axel :o No wearing ninjamasks anymore? Bummer, I though I was imitating my hero D: |
|
|
| Report Abuse |
|
|
|
| 26 May 2010 05:47 PM |
local variablehere = Instance.new("IntValue") variablehere.Name = "VariableName" variablehere.Value = 0 variablehere.Parent = stats |
|
|
| Report Abuse |
|
|
Raven5888
|
  |
| Joined: 12 Feb 2009 |
| Total Posts: 269 |
|
|
| 26 May 2010 05:49 PM |
variablehere.Parent = stats
Lets play 'spot the error' :D |
|
|
| Report Abuse |
|
|
|
| 26 May 2010 05:49 PM |
local stats = Instance.new("IntValue") stats.Name = "leaderstats" stats.Parent = newPlayer
x3 LOL figure the rest yourself |
|
|
| Report Abuse |
|
|
Raven5888
|
  |
| Joined: 12 Feb 2009 |
| Total Posts: 269 |
|
|
| 26 May 2010 05:50 PM |
| Dude, OBF knows how to instance new objects. He was asking how the leaderboard works :P |
|
|
| Report Abuse |
|
|
|
| 26 May 2010 05:53 PM |
| leaderboard shows statistics of values of each player =D theres the answer! |
|
|
| Report Abuse |
|
|
OBF
|
  |
| Joined: 29 Sep 2009 |
| Total Posts: 10709 |
|
|
| 26 May 2010 05:53 PM |
I can instance objects fairly well, but for some reason, everyone who comes in slips past my scripts.:P
Mind showing me the onEntered function? |
|
|
| Report Abuse |
|
|
|
| 26 May 2010 05:54 PM |
| I meant the things you add onto it x3 i sound so dumb right now =D |
|
|
| Report Abuse |
|
|
Raven5888
|
  |
| Joined: 12 Feb 2009 |
| Total Posts: 269 |
|
|
| 26 May 2010 05:54 PM |
game.Players.PlayerAdded:connect(function (New_Midget) print(New_Midget.Name) end)
Yay :D |
|
|
| Report Abuse |
|
|
|
| 26 May 2010 05:55 PM |
funtion onPlayerEntered(newPlayer) --stuffz end
game.Players.ChildAdded:connect(onPlayerEntered) ---hehe
~~~
LOL |
|
|
| Report Abuse |
|
|
Raven5888
|
  |
| Joined: 12 Feb 2009 |
| Total Posts: 269 |
|
|
| 26 May 2010 05:58 PM |
| just use the PlayerAdded event ;) |
|
|
| Report Abuse |
|
|
OBF
|
  |
| Joined: 29 Sep 2009 |
| Total Posts: 10709 |
|
|
| 26 May 2010 06:05 PM |
Thanks whats-his-face. :P
(the guy above the guy above meh) |
|
|
| Report Abuse |
|
|
Raven5888
|
  |
| Joined: 12 Feb 2009 |
| Total Posts: 269 |
|
|
| 26 May 2010 06:06 PM |
You know who I am >:O
Well this is my alt but only one number in my username is changed T_T" |
|
|
| Report Abuse |
|
|
|
| 26 May 2010 06:07 PM |
Indeed its been long, and yes, I like this formal stuff... Hero? Also, I just went on a buying rampage, waste my 2K+ tic buying ROBUX to waste 100 getting the sword, then 40 for the eyes, and about 100 tix buying something that would match ...
Thread Maker, Use PlayerAdded when you want 'onEntered' script, because any other thing added to the Player service will break your script. |
|
|
| Report Abuse |
|
|
OBF
|
  |
| Joined: 29 Sep 2009 |
| Total Posts: 10709 |
|
|
| 26 May 2010 06:07 PM |
"the guy above the guy above me" == the guy above you.
:P |
|
|
| Report Abuse |
|
|
Raven5888
|
  |
| Joined: 12 Feb 2009 |
| Total Posts: 269 |
|
|
| 26 May 2010 06:10 PM |
on my main I have useless virtual stuff worth around 6000 bux :D
I waste too much time on the trading currency >.<" |
|
|
| Report Abuse |
|
|