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
Retrieves the complete source code of a script (LuaSourceContainer) and returns it along with the line count.Endpoint
get_script_source
Parameters
The path to the script instance in the DataModel tree
Response
Success Response
The complete source code of the script
The total number of lines in the script
Error Response
Error message if the operation failed. Possible errors:
- Path resolution failure
- “Cannot read source (may require plugin permissions)”
- ” is not a script”
Implementation Details
- Only works with instances that inherit from
LuaSourceContainer(Script, LocalScript, ModuleScript) - Line count is calculated by counting newline characters plus 1
- Requires plugin permissions to read script sources
- Uses
pcallto safely access the Source property