I want to make it so that when a player has fallen a certain height it will respwan in a certain location but have no idea how to. Can someone help me?
function Update ()
{
if (transform.position.y < -10)
transform.position = Vector3 (10, 4, 1);
}