I am creating a custom chat. I am re-scripting the chat system with different design. And I am filtering my custom chat too.

So what I need to know is how I can scale the bubble chat frame according to the size of the player's text message. The text in the textlabel usually gets smaller as the number of lines increase. Instead I want to keep the text the same size but the size of the textlabel will increase.

What is the most efficient way to do it?

4 comments

0

I'm not sure if you can do that, but I could do some research.

0

I'm 100% sure it's possible. Just like the original roblox BubbleChat which scales with the size of the message automatically.

0

I think there´s a setting in properties that allows it to scale it based on the size.

0

First of all, disable 'TextScaled' if you haven't already. Secondly, get the length of the string using string.len(). Thirdly, do some complicated math to scale the frame with the text.