How can I make these two TextBoxes have the same sized text?

Hello everybody!
I’m currently working on a booth system (similar to GRP) for somebody and I need these two TextBoxes…


…to have the same size. As you can see on the image, they’re the same size. This only applies to a 1920x1080px screen though. Watch what happens when I change the screen resolution:
image – 1366x768px. The lower text is bigger, but not by much.

image – 768x375px (iPhone X). Oh.

These examples all have TextScaled set to true. If I disable TextScaled a similar thing happens. From what I’ve read, I’m not sure AutomaticSize will work either.

How can I get the TextBoxes to have the same size text? Thanks!

This could add up some codes but, I think adding some scripts could be the solution. For example, the computer’s label’s text’s big but, IOS’s or android’s label’s a bit smaller.
Scripting these codes could be a great idea.

My explaining was a little messy :sweat_smile: (Sorry about that)
Hope this helps!

Thanks for your reply. With a script, do you know how I could get the size of some text with TextScaled set to true? That would help.

I think the thing is that you have enabled “TextScaled” on the description text and not on the upper one.

If not you can ‘force’ the description to change to the imageid’s text size:

local gui = game.Players.LocalPlayer.PlayerGui.BoothGui

local imageId = gui.ImageText.TextSize

local desc = gui.Description.TextSize

desc = imageId

Not sure if this is what you want.

Both of the TextBoxes have TextScaled enabled. I’ve tried to get the size from the upper one, however since it’s scaled, the TextSize won’t be the actual size of the text.

Solved using this tutorial: Lua Learning