Cannot assign empty game object to variable.

I know I’m going to get shafted for asking this but I’ve tried searching and couldn’t find anything regarding trouble with assigning empty game objects to a variable.

If I have a variable GameObject, I should be able to assign an empty game object to it, right?

Yet it won’t let me. Is there anything that could prevent me from assigning it to the variable slot?

I apologize in advance if this is a stupid question.

You need to do it like this

var player : GameObject;
player = new GameObject ("Player");

see link text

I think that is because you clicked on the script itself and tried to assign the EmptyGameObject to your variable
I clicked on my script and tried to assign the empty to my variable and it didnt work
but then I clicked on my game model that was using the script and tried to assign the empty there and it worked