Advertisement
JMZ10

JMZLock V1.0

May 12th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. while true do
  2. os.pullEvent = os.pullEventRaw
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5. write("Enter Password:")
  6. input = read("*")
  7. if input == "password" then
  8. print("Access Granted!")
  9. sleep(1)
  10. redstone.setOutput("top", true)
  11. sleep(3)
  12. redstone.setOutput("top", true)
  13. sleep(1)
  14. os.reboot()
  15. else
  16. print("Access Denied!")
  17. sleep(1)
  18. print("Shutting Down")
  19. sleep(1)
  20. os.reboot()
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement