Skip to content

Commit 967d623

Browse files
authored
Create V1.lua
1 parent 655b51e commit 967d623

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Version/V1.lua

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
--============================--
2+
-- 🌟 NgNhDuc Hub 🌟
3+
--============================--
4+
-- Author: NgNhDuc
5+
-- Based on Xeter Hub by TlDinhKhoi
6+
--============================--
7+
8+
local _ENV = (getgenv and getgenv()) or getrenv() or getfenv()
9+
10+
local CURRENT_VERSION = _ENV.Version or "V1"
11+
local Versions = {
12+
V1 = "https://raw.githubusercontent.com/sgpdex/NgNhDuc/main/Version/V1.lua"
13+
}
14+
15+
local url = Versions[CURRENT_VERSION]
16+
if not url then
17+
warn("[NgNhDuc Hub] Phiên bản không hợp lệ: " .. tostring(CURRENT_VERSION))
18+
return
19+
end
20+
21+
print("[NgNhDuc Hub] Đang tải phiên bản: " .. CURRENT_VERSION .. " ...")
22+
23+
local ok, src = pcall(function()
24+
return game:HttpGet(url)
25+
end)
26+
27+
if not ok then
28+
warn("[NgNhDuc Hub] Không thể tải URL: " .. tostring(src))
29+
return
30+
end
31+
32+
local success, err = pcall(loadstring(src))
33+
if not success then
34+
warn("[NgNhDuc Hub] Lỗi khi chạy script V1: " .. tostring(err))
35+
else
36+
print("[✅] NgNhDuc Hub đã khởi động thành công!")
37+
end

0 commit comments

Comments
 (0)