Respawn problem

Please explain to me, why does not work respawn Standart Assets (mobile) —> Player Relative Controls +(my script)

function Update()
{
if (gameObject.transform.position.y <=-50)
{
gameObject.transform.position.x=0;
gameObject.transform.position.y=0;
gameObject.transform.position.z=0;
}
}

respawn?

All you are doing is moving the game object that script is attached to, if it is destroyed then the script and other associated components(etc) are removed as references, if you destroy you will need to instantiate the game object from a prefab, or use object pooling to mimic the behavior without destroying the already instantiated object.

I want to do that,YOUTUBE but for android

may have other ways of returning to the starting point?