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

I'm having a hard time getting scrollingframes to work the way i want them to, could anyone help?

Asked by 4 years ago

So i'm trying to make a gui with a ScrollingFrame using scale problem is that i don't know how i can change the size of the canvas accordingly and how i change the size of the guiobjects in the gui accordingly please help

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

well, if you want roblox to size/position GUI objects in your game accordingly, then make sure all Position and Size properties of your GUI objects are in Scale and not Offset. so instead of Udim2.new(0,100,0,100), you would do Udim2.new(1,0,1,0)..

which means when you look at the position/size of your GUI objects in the explorer window it should look like this if scaled:{number, 0}, {number, 0}

any GUI object that uses Scale will always be positioned/size relative to size/position of parent GUI or screen.. scale is a percent of parent GUI or screen, scale of 1 is 100%, .5 is 50% etc

0
I already understand how scale and offset work my problem is that i need to script it so the canvas size will change to the right size and the guiobjects inside will change to the right size to fit the canvas banane1man 2 — 4y
0
then make sure Frame.CanvasSize is in scale: https://developer.roblox.com/en-us/api-reference/class/ScrollingFrame User#23252 26 — 4y
Ad

Answer this question