Roblox Inject Code
roblox_inject_codeInsert a block of Luau code at the top or bottom of an existing Roblox script by specifying the instance path.
Instructions
Inject/append a block of Luau code to the top or bottom of an existing Roblox script.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Full instance path of the script. | |
| codeBlock | Yes | Block of Luau code to inject. | |
| position | No | Where to inject the code (top or bottom of the script). | bottom |
| waitForResponseMs | No | How long to wait for a runtime response. |