The .Text
property of TextObjects is limited to 16 Kibibytes (16,384 character length string).
When using RichText tags in our strings, this limit can be hit surprisingly fast, getting our text cut off as well as resulting in unclosed tags causing RichText failure.
For example, if you’re highlighting words in your text you’ll have things like
<font color="#10c221">word</font>
which takes your 4 character word and ends up with 33 characters, just to highlight this one word.
Please increase/remove the 16KiB limit so that we can make use of RichText without running into this wall. The limit should be 200,000 bytes not 16,384 bytes as that is the limit for StringValues and other string properties.
It’s worth pointing out that if you try to set a string that’s 200000+, you get this error:
String too long - LocalScript
But if you try to set a string that’s 199999, you get no errors and it just silently cuts your text at 16384.
Edit: Adding a use case to prove my point about how deceptively low this limit is.
If you want a rainbow text effect, you’d have each character be another color. As proven above, adding a color adds 29 characters so each character you have becomes 30.
16384/30 = 546. If you want rainbow text, you can only have 546 characters.
That’s not even two tweets.
This tweet alone is taking up more than half the budget of the .Text property if I were to apply richtext color to each character. If I were to apply bold as well, we’d be closer to 3/4th of the limit. Just from this one tweet. This text right here. That’s all it takes.
Increase!