How to make a scrolling frame increase size as more text start to fill it?

Not sure which subject to choose but i think its scripting. I want the Scrolling Frame to increase in canvas size (Y axis only) so my chat room messages fit in as more start to fill, when I mean change size. I’m talking about Canvas size!.
Yes, I have seen those topics which relate to this but its too confusing to me.
P.S I tried a script but it just kept changing my text sizes…

Assuming you mean and Automatic Scaling:
The Simplest way to would with a UIGridLayout and with RunService, you would need to apply an offset based on the AbsoluteContentSize

game:GetService("RunService").RenderStepped:Connect(function()
	ScrollingFrame.CanvasSize = UDim2.fromOffset(0,ScrollingFrame.UIGridLayout.AbsoluteContentSize.Y)
end)
2 Likes

It changed my text sizes (the text size are on scale not offset as well). And it did not change upon text filling the whole scrolling frame and i can’t seem to scroll anymore. Do i have to change something in UIgridlayout?

Try the following:

  • Set AutoCanvasSize to Y or X
  • Set CanvasSize to {1,0},{1,0}
2 Likes

OH THANK YOU. The AutoCanvasSize was off.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.