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)
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.