Plazter

test#13

Apr 29th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local side = "right"
  2. local password = "puffawesome"
  3. local opentime = 2
  4.  
  5. while true do
  6. term.clear()
  7. term.setCursorPos(15,8)
  8. write("Enter Password: ")
  9. term.setCursorPos(16,10)
  10. local input = read("*")
  11. if input == password then
  12. rs.setOutput(side,true)
  13. sleep(opentime)
  14. rs.setOutput(side,false)
  15. else
  16. print("Password incorrect, HINT: puff")
  17. sleep(2)
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment