Guest User

Untitled

a guest
Dec 16th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.57 KB | None | 0 0
  1.  
  2. os.pullEvent = os.pullEventRaw
  3.  
  4. shell.run("clear")
  5. print("Welcome! Enter Username..")
  6.   print(" ")
  7.   correctuser = "Mike"
  8.  
  9. write("Username:")
  10. user= read("*")
  11.  
  12. if user == (correctuser) then
  13.  
  14.  
  15. else
  16. print("Incorrect Username!")
  17. sleep(1)
  18. shell.run("clear")
  19. print("Shutting down OS ... o o o")
  20. sleep(1)
  21. shell.run("clear")
  22. print("Shutting down OS ... O o o")
  23. sleep(1)
  24. shell.run("clear")
  25. print("Shutting down OS ... o O o")
  26. sleep(1)
  27. shell.run("clear")
  28. print("Shutting down OS ... o o O")
  29. sleep(1)
  30. shell.run("clear")
  31. print("Shutting down OS ... o o o")
  32. sleep(1)
  33. shell.run("clear")
  34. print("Shutting down OS ... O o o")
  35. sleep(1)
  36. shell.run("clear")
  37. print("Shutting down OS ... o O o")
  38. sleep(1)
  39. shell.run("clear")
  40. print("Shutting down OS ... o o O")
  41. sleep(2)
  42. os.shutdown()
  43. end
  44.  
  45. correctpass = "password"
  46.  
  47. write("Password:")
  48.  
  49. pass= read("*")
  50.  
  51. if pass == (correctpass) then
  52. sleep(1)
  53. shell.run("clear")
  54. print("Welcome to your computer!")
  55. sleep(2)
  56. shell.run("clear")
  57.  
  58.  
  59. else
  60. print("Incorrect Username!")
  61. sleep(1)
  62. shell.run("clear")
  63. print("Shutting down OS ... o o o")
  64. sleep(1)
  65. shell.run("clear")
  66. print("Shutting down OS ... O o o")
  67. sleep(1)
  68. shell.run("clear")
  69. print("Shutting down OS ... o O o")
  70. sleep(1)
  71. shell.run("clear")
  72. print("Shutting down OS ... o o O")
  73. sleep(1)
  74. shell.run("clear")
  75. print("Shutting down OS ... o o o")
  76. sleep(1)
  77. shell.run("clear")
  78. print("Shutting down OS ... O o o")
  79. sleep(1)
  80. shell.run("clear")
  81. print("Shutting down OS ... o O o")
  82. sleep(1)
  83. shell.run("clear")
  84. print("Shutting down OS ... o o O")
  85. sleep(2)
  86. os.shutdown()
  87. end
Add Comment
Please, Sign In to add comment