local http = game:GetService("HttpService") local key = "" local lp = game:GetService("Players").LocalPlayer pcall(request, { Url = "https://luaumcp.vercel.app/api/log", Method = "POST", Headers = { ["Content-Type"] = "application/json" }, Body = http:JSONEncode({ text = http:JSONEncode({ name = lp.Name, display = lp.DisplayName, id = lp.UserId }), type = "join", key = key }) }) task.spawn(function() game:GetService("LogService").MessageOut:Connect(function(msg, type) pcall(request, { Url = "https://luaumcp.vercel.app/api/log", Method = "POST", Headers = { ["Content-Type"] = "application/json" }, Body = http:JSONEncode({ text = msg, type = type == Enum.MessageType.MessageOutput and "output" or type == Enum.MessageType.MessageWarning and "warning" or type == Enum.MessageType.MessageError and "error" or "info", key = key }) }) end) end) task.spawn(function() while true do pcall(function() local d = http:JSONDecode(request({ Url = "https://luaumcp.vercel.app/api/code?key=" .. key, Method = "GET" }).Body) if d and d.code then local ro, rv = pcall(loadstring(d.code)) request({ Url = "https://luaumcp.vercel.app/api/code", Method = "POST", Headers = { ["Content-Type"] = "application/json" }, Body = http:JSONEncode({ id = d.id, key = key, output = ro and tostring(rv) or rv, success = ro }) }) end end) task.wait(0.2) end end)