-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoader.lua
More file actions
28 lines (26 loc) · 823 Bytes
/
Loader.lua
File metadata and controls
28 lines (26 loc) · 823 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
25
26
27
28
-- Made by Jupiter Development
-- File A: Games Supported - This Files Link: github.com/thiscontent/raw
shared.games = { -- Game | PlaceId | Link
--{GameName(String), PlaceID(Integer), Link(String)}
}
-- File B: Initialize
local succ,errorMsg = pcall(function()
loadstring(game:HttpGet(github.com/thiscontent/raw))();
end;
if not suc then
error("Problem detected\n Error Message: " .. errorMsg);
end
for _, game in pairs(shared.games) do
if (game[2] == game.PlaceID) then
local link = game[3];
local suc,err = pcall(function()
loadstring(game:HttpGet(link))();
return;
end)
if not suc then
error("Failed to initialize\n Error Message: " .. err);
end;
else
error("Game is not supported. Please retry.");
end;
end;