How can I make this "effect"?

So, I wanted to create an debug console for testing and I wanted the text to scale to the end if needed like a normal terminal how can I do this?

Kind of like this depending on the size:
https://gyazo.com/20cd0d1ddf750de0ca521162be2e9032

As long as it’s parented to the frame/scrollingframe behind it you can just set the scale parts of its position property described by its assigned UDim2 value.

(scaleX, offsetX, scaleY, offsetY)

I want a terminal effect, where the text isn’t huge but it scales out to the end of the line, then goes down, using text scaled just makes it big all the time

You can reduce the Y scale of your TextLabel, as this will make the text only scale to the end.
You can also use a UITextSizeConstraint if you want to reduce the text size further.

I think you’re either looking for:

https://developer.roblox.com/en-us/api-reference/property/TextLabel/TextWrapped

https://developer.roblox.com/en-us/api-reference/property/TextLabel/TextScaled

Other than these two properties, the effect you’re looking for is probably programmed.

Yes, it will have to be programmed but how is what I am wondering how can I calculate how big I need it? Can I do like per character is a pixel in size or something?

Look into the TextService:

You can also use the line height:

https://developer.roblox.com/en-us/api-reference/property/TextLabel/LineHeight


I’m not exactly sure what effect you’re going for. From my experience terminal text just wraps.

1 Like