you've error in your createPed code at line 2 you've closed the function bow and left arguments outside the bow
function createZombiePlayer(x, y, z)
local zombie = createPed (70, x, y , z, math.random(0, 360)) -- it was createPed ( 70 ),x, y,z, math.random(0, 360))
local Zx, Zy, Zz = getElementPosition( zombie )
local pedCol = createColSphere(Zx, Zy, Zz, 1.5)
attachElements(pedCol, zombie, 0, 0, 0)
end
addEvent("createZombiePlayer", true)
addEventHandler("createZomieForPlayer", getRootElement(), createZombiePlayer)