Accessing variables across scripts in JS

I am trying to access this variable (id) in a different script than the one it is created in. I have done this before in other projects and it worked which leads me to believe that it has something to do with the GetInstanceID() Assignment.

Here is the code:
public static var id = GetInstanceID();

The error it give is: An Instance of Type “UnityEngine.Object” is required to access non static member “GetInstanceID”.

Any help would be greatly appreciated.

GetInstanceID() is a non-static function. You need to have a reference to an instance of that class to call that function.