angelblair123

Untitled

Jan 10th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. local password = "unknown"
  4. term.setCursorPos(15,1)
  5. write("System Authorization")
  6. term.setCursorPos(15,2)
  7. textutils.slowPrint("Your Password")
  8. term.setCursorPos(15,3)
  9. local input = read("*")
  10. if (input == password) then
  11.  
  12. term.clear()
  13. term.setCursorPos(15,1)
  14. write("System Authorization")
  15. term.setCursorPos(15,2)
  16. textutils.slowPrint("Nickname ")
  17. term.setCursorPos(15,3)
  18. local name = read()
  19.  
  20. term.clear()
  21. term.setCursorPos(15,1)
  22. for i=0,100,10 do
  23. term.setCursorPos(15,i/10)
  24. print("Loading system ",i,"%")
  25. sleep(0)
  26. end
  27.  
  28.  
  29. sleep(1)
  30. term.clear()
  31. term.setCursorPos(15,1)
  32. write("System Authorization")
  33.  
  34. term.setCursorPos(15,2)
  35. textutils.slowPrint(" Welcome "..name.." ")
  36. term.setCursorPos(1,18)
  37. write("My created GravityFolls")
  38.  
  39. sleep(1)
  40. term.setCursorPos(1,1)
  41. term.clear()
  42. else
  43. term.clear()
  44. term.setCursorPos(15,1)
  45. textutils.slowPrint("Bad password")
  46. sleep(0,70)
  47. term.clear()
  48. term.setCursorPos(15,2)
  49. textutils.slowPrint("Restart")
  50. sleep(1)
  51. term.clear()
  52. term.setCursorPos(15,1)
  53. shell.run("reboot")
  54. end
Advertisement
Add Comment
Please, Sign In to add comment