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(sp.Configuration["Respawn Time"].Value)
	spawn()
end