Hello, I have tried to make a kill counter but it doesn't seem to work. I don't really know why it's not working. This is my attempt, which is a normal script:
game.Players.PlayerAdded:Connect(function(Player)
local kills = Player.Backpack:WaitForChild("Kills")
Player.CharacterAdded:Connect(function(Character)
Character:WaitForChild("Humanoid").Died:Connect(function()
local oof = Character.Humanoid:FindFirstChild("creator")
if oof ~= nil then
if oof.Value ~=nil then
kills.Value = kills.Value + 1
print(kills.Value)
end
end
end)
end)
end)
Kills is a NumberValue in the starterpack

2 comments
i suggest changing "kills" to an integer value (intvalue), sense you dont want decimals for a kill counter (unless you do)
that did not work