Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. password = "on"
  2. antipassword = "off"
  3. exitWord = "exit"
  4.  
  5. while true do
  6. input = read()
  7.  
  8. if input == password then
  9. Pulse()
  10. elseif input == antipassword then
  11. rs.setOutput("back", false)
  12. elseif input == exitWord then
  13. return
  14. end
  15. end
  16.  
  17. function Pulse()
  18. rs.setOutput("back", true)
  19. sleep(1)
  20. rs.setOutput("back", false)
  21. sleep(1)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement