This is my code
import { newAPIKey, newLuauExecutionSessionTask, getUniverseId, getCloudV2Api } from "../modules/utilities/api.js";
import { newGUID } from "../modules/utilities/general.js";
import { newSocket } from "../modules/utilities/websocket.js";
const { placeId } = Object.fromEntries(new URLSearchParams(window.location.search).entries());
const universeId = await getUniverseId(placeId);
const { apikeySecret: apiKey, cloudAuthInfo: { id: apiKeyId } } = await newAPIKey({
name: newGUID(),
scopes: [
{
scopeType: "universe.place.luau-execution-session",
targetParts: ["*"],
operations: ["write", "read"],
},
],
});
const webSocket = newSocket();
const luauExecutionSessionTask = await newLuauExecutionSessionTask(universeId, placeId, apiKey, `
local HttpService = game:GetService("HttpService")
local LogService = game:GetService("LogService")
local webSocket = HttpService:CreateWebStreamClient(Enum.WebStreamClientType.WebSocket, {
Url = "${webSocket.url}",
})
local messageConnection = webSocket.MessageReceived:Connect(function(script)
loadstring(script)();
end)
LogService.MessageOut:Connect(function(message)
webSocket:Send(message)
end)
webSocket.Closed:Wait()
messageConnection:Disconnect()
`);
window.getresult = () => getCloudV2Api(luauExecutionSessionTask.path, apiKey);
window.socket = webSocket;
And this is result for await getresult() (... is redacted)
{
"path": "universes/.../places/.../versions/2/luau-execution-sessions/.../tasks/...",
"createTime": "2025-11-10T15:02:33.409Z",
"updateTime": "2025-11-10T15:02:34.273Z",
"user": "...",
"state": "FAILED",
"script": "",
"error": {
"code": "SCRIPT_ERROR",
"message": "WebStreamClient is not enabled in RCC"
},
"binaryInput": "",
"enableBinaryOutput": false,
"binaryOutputUri": ""
}
Pls helpthx🙏
** You are now Level 23! **