Scaling issues with SurfaceGui (CAUSE AND SOLUTION)

  1. i must achieve the correct scaling of the surface gui’s children, i currently have not done so, and the scaling is still messed up.

  2. upon changing the parent of the surfacegui to startergui and setting its adornee property i have encountered an ultimate problem, scaling. before this it was fine and did not have any issues when parented under the instance that is now the adornee, but upon testing i’ve noticed this and tried to fix it for hours, but to no avail, it still has scaling problems and the only solution i ever see working is manually re-scaling every single instance under the surfacegui (if you’re interested, there were 2 surfaceguis total, and i have no idea about what the previous values were, however i tried re-sizing them, it seems to work but not very well since the sizing is completely messed up even when i’m trying to fix it)

  3. i’ve tried going on the main website, youtube tutorials, any coding websites, people, the developer forums havent even been of any use to me. last topic that seemed mildly related was one from 2017 (the ai assistant didn’t work, but that doesn’t surprise me)

i am dying inside, writing this at 6:33 AM, so excuse any errors. i’ve previously encountered this issue before so i know it’s related to manual scaling of the instances, because that’s how i’ve previously managed to fix it. however, i did that by scaling the parent frame to 1,0,1,0. but that’s not what i have to do here, since i’m aiming to make custom sizes for these surfaceguis instead.

all attempts with the sizingmode property have failed, so has pixelsperstud or canvassize. maybe there’s something about that which might help improve the situation. if photos are needed, i’d be eager to provide

here’s a screenshot, and no, i didn’t make the buttons this small. but hey, the good part in this is that the buttons work

UPDATE: i have just noticed that i can view the surfacegui without having to test the game, now i can experiment with ease

SOLUTION!! after hours of trying to fix this, i have managed to do so, turn on ui visibility in the view tab and enable your surface GUI. there is no automatic way to fix it, however turn your sizing mode to pixels per stud and put it to a value of 50.

from what i’ve noticed, only the sizing is affected, and not the positions. the sizing will be completely distorted, but it will be in a sort of order to the previously OK surfacegui

here’s the fixed version for comparison;

UPDATE:

the cause of this bug is most probably the autoscale plus plugin, inside of the plus menu you have some basic configurations, upon switching a surfacegui’s parent to StarterGui, it automatically updates all gui objects inside the surfacegui according to the plugin, messing the ui up.

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