daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Jan 16th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.pullEvent = os.pullEventRaw
  2. local opentime = 5 -- Change the 10 how long the door or what ever will stay open
  3. local side = "right" -- Change to where the door is left, right, front, back, bottom, top
  4. local password = "water" -- Change Password to what you want your password to be.
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. write("Password: ")  -- change this if u wish to have a cutom prompt
  8. local input = read("*")
  9. if input == password then
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. print("Acces Granted!") -- Change this if you wish to have a custom congratulations
  13. rs.setOutput(side,true)
  14. sleep(opentime)
  15. rs.setOutput(side,false)
  16. os.reboot()
  17. else
  18. term.clear()
  19. term.setCursorPos(1,1)
  20. print("Acces Denied!") -- Change this if you wish to have a custom fail message
  21. sleep(2)
  22. os.reboot()
  23. end
RAW Paste Data
Top