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

How Do I Make A Zombie Spawner? [closed]

Asked by 5 years ago

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

0
You can't just ask for a script HomieFirePGN 137 — 5y
0
/setblock ~ ~ ~ mob_spawner 0 replace {EntityId:"Zombie"} TheSkyofIndia 150 — 5y

Closed as Not Constructive by Fifkee, GoldAngelInDisguise, JakyeRU, and Avigant

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 5 years ago

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.

Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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