File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments