Points Awarded to Player who killed other players?

I want to create a leaderboard where when you kill somesone, you get awarded points.

This is my script (If that could be a little help?)

function createLeaderstats(plr)
	local leaderstats = Instance.new("StringValue")
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = plr
	local points = Instance.new("IntValue")
	points.Parent = leaderstats
	points.Name = "Points"
	points.Value = 0
end

game.Players.PlayerAdded:Connect(function(plr)
	createLeaderstats(plr)
end)

Note: I do not want a kill/death leaderboard just the Points alone

any help? i really need this help for my game?

This could be a help: In-Game Leaderboards (roblox.com)

Just look at some other documentation like the one linked down below.

This would be a good start:

imma try out in a while. Thanks!

nvm this guy help me - YouTube.

it didn’t work probaly its outdated!