Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local side = "bottom"
- local password1 = "angel"
- local password2 = "matrix"
- local passwordadmin = "adminaccess"
- term.clear()
- sleep(1)
- print("Loading...")
- sleep(2)
- print("H.I.S.S Loaded")
- print("Welcome to the Home Intelligent Security System.")
- print("To continue please enter your H.I.S.S Access code.")
- write("Code: ")
- local input = read("*")
- if input == password1 then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct!")
- print("Welcome Home Angel")
- rs.setOutput(side,true)
- sleep(6)
- rs.setOutput(side,false)
- os.reboot()
- end
- if input == password2 then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct!")
- print("Welcome Home Matrix")
- rs.setOutput(side,true)
- sleep(6)
- rs.setOutput(side,false)
- os.reboot()
- 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