Advertisement
grayman

Door Passcode

Oct 6th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. write("Enter Password: ")
  2. pass = pcall(read)
  3. if pass == "password" then
  4. redstone.setOutput("left",true)
  5. term.setTextColor(colors.lime)
  6. print("Password Correct!")
  7. sleep(3)
  8. redstone.setOutput("left",false)
  9. os.reboot()
  10. else
  11. term.setTextColor(colors.red)
  12. print("Password Incorrect!")
  13. sleep(3)
  14. os.reboot()
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement