Execute a Luau file in the Roblox Game Client
execute-fileExecutes a local .luau or .lua file in the active Roblox game client. Choose this tool when you need to run code without returning output.
Instructions
Execute a local .luau or .lua file in the active Roblox client without returning output. Use get-data-by-code instead when you need returned values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | The absolute path to the .luau or .lua file to execute | |
| threadContext | No | The thread identity to execute the code in (default: 8, normal game scripts run on 2) |