Like How Do I Make The Spawner And how to i put the zombie in it also im new to scripting
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
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?