mrWhiskasss

h1

Jul 12th, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. local internet = require("internet")
  2. local fs = require("filesystem")
  3.  
  4. local url = "https://raw.githubusercontent.com/SirAnatoly/dtaconicGITHUB/refs/heads/main/kek"
  5. local path = "/home/1.lua" -- куда сохранить файл
  6.  
  7. local handle = internet.request(url)
  8. if handle then
  9. local file = io.open(path, "w")
  10. for chunk in handle do
  11. file:write(chunk)
  12. end
  13. file:close()
  14. print("Файл успешно загружен!")
  15. else
  16. print("Ошибка: не удалось подключиться к URL")
  17. end
Advertisement
Add Comment
Please, Sign In to add comment