Zombie Spawner I made, very basic. Although it only spawns one zombie. It never says "spawned" in the output except for the one time it spawns. I was wondering if anyone knows why this is happening? It is supposed to spawn one every second until there are 30. Any help is appreciated :)
local z = game.ReplicatedStorage.Zombie
local zc = z:Clone()
local fm = game.Workspace:FindFirstChild("Map")
local fs = fm:GetChildren("ZSpawn")
while true do
wait(10)
if fm then
for i = 1,1,30 do
zc.Parent = game.Workspace
zc.Position = fs.Position
print("Spawned")
end
end
end
