Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nnaridz/RbxGenie/llms.txt
Use this file to discover all available pages before exploring further.
Description
Replaces a specified range of lines in a script with new content. The start and end lines are inclusive.Endpoint
edit_script_lines
Parameters
The path to the script instance in the DataModel tree
The first line number to replace (1-indexed, inclusive)
The last line number to replace (1-indexed, inclusive)
The new content to insert in place of the specified lines. Can contain multiple lines separated by
\nResponse
Success Response
Returns
true if the operation was successfulThe total number of lines in the script after the edit
Error Response
Error message if the operation failed. Possible errors:
- Path resolution failure
- Script read errors
- Error from setting the Source property
Implementation Details
- Line numbers are 1-indexed (first line is 1)
- Start and end lines are clamped to valid ranges (1 to total lines)
- The replacement can span multiple lines by including
\ncharacters - The number of replacement lines doesn’t need to match the number of deleted lines
- Lines outside the specified range are preserved