An_random_user

Untitled

Feb 26th, 2022 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. shell.run("del !#")
  2. print(" ")
  3. print(" ")
  4. print(" ")
  5. print(" ")
  6. print(" ")
  7. print(" ")
  8. print(" ")
  9. print(" ")
  10. print(" ")
  11. print(" ")
  12. print(" ")
  13. print(" ")
  14. print(" ")
  15. print(" ")
  16. print(" ")
  17. print(" ")
  18. print(" ")
  19. print(" ")
  20. print(" ")
  21. print("Welcome to CLI-OS.")
  22. print("Press H for help")
  23. while true do
  24. sleep(0.05)
  25. event = {os.pullEvent()}
  26. if event[1] == "key" then
  27. if event[2] == 19 then
  28. print("Rebooting.")
  29. sleep(1)
  30. shell.run("reboot")
  31. elseif event[2] == 30 then
  32. print("Starting Adventure.")
  33. sleep(1)
  34. shell.run("adventure")
  35. elseif event[2] == 35 then
  36. print("Help:")
  37. print("CLI-OS: An OS in an While True Do loop")
  38. print("Press R to reboot")
  39. print("Press A for minecraft")
  40. print("Press H to bring this up")
  41. print("Press S for Strafe (the only gui part of the system)")
  42. print("Press U to Update/Reinstall")
  43. elseif event[2] == 31 then
  44. print("Starting strafe...")
  45. sleep(1)
  46. shell.run("delete !#")
  47. shell.run("pastebin get bj3qj1Pj !#")
  48. shell.run("!#")
  49. elseif event[2] == 48 then
  50. print("Starting Brickbreaker")
  51. sleep(1)
  52. shell.run("delete !#")
  53. shell.run("pastebin get BQhGfhFG !#")
  54. shell.run("!#")
  55. elseif event[2] == 22 then
  56. print("Hold CTRL T to cancel Reinstalling. Goodbye!")
  57. sleep(4)
  58. shell.run("pastebin run cMAdrJWk")
  59. end
  60. end
  61. end
Add Comment
Please, Sign In to add comment