Script for NPC's to respawn over & over

Hello Developers!

Hello developers, thank you for looking at this topic & I have created this because I need the a script for when my NPCS (Zombies) can respawn over & over.

What Do I Want To Achieve?

  1. What I want to Achieve is to become a amazing developer & learn how to script so my games can come to life.

What Issues Do I Have?

  1. Well beacuse i’m not a scripter I haven’t been seeing a lot of good stuff in my projects & as usual old scripts that used to use 100& working don’t work anymore.

What Solutions Have I Tried So Far?

  1. I have done 2 things, I ask some of my friends to know if any of them knows scripting, didn’t go out to well, & I have also been watching Youtube videos to get a good idea about it, nothing worked as well, but I have gotten a script from my friend but he only knows a few scripts.

For Example this one:

-- name="Zombie"

robo=script.Parent:clone()

while true do
    wait(1)
    if script.Parent.Zombie.Health<1 then
        robot=robo:clone()
        robot.Parent=script.Parent.Parent
        robot:makeJoints()
        script.Parent:remove()
    end
end

If you happen to know this script please tell me.

Thank you for reading everyone! Have a great day :wink:

2 Likes