Get data by code
get-data-by-codeExecute Luau scripts in the active Roblox game client to retrieve serialized Lua values. Specify thread context and timeout for tailored execution.
Instructions
Execute Luau in the active Roblox client and return serialized raw Lua values. The code must return values; do not manually JSON-encode them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to execute in the Roblox Game Client (MUST return one or more values). Return raw Lua values - do NOT manually serialize tables or use JSONEncode, the connector handles serialization automatically. | |
| threadContext | No | The thread identity to execute the code in (default: 8, normal game scripts run on 2) | |
| timeout | No | Timeout in milliseconds for the response (default: 15000, max: 120000). Increase for long-running operations like decompiling many modules. |