Trying to figure out UI Scaling Script for Roblox

So I have a GUI that is set up like this
image

What I want to do is make it so where if I add another Infraction the gui gets taller so it can fit without the use of a scrolling frame to make it look nicer, and it positions itself back into the center how can I do this

1 Like

image
this is what it looks like

With this the size of the frame would increase by the height of the gui this means going from 1 to 2 would be double the size, 2 to 3 would add another 1.5x and so on. Simily just take the increase by doing the current size / number of frames * new frame total. You would want to add a little bit of leway though

1 Like

so just script it to be double the size and then make a uilist layout so it automatically positions correctly??

1 Like

not quite, that would cause it to just double in size regardless of the number of frames you add in

so what should I do sir lmk please ok thank you sir ok

1 Like

Just resize the gui frames and add in more, the autoscaling will do the rest if you use incremental rather than a set change. Ive already explained the scaling for you and the rest is easy as.

1 Like

thankl you sir ok sir ok ok sir ok

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