interact-able objects

I have a script that im using to try and pick up something and then set it back down. here is my script.

if (PickedUp == 1) {
     if (Physics.Raycast (transform.position, -Vector3.up, hit)) {
        if (hit.distance <= 3) {
            RaycastHit.rigidbody.transform.position = pickupplace;
        }
     }
     else {
     }
}

So this script says if a raycast hits, and it hits within 3, then assign the hit rigidbody to a transform location called pickupplace. Any idea what im doing wrong?

http://forum.unity3d.com/threads/41530-Picking-up-and-holding-an-object