forked from github/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathV1.lua
More file actions
37 lines (30 loc) · 1011 Bytes
/
Copy pathV1.lua
File metadata and controls
37 lines (30 loc) · 1011 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
29
30
31
32
33
34
35
36
37
--============================--
-- 🌟 NgNhDuc Hub 🌟
--============================--
-- Author: NgNhDuc
-- Based on Xeter Hub by TlDinhKhoi
--============================--
local _ENV = (getgenv and getgenv()) or getrenv() or getfenv()
local CURRENT_VERSION = _ENV.Version or "V1"
local Versions = {
V1 = "https://raw.githubusercontent.com/sgpdex/NgNhDuc/main/Version/V1.lua"
}
local url = Versions[CURRENT_VERSION]
if not url then
warn("[NgNhDuc Hub] Phiên bản không hợp lệ: " .. tostring(CURRENT_VERSION))
return
end
print("[NgNhDuc Hub] Đang tải phiên bản: " .. CURRENT_VERSION .. " ...")
local ok, src = pcall(function()
return game:HttpGet(url)
end)
if not ok then
warn("[NgNhDuc Hub] Không thể tải URL: " .. tostring(src))
return
end
local success, err = pcall(loadstring(src))
if not success then
warn("[NgNhDuc Hub] Lỗi khi chạy script V1: " .. tostring(err))
else
print("[✅] NgNhDuc Hub đã khởi động thành công!")
end