Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- term.setCursorPos(1,1)
- term.write("Password:")
- local password = read()
- if password == "MasterKey" then
- rs.setOutput("left", true)
- sleep(10)
- rs.setOutput("left", false)
- elseif password == "password1" then
- rs.setOutput("left", true)
- sleep(10)
- rs.setOutput("left", false)
- else
- term.print("Incorrect. Rebooting")
- sleep(2)
- os.reboot
- end
- end
Add Comment
Please, Sign In to add comment