Im trying to do a tween with sizes instead of positions
But when I size the frame down, the child of it (topbar and selectionframe) wont sizedown, it just moves instead.
when you change the size of a frame you must also change the position if you want it to be in a specific spot. Also are you using Udim2 and not Vector3? Make sure to use Udim2 for sizes
? I didnt put a script yet I just need to know if theres a option to make the children of the frame adjust with the size instead of moving there
if there are things parented under the frame they will also be affected. If you want them not to be, take them out and make sure their size is scaled so they will be in the same places.
If the children are sized in offset ( e.g. {0, 152, 0, 642} = 152 pixels wide, 642 pixels high), they will remain unaffected regardless of parent size. You’ll have to translate the pixels into scale (e.g. {0.3, 0, 0.95, 0} = 30% of parent’s whole X scale, 95% of parent’s whole Y scale.
I usually use scale to size my UI, and rarely use offset, because using scale it will remain about the same size.