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.
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