How do i make a scrolling frame's canvas scale to its children?

Ok, so ive been trying different equations for HOURS, but i can’t seem to figure out how to get the scrolling’s canvas size to scale to fit the amount of pets needed. I haven’t even gotten close, heres the thing:


Could someone please tell me the equation i need or guide me in the right direction? Thanks!

Make the CanvasSize of the ScrollingFrame equal to the UIGridLayout’s AbsoluteContentSize.
AbsoluteContentSize is the pixels the the content takes up, so use the Offset properties of UDim2 rather than Scale.

7 Likes