-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLoader.lua
More file actions
31 lines (26 loc) · 1.04 KB
/
Loader.lua
File metadata and controls
31 lines (26 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local http_service = cloneref(game:GetService("HttpService"))
local json = game:HttpGet("https://raw.githubusercontent.com/Panda-Repositories/PandaKS_Libraries/main/LibraryConfig/ApiServiceConfiguration.json")
local configuration = http_service:JSONDecode(json)
local mainUrl = configuration.Server_Domain.Main_URL
local PandaAuth
function RunLibraries(version)
if version == "v3" then
PandaAuth = loadstring(game:HttpGet(configuration.API_Configuration.v3_Library))()
elseif version == "v4" then
PandaAuth = loadstring(game:HttpGet(configuration.API_Configuration.v4_Library))()
else
PandaAuth = loadstring(game:HttpGet(configuration.API_Configuration.v2_Library))()
end
return PandaAuth
end
if getgenv().PelicanKeySys_Version == nil then
return RunLibraries("v2")
elseif getgenv().PelicanKeySys_Version == "v3" then
return RunLibraries("v3")
elseif getgenv().PelicanKeySys_Version == "v4" then
return RunLibraries("v4")
else
return RunLibraries("v2")
end
print("Successfully Loaded...")
return PandaAuth