Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you Create a KO and WO Leaderboard?

Asked by
SirPaco 66
8 years ago

The KO and WO Leaderboard created by ROBLOX has been broken by ROBLOX updates. I would like to know how to create a KO and WO Leaderboard.

This is the Script that I have attempted to have create:

game.Players.PlayerAdded:connect(function(player)
     local leaderstats = Instance.new("Model")
     leaderstats.Name = "leaderstats"
     leaderstats.Parent = player

     local KO = Instance.new("IntValue")
     KO.Name = "KO"
     KO.Value = 0
     KO.Parent = leaderstats

   local WO = Instance.new("IntValue")
     WO.Name = "WO"
     WO.Value = 0
     WO.Parent = leaderstats
 end)

1 answer

Log in to vote
0
Answered by
shayner32 478 Trusted Moderation Voter
8 years ago
game.Players.PlayerAdded:connect(function(player)
     local leaderstats = Instance.new("IntValue")
     leaderstats.Name = "leaderstats"
     leaderstats.Parent = player

     local KO = Instance.new("IntValue")
     KO.Name = "KO"
     KO.Value = 0
     KO.Parent = leaderstats

   local WO = Instance.new("IntValue")
     WO.Name = "WO"
     WO.Value = 0
     WO.Parent = leaderstats
 end)

Try that code, and if it creates the values on the scoreboard but doesn't change when you die/kill, it's because you actually need to set it up more than just that with connects and such.

0
You do realize I know that, correct? That is the reason why I am asking that question. SirPaco 66 — 8y
0
We aren't a request site, drop the attitude and try to code it - if you want tutorials and free code you need to go to another site. shayner32 478 — 8y
0
@SirPaco He was trying to help. If you don't appreciate it, oh well. If you want free codes, go on the WIki. Search the Died event, and that's how to get WO's. For KO's, they use the owner tag. Figure it out. Shawnyg 4330 — 8y
0
The Wiki on Leaderboards is about Money not KOs and WOs. SirPaco 66 — 8y
Ad

Answer this question