Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- password = "TerraInc"
- inverted = false
- side = "left"
- opentime = 5
- rs.setOutput(side,inverted)
- write("Password: ")
- input = read("*")
- if input == password then
- if inverted == true then
- print("Access granted")
- rs.setOutput(side, false)
- sleep(opentime)
- os.reboot()
- else
- print("Access granted")
- rs.setOutput(side, true)
- sleep(opentime)
- os.reboot()
- end
- elseif input == "change" then
- print("Exiting program..")
- sleep(0)
- else
- print("Access denied")
- sleep(3)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement