Advertisement
_56cool_

Door lock

Dec 6th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local standby = 10
  3. local side = "top"
  4. local password = "ex2"
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. write("Password: ")
  8. local input = read("*")
  9. if input == 56 then
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. print("Well done")
  13. rs.setOutput(side,true)
  14. sleep(Standby)
  15. rs.setOutput(side,false)
  16. os.reboot()
  17. else
  18. term.clear()
  19. term.setCursorPos(1,1)
  20. print("Your a failure just like trolls in this topic")
  21. sleep(2)
  22. os.reboot()
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement