getting hit and respawning

Hey i need help to create a script in which you get hit by a prefab called " ball " and you respawn back at "respawn point".... please help!

Something like this should do it:

var spawn : Transform; //assign from the inspector

function OnCollisionEnter(other : Collision)
{
    if (other.name == "ball")
    {
        transform.position = spawn.position;
        transform.rotation = spawn.rotation;
    }
}

Both objects need to be non trigger colliders, and the ball probably needs a non kinematic rigidbody