RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a Zombie spawner"
-- server script (ServerScriptService) local spawnPoints = game.Workspace.SpawnPoints:GetChildren() local zombieTemplate = game.ServerStorage.Zombie function spawnZombie() local spawnPoint = spawnPoints[math.random(1, #spawnPoints)] local zombie = zombieTemplate:Clone() zombie.Parent = game.Workspace zombie.HumanoidRootPart.CFrame = spawnPoint.CFrame end while true do spawnZombie() wait(5) -- adjust the wait time for the desired spawn rate end