sp=script.Parent assetId=67629734 function findcurrentzombie()for g,e in ipairs(game.Workspace:GetChildren())do if e and e.Parent then if e:FindFirstChild("\076\105\110\107\101\100\083\112\097\119\110")then if e.LinkedSpawn.Value==sp then zombie=e end end end end end findcurrentzombie()function spawn()zombie=(((game:GetService("\073\110\115\101\114\116\083\101\114\118\105\099\101")):LoadAsset(assetId)):GetChildren())[1]zombie.LinkedSpawn.Value=sp zombie.Parent=game.Workspace zombie:MoveTo(sp.ZombieSpawn.Position+Vector3.new(0,3.5,0))end while true do wait(.25)if zombie and(zombie~=nil and(zombie.Parent and(zombie:FindFirstChild("\076\105\110\107\101\100\083\112\097\119\110")and zombie.LinkedSpawn.Value==sp)))then else wait(sp.Configuration["\082\101\115\112\097\119\110 \084\105\109\101"].Value)spawn()end end
--Made by Stickmasterluke

sp = script.Parent
assetId = 67629734

function findcurrentzombie()
	for i, v in ipairs(game.Workspace:GetChildren()) do
		if v and v.Parent then
			if v:FindFirstChild("LinkedSpawn") then
				if v.LinkedSpawn.Value == sp then
					zombie = v
				end
			end
		end
	end
end
findcurrentzombie()

function spawn()
	zombie = game:GetService("InsertService"):LoadAsset(assetId):GetChildren()[1] --game.Lighting.Zombie:clone()
	zombie.LinkedSpawn.Value = sp
	zombie.Parent = game.Workspace
	zombie:MoveTo(sp.ZombieSpawn.Position + Vector3.new(0, 3.5, 0))
end

while true do
	wait(0.25)
	if
		zombie
		and zombie ~= nil
		and zombie.Parent
		and zombie:FindFirstChild("LinkedSpawn")
		and zombie.LinkedSpawn.Value == sp
	then
	else
		wait(sp.Configuration["Respawn Time"].Value)
		spawn()
	end
end
