Advertisement
ColdIV

SCM Installer

Aug 3rd, 2022 (edited)
1,429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. -- Updates / Installs the Script Manager (scm) from GitHub
  2. -- Run `pastebin run 1kKZ8zTS`
  3. -- SCM: https://github.com/mc-cc-scripts/script-manager
  4. local source = "https://raw.githubusercontent.com/mc-cc-scripts/script-manager/master/"
  5. local response = http.get(source .. "scmInstaller.lua")
  6. if response and response.getResponseCode() == 200 then
  7.     local installer = loadstring(response.readAll())
  8.     local scmInstaller = installer()
  9.     local files = scmInstaller:getFilesTxt(source)
  10.     scmInstaller:deleteFiles(files)
  11.     scmInstaller:downloadFiles(source, files)
  12. else
  13.     error("Failed to download!")
  14. end
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement