Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you Create a KO and WO Leaderboard?

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

✓ Accepted answer
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.

4 comments

0

You do realize I know that, correct? That is the reason why I am asking that question.

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.

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.

0

The Wiki on Leaderboards is about Money not KOs and WOs.

This discussion is preserved as it was. New answers, comments, and votes are closed.