Advertisement
PandaAylmao

Untitled

Jul 18th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. term.clear()
  4. term.setCursorPos(1, 1)
  5.  
  6. username = {"12345"}
  7.  
  8. write("Password: ")
  9. pass = read('*')
  10.  
  11. for i=1, #username do
  12. if pass == username[i] then
  13. access = true
  14. end
  15. end
  16.  
  17. if access == true then
  18. print("Logging in...")
  19. sleep(1)
  20. print("Welcome")
  21. sleep(1)
  22.  
  23. term.clear() -- Clears the screen
  24. term.setCursorPos(1, 1)
  25.  
  26. shell.run("pastebin", "get", "heUCJM7E", "cd2")
  27.  
  28. parallel.waitForAny(
  29. function()
  30. return shell.run("redpulse", "left", "1", "20")
  31. end,
  32. function()
  33. return shell.run("cd2")
  34. end)
  35.  
  36. else
  37. print("Incorrect password")
  38. sleep(2)
  39. os.reboot()
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement