It SOMETIMES works fine, but sometimes the script just completely broken, and gives me an error on line 13: attempt to index field 'Parent' (a nil value) What is wrong and how can I fix this?
name="Human"
local t = script.Parent.Config.RespawnTime.Value
robo=script.Parent:clone()
while true do
wait(t)
if script.Parent.Human.Health<1 then
name=robo:clone()
name.Parent=script.Parent.Parent
name:makeJoints()
script.Parent:remove()
end
end
