This is my script right now, for all I know it could be horribly wrong. Please help me. I'm trying to make a boss in my game only respawns after the player teleports back to the start. So I have the actual boss inside the folder of the teleporter so the teleporter is its parent? Idk here's the script!
name="Humanoid"
robo=script.Parent:clone()
while true do
wait until script.parent.touched
if script.Parent.Humanoid.Health<1 then
robot=robo:clone()
robot.Parent=script.Parent.Parent
robot:makeJoints()
script.Parent:remove()
end
end
