Hello! The script below will successfully add points to my leaderboard after a player first kills another player. But, if they kill more, the points will not exceed the values below. Or if they exceed it once, like when the player is awarded points for surviving the round, the very next round when they kill another player, it reverts back to the values below. How can I make the values increase per kill? Thank you!
Players = game:GetService('Players')
Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
local Humanoid = Character:WaitForChild('Humanoid')
Humanoid.Died:connect(function()
if Humanoid:FindFirstChild('creator') ~= nil then
local Killer = Humanoid.creator.Value
Killer.leaderstats.Points.Value= Player.leaderstats.Points.Value+100
Killer.leaderstats.EXP.Value= Player.leaderstats.EXP.Value+350
end
end)
end)
end)

1 comment
any output? and why are you doing lines 8 and 9 like that? Killer.Leaderstats, then Player.Leaderstats