Advertisement
DanilYoutuber

StartingUP

Oct 4th, 2015
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. --First name
  2. firstname = "If You need to be install system print y and after that again y"
  3. --Second NAme
  4. secondname = "If you want to cancel the installation print n and after that again n"
  5. --No
  6. no = "n"
  7. nreally = "n"
  8. --Yes
  9. yes = "y"
  10. yesrelly = "y"
  11.  
  12. --(Don't edit unless you know what you are doing)
  13. shell.run("clear")
  14. print (firstname)
  15. print (secondname)
  16. status, input = pcall (read)
  17. if input == yes then
  18. print "really?"
  19. status, password = pcall (read,'*')
  20. if password == yesrelly then
  21. print "Initialising"
  22. sleep(2)
  23. print "Preparing to install"
  24. sleep(2)
  25. print "Installing..."
  26. sleep(2)
  27. print "Installed!"
  28. sleep(2)
  29. os.reboot()
  30. else
  31. print "Failed!"
  32. sleep(0.9)
  33. os.shutdown()
  34. end
  35. elseif input == no then
  36. print "really?"
  37. status, password = pcall (read,'*')
  38. if password == nreally then
  39. print "ComputerRebooted!"
  40. sleep(2)
  41. os.reboot()
  42. else
  43. print "Failed!"
  44. sleep(0.9)
  45. os.shutdown()
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement