UI is not scaling correctly

This is a frame which has the Size set to (1,0,1,0), which should fill the screen, and this is what happens.

But this is in Roblox Studio, in the actual game it scales correctly?
Also I am using TeamCreate so that might have to do something with it

1 Like

Is it set by a script or in studio?

1 Like

Do you have things like properties, workspace, or the toolbar open in studio? It’ll change the size ingame if you have anything open.

3 Likes

No, it has been set in studio, in Roblox its showing it incorrectly but in testing it shows it correctly

Yes I do, but that should not affect it, the UI should scale accordingly to it’s available screen size, and if I make a different GUI it scales normally again

Change the “AnchorPoint” property to {0.5, 0.5}. This will center that object to the middle of the screen if the size (scale) is completely 1, 1.

I’ve tried that but the size of the ui is just straight up too small

That’s not how you use AnchorPoint. If the position is {0, 0, 0, 0}, the Gui will end up going further into the corner. AnchorPoint simply determines where the Gui is positioned around, not it’s overall placement on the screen.

2 Likes

I forgot to add “when the scale values are {1,0,1,0}”.

The scale values are {1, 0, 1, 0} in the OP. That still doesn’t change my post’s content. That’ll push the Gui into the corner. The position needs to be {0.5, 0, 0.5, 0} with the AnchorPoint at {0.5, 0.5} for a true “centered” position. Changing only the AnchorPoint makes the Gui centered relative to the AnchorPoint, not the overall screen.

3 Likes

Can you show a picture of your properties panel and hierarchy?