-- discord: https://discord.gg/Q7HppZqaz8 local HttpService = game:GetService("HttpService") -- Set to your redeemed hilal_live_... token. -- May remain empty during the free trial. getgenv().HilalToken = getgenv().HilalToken or "" getgenv().decompile = function(scriptObject) local payload = { bytecode = base64.encode(getscriptbytecode(scriptObject)), script = scriptObject.Name } local headers = { ["Content-Type"] = "application/json" } if getgenv().HilalToken ~= "" then headers["Authorization"] = "Bearer " .. getgenv().HilalToken end local response = http_request({ Url = "https://hilaldecompiler.xyz/v1/decompile", Method = "POST", Headers = headers, Body = HttpService:JSONEncode(payload) }) local decoded = HttpService:JSONDecode(response.Body) local status = response.StatusCode or response.Status if not status or status < 200 or status >= 300 then local reason = decoded.error if type(reason) == "table" then reason = reason.message or reason.code end error(reason or "Hilal request failed") end if decoded.ok == false then error(decoded.error or "Decompilation failed") end return decoded.output end