|
| 17 Oct 2013 08:13 PM |
| So, I'm making a Noob Survival game until my other game is at least in Beta. Now what I can't figure out is how to make another section on the leaderboard named PWNs. Meaning PWNs are noob kills, KOs are player kills, and WOs are deaths. So how would I insert another section named PWNs into the leaderboard that works like the KOs, except it only kills noobs? |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 08:23 PM |
well you can make the actual noobs add a KO to the leaderstat
however down to the original request:
--This is incase you already have all leaderstats and just need this one added
game.Players.PlayerAdded:connect(function(p) repeat wait() until p:findFirstChild("leaderstats") local pwnz = Instance.new("IntValue", p.leaderstats) pwnz.Value = 0 end end
|
|
|
| Report Abuse |
|
|
iForreal
|
  |
| Joined: 16 Jul 2013 |
| Total Posts: 373 |
|
| |
|
|
| 17 Oct 2013 08:31 PM |
oh right and add a "end)"
so should be like this:
game.Players.PlayerAdded:connect(function(p) repeat wait() until p:findFirstChild("leaderstats") local pwnz = Instance.new("IntValue", p.leaderstats) pwnz.Value = 0 end end) end
|
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 09:54 PM |
| Ok, thanks! I'll try that! However, where would I put this in the script? (Default LinkedLeaderboard script that ROBLOX made.) |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 09:56 PM |
| Making it a seperate script is alright. |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Oct 2013 09:58 PM |
| Yep, all it's doing is adding a new leaderstat to the leaderboard. |
|
|
| Report Abuse |
|
|
|
| 17 Oct 2013 10:00 PM |
| Alright then, I'll try it. |
|
|
| Report Abuse |
|
|