Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How Do I Make A Zombie Spawner?

Like How Do I Make The Spawner And how to i put the zombie in it also im new to scripting

2 comments

0

You can't just ask for a script

0

/setblock ~ ~ ~ mob_spawner 0 replace {EntityId:"Zombie"}

2 answers

Ignore Sky, who is a complete brainlet.

You can achieve your goal by simply having an invisible or visible BasePart of your choice act as a spawner, and have a script inside of it with a timed loop that clones an NPC from ServerStorage and places it inside of the workspace with the position of the spawner.

-- put this script in uh the zombie and name it ZOMBIEREGEN

position = CFrame.new(0,0,0) -- change 0,0,0 to the position you want the zombie to spawn at

while true do

wait(40) -- change 40 to how long untill another zombie spawns

zombie = script.Parent:Clone()

zombie.Parent = game.Workspace -- where you want the zombies parent to be

zombie.Torso.CFrame = position -- change torso to UpperTorso if zombie is r15

zombie.ZOMBIEREGEN:Destroy()

zombie:MakeJoints() -- makeing sure the joints are correct

end

This discussion is preserved as it was. New answers, comments, and votes are closed.