This is my respawn script, I put it in a model I need to respawn when it dies but when I put the wait time over 1 second the script doesn't work. Can someone help me ?
name="Humanoid"
robo=script.Parent:clone()
while true do
wait(1)
if script.Parent.Humanoid.Health<1 then
robot=robo:clone()
robot.Parent=script.Parent.Parent
robot:makeJoints()
script.Parent:remove()
end
end
