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
Inserts new lines into a script after a specified line number, without replacing any existing content.Endpoint
insert_script_lines
Parameters
The path to the script instance in the DataModel tree
The line number after which to insert the new lines (0-indexed, where 0 means insert at the beginning)
The content to insert. 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 insertion
Error Response
Error message if the operation failed. Possible errors:
- Path resolution failure
- Script read errors
- Error from setting the Source property
Implementation Details
afterLineis 0-indexed:0means insert at the beginning,1means after the first line, etc.- The parameter is clamped to valid ranges (0 to total lines)
- Existing lines are preserved and shifted down
- Multiple lines can be inserted by including
\ncharacters in thelinesparameter - Does not replace any existing content