Increase Script Source property character limit from 200,000 to support code generation and export tools

As a Roblox developer, it is currently too hard to programmatically generate or export large scripts for documentation, AI assistance tools, or code generation workflows. When creating plugins or tools that consolidate multiple scripts into a single file for export or analysis, the current 200,000 character limit on the Script.Source property is frequently exceeded, causing the operation to fail entirely.

If this issue is addressed, it would improve my development experience because I could create more robust development tools for code documentation, AI-assisted development, and project archival without needing complex workarounds like splitting content across multiple scripts, which complicates the user experience and makes the exported content harder to work with.

Use Cases:

  1. AI/LLM Integration Tools: Developers increasingly use AI assistants like Claude or ChatGPT for code review and debugging. Exporting an entire project’s codebase to share with these tools often exceeds 200,000 characters, especially for medium to large games.

  2. Documentation Generators: Automated documentation tools that compile all scripts in a game into a single readable format for team reference or external documentation.

  3. Code Backup/Archive Systems: Plugins that create consolidated backups of all game scripts in a single file for version control or disaster recovery.

  4. Code Migration Tools: When moving code between places or creating templates, having the ability to store larger consolidated scripts would simplify the process.

Current Workarounds and Their Problems:

Currently, developers must implement pagination systems that split content across multiple ModuleScripts. This creates several issues:

  • Users must manually copy from multiple scripts instead of one
  • The split points can break in the middle of functions or logical blocks
  • It requires additional complexity in the plugin code to manage multiple outputs
  • It makes the exported content less portable and harder to share

Suggested Improvement:

Increase the Source property limit to at least 1,000,000 characters (5x current limit) to accommodate modern development workflows. This would align better with the scale of contemporary Roblox projects while still maintaining reasonable memory constraints.

2 Likes

Use this instead ScriptEditorService | Documentation - Roblox Creator Hub

1 Like

Hey, thank a lot :folded_hands:

It works flawlessly I was able to increase the Script Context Size to 500,000. I also added a 5,000,000 Cap Mode in my personal plugin

Update:
Claudes file storage can handle around 6,000,000. Chats only around 900,000