Is there a way to stop a player's character being removed when they respawn?

i fixed the code

only problem it does give warning
can be fixed by disabling the players movement
image