RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a working zombie spawner"
-- server script local zombieSpawner = script.Parent local zombieModel = game.ReplicatedStorage.ZombieModel local zombieCount = 0 local function spawnZombie() local zombie = zombieModel:Clone() zombie.Parent = game.Workspace zombie.Position = zombieSpawner.Position zombieCount = zombieCount + 1 end while zombieCount < 5 do spawnZombie() wait(1) end