I have this script.
zombie = script.Parent.Parent._
zombiebackup = zombie:Clone()
zombie:remove()
while true do
wait(30)
local newzombie = zombiebackup:Clone()
newzombie.Parent = game.Workspace
newzombie:MakeJoints()
newzombie.Torso.CFrame = script.Parent.CFrame + Vector3.new(0, 5, 0)
newzombie:MakeJoints()
zombie = newzombie
zombiebackup = zombie:Clone()
end
so i dont know how to make it. Can you describe me how can i make it?

3 comments
Maybe like check their health, if their health = 0 then spawn else just wait
Good idea. but i don't know how to make it xd
Nah it don't work cause this script needs to stay at while true to spawn the first npc