Guest User

Untitled

a guest
Dec 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local password = "france"
  3. local cancel = "exitfrance"
  4. while true do
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. write("ANDOS-OS Initialized")
  8. sleep("1")
  9. write("Loading your Personal Settings....")
  10. sleep("1")
  11. write("System Fully loaded and ready to use.")
  12. term.clear()
  13. term.setCursorPos(1,1)
  14. write("Password: ")
  15. local input = read("*")
  16. if input == password then
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. print("Password correct!")
  20. else
  21. print("Password incorrect!")
  22. sleep(1)
  23. end
  24. end
  25. if input == cancel then
  26. print("ANDOS-OS Has cancelled the Process 'Startup.exe' because it has become unresponsive")
  27. sleep("1")
  28. print("Would you like to Reboot the System?")
  29. else
  30. if input == no then
  31. term.clear()
  32. term.setCursorPos(1,1)
  33. shell.exit()
  34. else
  35. if input == yes then
  36. print("ANDOS-OS Is Preparing to Reboot your System.")
  37. sleep("1")
  38. print("ANDOS-OS Uninitialized")
  39. sleep("1")
  40. os.reboot()
  41. end
  42. end
  43. end
Add Comment
Please, Sign In to add comment