I put the script in a Zombie that gets cloned into workspace its in a regular script I also tried it in a local script but it didn't work does anyone know whats wrong?
local player = game.Players.LocalPlayer
local leaderstats = player:FindFirstChild("leaderstats")
local kill = leaderstats.Kills.Value
if script.Parent.Health == 0 then do
kill.Value = kill.Value + 1
end
end

1 comment
By the way the value in the folder is called "Kills"