GUI Pop up?

I want GUI to pop up saying something like locked when i walk up to a door, any help?

use a boolean :

var myBoolean = false;

function OnGUI () {
if(myBoolean) {
          // your gui code here
}

in your trigger event just change the boolean value to true.

Trigger event? As in when I get close to the object? And how would I do that?

for a door you can use a big square thats bigger then the door end set it to trigger and change the boolean when a controller enters the trigger

whats the codes for entering? collision?

You can use the OnTriggerEnter function to detect objects arriving in a trigger and OnCollisionEnter to detect a collision.