Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a zombie reward everyone points if it dies?

Asked by 4 years ago
Edited 4 years ago

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?

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! Aztralzz 169 — 4y

Answer this question