Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

spawner brick will you help me please?

Asked by 9 years ago

Hi, I am making a zombie survival game but I need a zombie spawner brick. I need it so after some time (lets say wait (5) ) It will spawn another model of a zombie (got zombie model). I have tried many times but can't figure it out please help!

In sight it should just: wait (5) spawn"zombie" in workspace repeat.

1 answer

Log in to vote
0
Answered by 9 years ago
while true do
function SpawnZombie()
    local g = game.ServerStorage.Zombie:Clone()
    g.Parent = game.Workspace
    g.Humanoid:MoveTo(game.Workspace.ZombieSpawner.Positon) --Also assuming that the Humanoid is called Humanoid.
end
wait(5)
SpawnZombie()
end

Ad

Answer this question