transform = transform

Hello.

I’m trying to make an object go to the location of other object for example:

var object1 : transform;
var object2 : transform;

function Start () {
object1 = object2;
}

but it’s giving me an error what do I have to do? Help me !!
and thank you already!