ZombieA gets spawned into workspace and inside ZombieA I changed humanoid to Zombie. This script is for when the Zombie dies, it doesn't matter if everyone where to get money because it's a 1 man server.
local Zombie = game.Workspace:FindFirstChild("ZombieA")
local player = game.Players
if Zombie.Zombie.Health >= 0 then
player.RealMoney = player.RealMoney + 2
end

1 comment
It didn't work is it ment to be a local script or in server script server .etc