Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I fix my scrollingframe from changing it's descendants size?

Asked by 3 years ago

I really don't have a problem or an error with my lua scripting, but I'm here to fix a problem that beginner developers probably have.

I also read the rule acticle and it didn't say anything about posting a question and answering your own question

So, when you make a scrollingframe and then you put a scaled frame inside of it, it goes into a different size.

There are two ways on how to fix this problem
1: You could make a new frame inside the scrollingframe and then set size to {1,0},{1,0} and then put the frame inside the new frame and then scale it

2: Execute this coding

local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint",Frame)
UIAspectRatioConstraint.AspectRatio = Frame.AbsoluteSize.X/ Frame.AbsoluteSize.Y 

and then scale the frame

It took me a long time to find this information

Answer this question