Integrating ZeroAuth SDK Into Your Script Key System
This dedicated SDK guide explains how to integrate ZeroAuth key validation and script delivery into your own Roblox script hubs, UI libraries (Rayfield, Linoria, etc.), or custom key verification interfaces.
1. Key & HWID Check
Sends user key and hardware fingerprint to api.zeroauth.qd.je.
2. Anti-Fetch Shield
Protects your source code from automated scrapers and direct GET dumps.
3. Secure Loadstring
Executes the encrypted Lua/Luau payload dynamically upon successful validation.
Interactive SDK Integration Code
local CoreGui = game:GetService("CoreGui")
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local localPlayer = Players.LocalPlayer
local httpRequest = request or http_request or (syn and syn.request) or (fluxus and fluxus.request)
assert(httpRequest, "ZeroAuth SDK: Executor HTTP request function unavailable.")
local PROJECT_ID = "proj_YOUR_ID"
local API_KEY = "za_live_YOUR_KEY"
local SCRIPT_ID = "scr_YOUR_SCRIPT_ID"
-- Create Key System ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "ZeroAuthKeySystem"
ScreenGui.Parent = CoreGui
local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 420, 0, 260)
Frame.Position = UDim2.new(0.5, -210, 0.5, -130)
Frame.BackgroundColor3 = Color3.fromRGB(15, 15, 21)
Frame.BorderSizePixel = 0
Frame.Parent = ScreenGui
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 12)
UICorner.Parent = Frame
local UIStroke = Instance.new("UIStroke")
UIStroke.Color = Color3.fromRGB(139, 92, 246)
UIStroke.Thickness = 1.5
UIStroke.Parent = Frame
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 50)
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBold
Title.Text = "ZeroAuth Key System"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextSize = 18
Title.Parent = Frame
local TextBox = Instance.new("TextBox")
TextBox.Size = UDim2.new(0, 370, 0, 45)
TextBox.Position = UDim2.new(0.5, -185, 0, 70)
TextBox.BackgroundColor3 = Color3.fromRGB(21, 21, 27)
TextBox.BorderColor3 = Color3.fromRGB(35, 35, 45)
TextBox.Font = Enum.Font.Code
TextBox.PlaceholderText = "Enter your license key (ZA-XXXX-...)"
TextBox.PlaceholderColor3 = Color3.fromRGB(146, 146, 157)
TextBox.Text = ""
TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
TextBox.TextSize = 13
TextBox.Parent = Frame
local BoxCorner = Instance.new("UICorner")
BoxCorner.CornerRadius = UDim.new(0, 8)
BoxCorner.Parent = TextBox
local VerifyButton = Instance.new("TextButton")
VerifyButton.Size = UDim2.new(0, 370, 0, 45)
VerifyButton.Position = UDim2.new(0.5, -185, 0, 130)
VerifyButton.BackgroundColor3 = Color3.fromRGB(139, 92, 246)
VerifyButton.Font = Enum.Font.GothamBold
VerifyButton.Text = "Verify Key & Load Script"
VerifyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
VerifyButton.TextSize = 14
VerifyButton.Parent = Frame
local BtnCorner = Instance.new("UICorner")
BtnCorner.CornerRadius = UDim.new(0, 8)
BtnCorner.Parent = VerifyButton
local StatusLabel = Instance.new("TextLabel")
StatusLabel.Size = UDim2.new(1, 0, 0, 30)
StatusLabel.Position = UDim2.new(0, 0, 0, 190)
StatusLabel.BackgroundTransparency = 1
StatusLabel.Font = Enum.Font.GothamMedium
StatusLabel.Text = "Status: Awaiting license key verification..."
StatusLabel.TextColor3 = Color3.fromRGB(146, 146, 157)
StatusLabel.TextSize = 12
StatusLabel.Parent = Frame
VerifyButton.MouseButton1Click:Connect(function()
local key = TextBox.Text
if key == "" then
StatusLabel.Text = "Error: Please enter a valid license key."
StatusLabel.TextColor3 = Color3.fromRGB(248, 113, 113)
return
end
StatusLabel.Text = "Connecting to ZeroAuth Edge..."
StatusLabel.TextColor3 = Color3.fromRGB(250, 204, 21)
-- Generate stable HWID fingerprint
local hwid = tostring(RbxAnalyticsService and RbxAnalyticsService:GetClientId() or localPlayer.UserId)
local success, response = pcall(function()
return httpRequest({
Url = "https://api.zeroauth.qd.je/api/v1/scripts/" .. SCRIPT_ID,
Method = "POST",
Headers = {
["Content-Type"] = "application/json",
["X-ZeroAuth-Client"] = "zeroauth-roblox/1.0"
},
Body = HttpService:JSONEncode({
apiKey = API_KEY,
licenseKey = key,
hwid = hwid,
raw = true
})
})
end)
if not success then
StatusLabel.Text = "Network Error: Failed to reach API gateway."
StatusLabel.TextColor3 = Color3.fromRGB(248, 113, 113)
return
end
local data = HttpService:JSONDecode(response.Body)
if data.valid then
StatusLabel.Text = "Success! Loading protected script..."
StatusLabel.TextColor3 = Color3.fromRGB(52, 211, 153)
task.wait(0.6)
ScreenGui:Destroy()
loadstring(data.script.scriptContent)(data.runtimeVars)
else
StatusLabel.Text = "Rejected [" .. tostring(data.errorCode) .. "]: " .. tostring(data.message)
StatusLabel.TextColor3 = Color3.fromRGB(248, 113, 113)
end
end)Step-by-Step Integration Instructions
Configure your Project & Script ID
Replace proj_YOUR_ID, za_live_YOUR_KEY, and scr_YOUR_SCRIPT_ID with credentials from your ZeroAuth Dashboard.
Executor HTTP Compatibility
The SDK automatically detects standard Roblox executor request functions (request, syn.request, fluxus.request) across Synapse X, ScriptWare, Fluxus, Delta, and Hydrogen.
Handling API Responses & Error Codes
If data.valid == true, the SDK securely destroys the key input GUI and executes the returned script payload via loadstring. If invalid, the exact error code (ZA_KEY_EXPIRED, ZA_HWID_MISMATCH, etc.) is displayed in real-time.