Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local side = "left"
- apass = "0001"
- bpass = "0002"
- cpass = "0003"
- adpass = "194977"
- term.clear()
- sleep(1)
- print("Welcome please enter your access codes")
- print("Password 1 of 3")
- write("Code: ")
- local input = read("*")
- if input == apass then
- sleep(1)
- print("Password 2 of 3")
- write("Code: ")
- local input = read("*")
- if input == bpass then
- sleep(1)
- print("Password 3 of 3")
- write("Code: ")
- local input = read("*")
- if input == cpass then
- sleep(3)
- term.clear()
- print("verifying passwords please wait...")
- sleep(1.5)
- print("password 1: correct")
- sleep(1)
- print("password 2: correct")
- sleep(1)
- print("password 3: correct")
- sleep(1)
- print("passwords verifyed")
- sleep(0.5)
- term.clear()
- print("unlock process initiated")
- rs.setOutput(side,true)
- sleep(6)
- rs.setOutput(side,false)
- os.reboot()
- end
- end
- end
- if input == passwordadmin then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct!")
- print("Computer unlocking...")
- print("Please type 'reboot' or 'shutdown' before leaving")
- os.pullEvent(terminate)
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Password incorrect!")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment