remie92

Turtle Installer

Aug 4th, 2025 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. shell.run("rm *")
  2. pastebinLinks={
  3. {link="VGx88h7f",name="startup.lua"},
  4. {link="fQNxsiqw",name="salt.lua"}
  5. }
  6.  
  7. currCommand=""
  8. currIndex=1
  9. function downloadFile()
  10. print("Downloading "..currIndex.."/"..#pastebinLinks)
  11. print("rm "..currCommand.name)
  12. shell.run("rm "..currCommand.name)
  13. while #fs.find(currCommand.name)==0 do
  14. print("pastebin get "..currCommand.link.." "..currCommand.name)
  15. shell.run("pastebin get "..currCommand.link.." "..currCommand.name)
  16. end
  17. end
  18.  
  19. for i,v in ipairs(pastebinLinks) do
  20. currIndex=i
  21. currCommand=v
  22. local success = false
  23. while not success do
  24. success, err = pcall(downloadFile)
  25. print(success)
  26. if not success then
  27. sleep(1)
  28. end
  29. end
  30. sleep(0.25)
  31. end
  32. shell.run("startup.lua")
Advertisement
Add Comment
Please, Sign In to add comment