Extremely weird SurfaceGui resizing behavior

I have tried looking up different existing questions on the forum, but none of them seem to match up with whats happening to my GUI, I have also tried a SurfaceGUI editor plugin, but it had the same problem.

Position and Size for Textlabel:
image

When I tweak with the label barely, even if its 100, or just 1, the text goes away completely:


Here’s a video of my problem, to make it easier to understand:

(the reason for the warning label is because of the StyleEditor overwriting it)

i think you’re confusing scale with offset.
offset is measured in pixels (PixelsPerStud property for SurfaceGUIs)
ex. 200 pixel frame will measure 200 pixels, simple.

scale sizes with the parent.
ex. 0.5 ScaleX size frame will have it’s x length be HALF of it’s parent
1 = full size of parent
0.1 = 10% size of parent

what you’re doing right now is setting the ScaleX to 200. that TextLabel’s absolute size will be 200 times as large as the parent

UDim2s are {ScaleX, OffsetX} {ScaleY, OffsetY}
the 200 you wanted to put should be put into OffsetX instead

ok looking back this is a super bad explanation but hopefully this helps

1 Like

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