Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. while true do
  2. os.pullEvent = os.pullEventRaw
  3. local password = "shishftw"
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. print ("Inserisci la password.")
  7. local input = read("*")
  8. if input == password then
  9. print("Password corretta.")
  10. rs.setOutput ("right", true)
  11. rs.setOutput ("left", true)
  12. sleep(4)
  13. rs.setOutput ("right", false)
  14. rs.setOutput ("left", false)
  15. else
  16. print("Password sbagliata.")
  17.  
  18. sleep(3)
  19. term.clear()
  20. term.setCursorPos(1,1)
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement