Web execution
Key RequiredUniversal

Web execution

Universal ScriptUnnesscaryInventionsUnnesscaryInventions 9.5K views 63 executesUpdated Nov 22, 2024
0.0/ 5(1 votes)
010% Positive
Lua Script•43 lines (1534 chars)
local apiURL = "https://iknoxteam.pythonanywhere.com/api"
local lastCodeID = nil
local function pingAPI()
    local success, result = pcall(function()
        return game:HttpGet(apiURL)
    end)
    if success then
        local jsonData = game:GetService("HttpService"):JSONDecode(result)
        if #jsonData >= 2 then
            local codeID = jsonData[1]
            local codeToRun = jsonData[2]
            if codeID ~= lastCodeID then
                lastCodeID = codeID
                local function isValidCode(code)
                    local func, err = loadstring(code)
                    if not func then
                        return false, err
                    end
                    return true
                end
                local isValid, errorMessage = isValidCode(codeToRun)
                if isValid then
                    local successLoad, loadError = pcall(function()
                        print("[WEB]: Code received executed!")
                        loadstring(codeToRun)()
                    end)
                    if not successLoad then
                        print("[WEB]: Error executing received code: " .. loadError)
                    end
                else
                    warn("[WEB]: Invalid Lua code received: " .. errorMessage)
                end
            end
        else
            warn("[WEB]: Invalid JSON format received.")
        end
    else
        warn("Failed to fetch API: " .. tostring(result))
    end
end
while task.wait(1) do
    pingAPI()
end

Features & Information

Allows anyone to run scripts on your executor or client like a public executor you can use this too so you can run scripts via web Web : https://iknoxteam.pythonanywhere.com/executionremote Known errors : might say failed to send code (because your code is broken or is like invalid, dosent go away so like just check the roblox console if the code received is invalid or syntax error or some undefined values) Might try to make web execution not public (needs a code given by the script to be inputted to the website so like a verifying key) so you can use it without being iplogged
#execution#executor#fun#age minimal

Community Comments (1)

UnnesscaryInventionsUnnesscaryInventionsNov 22, 2024(edited)

Ofc made by me and insipred by bat

More Scripts for Universal Scripts