So i have this project where i have to create a code locked door, and then have the player approach it and put in a password. If the password is correct then the door opens, and if not then the password field just resets.
using UnityEngine;
using System.Collections;
public class KeyPad: MonoBehaviour {
public Texture2D icon;
void OnGUI () {
GUI.Box (new Rect (10,10,300,300), new GUIContent(icon));
}
}
so far this is the only code i have finished and working, and even then i need to find a way to keep this hidden until the player passes through a trigger near the door. I have no coding skills and honestly dont understand coding much but this is something i have to do for a class. i would appreciate any and all help that could be offered.
Coding is a fun and useful skill to have, I suggest you just dig into some tutorials 
This GUI scripting guide is pretty useful and should get you started with your specific problem :
Basically the callback of a button should append the number that button presents to a list (thus this list contains all buttons that are already pressed). You can then compare this list to your password to see if it’s correct. 
To get the GUI to pop up when you are near the door I would add a collider to the door. Script a trigger event that allows the GUI to open when you enter the collider and close the GUI when you exit the collider.
Then in your GUI I would add the GUI buttons and assign each button a number. The player than can input a code and your script can check to see if it is correct and then open the door if it is.