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)
- print("Enter your password, please!")
- write("Password: ")
- pwd = read("*")
- if pwd == "password" then
- print("Live granted.")
- rs.setOutput("left", true)
- sleep(3)
- rs.setOutput("left", false)
- if pwd == "kill" then
- print("Death granted.")
- rs.setOutput("right", true)
- sleep(2)
- rs.setOutput("right", false)
- else
- print("Access denied.")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment