Respawn player at different Spawnpoints

Hi there! I'm trying to make my player respawn at a fixed spawnpoint. I want to have different spawnpoints along my level... here is my question: how can i pick up the cordinates of a taged gameobject? thanks

here is my script:

var spawnp=0;

function dead()
{
    if(spawnp == 0)
    { 
        transform.position.x = 0;
        transform.position.y = 12;
        transform.position.z = -9;
        transform.rotation.y = 0;
        }
    if(spawnp == 1)
    {
        transform.position.x = 0;
        transform.position.y = 26.0515;
        transform.position.z = 121.4297;
        transform.rotation.y = 0;

    }
    }
            Healthcontrol.LIVES -=1;
}

to get the coordinates of a gameobject's transform you need its position property like

GameObject.Find("MyObject").Transform.Position

the Position property is a Vector3 object

hope this is the answer you are looking for