-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloader_executor.lua
More file actions
72 lines (63 loc) · 2.3 KB
/
Copy pathloader_executor.lua
File metadata and controls
72 lines (63 loc) · 2.3 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
-- loader_executor.lua
-- Entry point for executor - loads main.lua from GitHub
-- ============================================
-- CONFIGURATION
-- ============================================
-- UPDATE THIS WITH YOUR GITHUB RAW URL
local GITHUB_RAW_URL = "https://raw.githubusercontent.com/Artifaqt/SOS-Modular/refs/heads/main/main.lua"
-- ============================================
-- VERSION INFO
-- ============================================
local VERSION = "1.0.0"
local SCRIPT_NAME = "SOS Modular Script"
-- ============================================
-- LOADING SCREEN
-- ============================================
print("===========================================")
print(string.format(" %s v%s", SCRIPT_NAME, VERSION))
print("===========================================")
print("\nLoading from GitHub...")
print("URL:", GITHUB_RAW_URL)
print("")
-- ============================================
-- LOAD MAIN SCRIPT
-- ============================================
local success, result = pcall(function()
return game:HttpGet(GITHUB_RAW_URL)
end)
if not success then
warn("[SOS] Failed to fetch main.lua from GitHub!")
warn("[SOS] Error:", result)
warn("[SOS] Please check:")
warn(" 1. Your GitHub URL is correct")
warn(" 2. The repository is public or you have access")
warn(" 3. The file path is correct")
return
end
-- ============================================
-- EXECUTE MAIN SCRIPT
-- ============================================
print("[SOS] Downloaded main.lua successfully!")
print("[SOS] Executing main script...\n")
local executeSuccess, executeError = pcall(function()
loadstring(result)()
end)
if not executeSuccess then
warn("[SOS] Failed to execute main.lua!")
warn("[SOS] Error:", executeError)
else
print("\n[SOS] Script execution completed!")
end
-- ============================================
-- USAGE INSTRUCTIONS (printed to console)
-- ============================================
print("\n===========================================")
print(" USAGE INSTRUCTIONS")
print("===========================================")
print("\nHotkeys:")
print(" H - Toggle HUD Menu")
print(" F - Toggle Flight")
print(" Tab - Toggle Leaderboard")
print(" Caps - Switch Leaderboard")
print("\nFor updates, reload the script from executor!")
print("===========================================\n")