How do I get a more accurate CanvasSize from an ScrollingFrame? Note that all the buttons that get added the frame overtime are (0.9, 0, 0, 25).
Currently, my size code is this:
1 | if #Frame 2 :GetChildren() ~ = 0 then |
2 | script.Parent.CanvasSize = UDim 2. new( 0 , 0 , 0 , #Frame 2 :GetChildren()* 30 ) |
3 | end |