Basically I want more and more zombies to come after waves but it doesn’t let me clone more than one zombie when it should be cloning more. plz help
local waves = game.Workspace.Waves.Value
local spawnspots = game.Workspace.SpawnPoints:GetChildren()
local randomItem = spawnspots[math.random(1, #spawnspots )]
local counter = waves
local function cop()
local orginal = game.ServerStorage["Drooling Zombie"]
local copy = orginal:Clone()
wait(0.2)
copy.Parent = game.Workspace.ZOMBS
copy:MoveTo(randomItem.Position)
end
game.Workspace.Waves:GetPropertyChangedSignal("Value"):Connect(function()
for i = counter, 0, -1 do
cop()
wait(0.2)
end
end)
local function cop()
local orginal = game.ServerStorage["Drooling Zombie"]
original.Archivable = true
local copy = orginal:Clone()
wait(0.2)
copy.Parent = game.Workspace.ZOMBS
copy:MoveTo(randomItem.Position)
end
local waves = game.Workspace.Waves.Value
local spawnspots = game.Workspace.SpawnPoints:GetChildren()
local counter = waves
local function cop()
local randomItem = spawnspots[math.random(1, #spawnspots )]
local orginal = game.ServerStorage["Drooling Zombie"]
local copy = orginal:Clone()
copy.Parent = game.Workspace.ZOMBS
copy:MoveTo(randomItem.Position)
end
game.Workspace.Waves:GetPropertyChangedSignal("Value"):Connect(function()
for i = 1, counter do
cop()
wait(0.2)
end
end)