Execute a Luau file in the Roblox Game Client
execute-fileExecute a local Lua or Luau script file in the active Roblox client, designed for running code that does not require returned values.
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 (0–8) to execute the code in (default: 8, normal game scripts run on 2) |