Universal Script 📌
9.5k Views
65 Executions

Web execution

Universal Script 📌
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

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

View Raw
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


Comments

1
Log in to join the conversation. Login
UnnesscaryInventions's profile picture
UnnesscaryInventionsUploader2 years ago(edited)

Ofc made by me and insipred by bat

1

Tags

More universal scripts

See all
Script hub
29.4k
92.0k
2 weeks ago
Key System

Script hub

#7 this week

Verified script badgeArcane Hub | 125+ Games & 4000+ Features

Script hub
138.0k
417.6k
9 months ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub | Easy Key System

Script hub
3.9M
964.7k
1 year ago

Script hub

Hall of Fame #3

KeylessVerified script badge[KEYLESS] Moondiety Script | 20+ supported Games

Script hub
126
9
2 days ago
Key System
Paid
Script hub
3.0M
14.6M
3 years ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM - MM2, FTF, Forsaken, etc.

Script hub
390
132
2 days ago
Key System