SHOW:
|
|
- or go back to the newest paste.
| 1 | --Made by LUModder | |
| 2 | local side = "back" | |
| 3 | local password = "DubstepFTW" | |
| 4 | while true do | |
| 5 | rs.setOutput(side,true) | |
| 6 | term.clear() | |
| 7 | term.setCursorPos(1,1) | |
| 8 | write("Password:")
| |
| 9 | local input = read("*")
| |
| 10 | if input == password then | |
| 11 | term.clear() | |
| 12 | term.setCursorPos(1,1) | |
| 13 | print("Password correct. Opening door")
| |
| 14 | rs.setOutput(side,false) | |
| 15 | sleep(2) | |
| 16 | rs.setOutput(side,true) | |
| 17 | else | |
| 18 | print("Nope.avi")
| |
| 19 | sleep(2) | |
| 20 | end | |
| 21 | end |