Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local redstoneSide = "back";
- local passcode = "8008135";
- while true do
- redstone.setOutput("back", false);
- shell.run("clear");
- print("==============================")
- term.setTextColor(colors.red);
- print(" High Security Area")
- term.setTextColor(colors.white);
- print(" Authorized Personel Only")
- print("==============================")
- io.write("Password: ")
- local input = io.read();
- if input == passcode then
- shell.run("clear");
- print("==============================")
- term.setTextColor(colors.green);
- print(" Access Granted")
- term.setTextColor(colors.white);
- print(" Opening Door!")
- print("==============================")
- redstone.setOutput("back", true);
- os.sleep(5);
- else
- shell.run("clear");
- print("==============================")
- term.setTextColor(colors.red);
- print(" Incorrect Password")
- term.setTextColor(colors.white);
- print(" Please Try Again")
- print("==============================")
- os.sleep(2);
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment