Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Username
- shell.run("clear")
- os.pullEvent = os.pullEventRaw
- x = 1
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("Username: ")
- local input = read()
- if input == "Sam" then --replace "Sam" with the username you want
- term.clear()
- --Password
- os.pullEvent = os.pullEventRaw
- y = 1
- while true do
- term.clear()
- term.setCursorPos(1,1)
- write("Password: ")
- local input = read("*")
- if input == "5151" then --replace "5151" with the password you want.
- term.clear()
- term.setCursorPos(1,1)
- print("Opening door...")
- rs.setOutput("right",true)
- sleep(5)
- rs.setOutput("right",false)
- shell.run("reboot")
- else if input == "debug" then
- term.clear()
- term.setCursorPos(1,1)
- print("Entering Console Development Mode")
- error()
- else if y == 4 then
- print("Password Entered Incorrect 3 Times")
- print("Locked For 5 Minute")
- sleep(300)
- y = 1
- else print("Password Incorrect")
- y = y + 1
- sleep(2)
- end
- end
- end
- end
- else if input == "debug" then
- term.clear()
- term.setCursorPos(1,1)
- print("Entering Console Development Mode")
- error()
- else if x == 4 then
- print("Username Entered Incorrect 3 Times")
- print("Locked For 1 Minute")
- sleep(50)
- x = 1
- else print("Username Incorrect")
- x = x + 1
- sleep(2)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement