✓ Accepted answer
Ok first, really annoyed about this, indent your code . Please, it is really annoying. Anyway, there are multiple problems to your script ranging from it just sitting there to it should not be in a local script. When making a leaderboard one should take into account that there are hackers out there so it needs to be put in a safe place, which is where we script the leaderstats to be put into a folder. This is what it could look like:
game.Players.PlayerAdded:connect(function(plr)
local folder = Instance.new("Folder")
folder.Name = "leaderstats"
folder.Parent = plr
local kill = Instance.new("IntValue")
kill.Name = "Kills"
kill.Value = 0
kill.Parent = folder
local WO = Instance.new("IntValue")
WO.Name = "WipeOut"
WO.Value = 0
WO.Parent = folder
end)
This is just a basic version of a leaderboard, it can get more complicated in changing when a certain thing takes place to setting it up on a gui. Many things. If you found this helpful don't forget to give a thumbs up and accept my answer! If you have any questions please comment on my answer and I will be glad to help!