I have this to initialize the leader board.

game.Players.PlayerAdded:connect(function(plr)
	local stats = Instance.new("BoolValue",plr)
	stats.Name = "leaderstats"
	local pts = Instance.new("IntValue",stats)
	pts.Name = "Points"
	pts.Value = 0
end)

how would I detect the death of a zombie and reward points to everyone?

1 comment

0

Well maybe you could put a function making the zombie dead, and an if statement detecting if death is true, then a for statement for all players to get a point..? I don't really know, but I hope someone else helps you!