Skip to content

Lua bridge examples

Supplementary patterns. For requirements, API, and troubleshooting see the full overview.

Host in every URL must match your Sinister host (same domain as /get-script or your client download link).


Drop-in resolve

lua
loadstring(game:HttpGet("https://YOUR_SINISTER_HOST/script/lua_bridge_sinclient.run.lua", true))()

Load the module

lua
local luaBridge = loadstring(game:HttpGet(
    "https://YOUR_SINISTER_HOST/script/lua_bridge_sinclient.lua", true))()

if luaBridge.init() then
    luaBridge.resolve()
else
    warn("SinisterClient bridge not found on localhost.")
end

Override power for one call

lua
luaBridge.resolve({ power = 10, duration = 20, chains = 2 })

power 1–15, duration 5–30, chains 1–10. The module also accepts chain instead of chains.


Read intercept without resolving

lua
if luaBridge.init() and luaBridge.fetchToken() then
    local intercept = luaBridge.fetchIntercept()
    if intercept then
        print(intercept.resolve_type, intercept.username or intercept.placeid)
    end
end

Schedule feedback (when trusted)

lua
if luaBridge.init() then
    local result = luaBridge.reportWorked()
    if result.status == "queued_local" then
        warn("Saved locally — bridge reporting trust not enabled yet.")
    end
end

Manual health scan

Useful when debugging executor localhost access:

lua
local HttpService = game:GetService("HttpService")
local request = request or http_request or (syn and syn.request)

for port = 47711, 47721 do
    local ok, response = pcall(function()
        if request then
            return request({ Url = "http://127.0.0.1:" .. port .. "/health", Method = "GET" })
        end
        return { Body = HttpService:GetAsync("http://127.0.0.1:" .. port .. "/health") }
    end)
    if ok and response then
        local body = response.Body or response
        if type(body) == "string" and body:find("healthy") then
            print("Bridge on port", port)
            break
        end
    end
end

Executors that block localhost will fail here even when SinisterClient is running.


Common errors

SymptomLikely cause
init() falseClient not running, not signed in, or localhost blocked
Resolve no-opNo pending intercept — rejoin via SinisterClient proxy
401 from bridgeSession expired — reopen and sign in to SinisterClient
403 on interceptPlan may not include Lua bridge addon