libraryaddict

Untitled

Apr 25th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. Password = "hello"
  2. Side = "back"
  3. function Clear()
  4. term.setCursorPos(1,1)
  5. term.clear()
  6. end
  7.  
  8. function RS(which)
  9.   rs.setOutput(Side, which)
  10. end
  11.  
  12. while true do
  13. --Clear()
  14. write("Password: ")
  15. ignore,check = pcall(read)
  16. print(ignore, check)
  17. if check == Password then
  18. RS(true)
  19. sleep(5)
  20. RS(false)
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment