So I had a little trouble with this. Do I delete the default [if there is one] respawn script and replace it with a new one? I want to lengthen respawn time for good reasons.
So this is my attempt. Which is in the PlayerCharacterScripts.
respawnscript = script.Parent.Respawn
respawnscript:Destroy()
script.Parent.Humanoid.Died:connect(function()
wait(20)
-- Apparently I have to recreate the character??
oldchr = --THIS IS WHERE IM STUCK?
newchr = oldchr:Clone()
newchr.Parent = workspace
newchr:MoveTo(spawnpoint.Position) -- Dont mind spawnpoint value
workspace.CurrentCamera.CameraSubject = newchr
end)
Also, if there is a function to automatically respawn a character, instead of manually removing the character, and cloning it and teleporting it to a random spawn, then please tell me!
