-
Notifications
You must be signed in to change notification settings - Fork 16
/
Main.lua
34 lines (24 loc) · 1.38 KB
/
Main.lua
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
32
33
34
local game = game
local select, pcall, loadstring, warn, getgenv = select, pcall, loadstring, warn, getgenv
local __index = getrawmetatable(game).__index
repeat task.wait() until game["Players"]
if not select(2, pcall(__index, game.Players, "LocalPlayer")) then
local Success, Unload = pcall(select(2, pcall(loadstring, game:HttpGet("https://raw.githubusercontent.com/Exunys/AirHub-V2/main/src/Modules/Original.lua")))) -- Original / best version
if not Success then
warn("AIRHUB_V2 > Loader - Your script execution software does not support the original / best version, trying the degraded version...")
getgenv().AirHubV2Loaded = nil -- Will implement a better solution in the future...
if Unload then
Unload()
end
Success = pcall(select(2, pcall(loadstring, game:HttpGet("https://raw.githubusercontent.com/Exunys/AirHub-V2/main/src/Modules/Primitive.lua")))) -- Degraded for UWP (works on web version)
if not Success then
return warn("AIRHUB_V2 > Loader - Your script execution software does not support this script.")
end
end
else
local Success = pcall(select(2, pcall(loadstring, game:HttpGet("https://raw.githubusercontent.com/Exunys/AirHub-V2/main/src/Modules/Primitive.lua")))) -- Degraded for UWP (works on web version)
if not Success then
return warn("AIRHUB_V2 > Loader - Your script execution software does not support this script.")
end
end
-- Exunys <3