local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer while not localPlayer do task.wait() localPlayer = Players.LocalPlayer end local function notifyAuthError(reason) local sg = game:GetService("StarterGui") for _ = 1, 8 do local ok = pcall(function() sg:SetCore("SendNotification", { Title = tostring(reason or "Verification failed"), Text = "", Duration = 10 }) end) if ok then break end task.wait(0.25) end end local function urlEncode(str) return (tostring(str):gsub("([^%w%-_%.~])", function(c) return string.format("%%%02X", string.byte(c)) end)) end local key = script_key or _G.ScriptKey or (getgenv and getgenv().script_key) if not key or tostring(key) == "" then notifyAuthError("Key is required!") return end local req_fn = (request or http_request or (syn and syn.request) or (http and http.request)) if not req_fn then notifyAuthError("Your executor does not support HTTP requests!") return end local scriptUrl = "https://hahay.voidsgg.com/script?key=" .. urlEncode(key) .. "&user=" .. urlEncode(localPlayer.UserId) .. "&name=" .. urlEncode(localPlayer.Name) local ok, response = pcall(function() return req_fn({ Url = scriptUrl, Method = "GET" }) end) if not ok or not response then notifyAuthError("Failed to connect to loader server") return end if response.StatusCode ~= 200 or not response.Body or response.Body == "" then notifyAuthError((response.Body and response.Body ~= "") and response.Body or "Key verification failed") return end local fn, compileErr = loadstring(response.Body) if not fn then notifyAuthError("Failed to load script: " .. tostring(compileErr)) return end fn()