-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathloader.lua
More file actions
24 lines (22 loc) · 798 Bytes
/
loader.lua
File metadata and controls
24 lines (22 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local Branch = ...
local FloodGUIRepo = "https://raw.githubusercontent.com/ImMejor35/Flood-GUI/"..Branch
if not isfolder("Flood-GUI") then
makefolder("Flood-GUI")
end
if not isfolder("Flood-GUI/TAS") then
makefolder("Flood-GUI/TAS")
end
if not isfolder("Flood-GUI/TAS FILES") then
makefolder("Flood-GUI/TAS FILES")
end
function import(webpath)
local filepath = "Flood-GUI"..webpath
local fullurl = (FloodGUIRepo..webpath):gsub(" ", "%%20")
writefile(filepath, game:HttpGet(fullurl))
return true
end
local startimport = tick()
if import("/Flood GUI v3") and import("/TAS/TAS Editor") and import("/TAS/TAS Player") and import("/TAS/TAS Record Voiz") then
print("Imported Flood GUI in "..tostring(tick() - startimport))
end
loadfile("Flood-GUI/Flood GUI v3")(Branch)