"Zombie" is the zombie in workspace This script is for when the zombie dies money is given to the player I renamed the Humanoid in Zombie to Zombie
local char = script.Parent.Parent
local player = game.Players:GetPlayerFromCharacter(char)
local RealMoney = player:FindFirstChild("RealMoney")
local boost = player:FindFirstChild("CoinBoost")
workspace.ChildAdded:Connect(function(Zombie)
if Zombie.Name == "Zombie" then
Zombie:WaitForChild("Zombie").Died:Connect(function()
player.RealMoney.Value = player.RealMoney.Value + 1000
end)
end
end)

3 comments
ChildAdded is an event not a function.
You should be chacking when damage is done to the zombie as you know who is doing the damage not when the zombie dies
It is a 1 man server