I dont know how to do the script this is my leaderboard (it works)
rint("Cash Leaderboard Loaded")
function onPlayerEntered(newPlayer)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local cash = Instance.new("IntValue")
cash.Name = "Cash"
cash.Value = 50
cash.Parent = stats
stats.Parent = newPlayer
end
game.Players.ChildAdded:connect(onPlayerEntered)
i tried puting this code in to the zombie
1 if script.Parent.Health == 0 then 2 value = value +1 just dont work
plz any1 help if you do thank you

2 comments
Are you defining the value?
what do you mean'