Marlingaming

Aperture Science OS System - Deleted state - Reinstall Prompt

Sep 16th, 2021 (edited)
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. --this program asks if the player wishes to reinstall the OS, if the player says "delete" then this program will delete the startup file
  2.  
  3.  
  4. function Reinstall()
  5. fs.delete("startup")
  6. shell.run("pastebin","get","xByKNAZS","startup")
  7. print("rebooting system to allow Download")
  8. sleep(5)
  9. os.reboot()
  10. end
  11.  
  12. print("Would you Like to reinstall Aperture Science OS System?")
  13. print("y = yes, n = no, d = Delete this prompt")
  14.  
  15. while true do
  16. local key = os.pullEvent("key")
  17. if key == keys.y then
  18. Reinstall()
  19. break
  20. elseif key == keys.n then
  21. break
  22. elseif key == keys.d then
  23. fs.delete("startup")
  24. break
  25. end
  26. end
Add Comment
Please, Sign In to add comment