How to fix textlabel shifting

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want it to be not resizing and look good when the text constantly changes.

  2. What is the issue? Include screenshots / videos if possible!

  3. What solutions have you tried so far? Did you look for solutions on the Creator Hub?
    I tried looking anywhere and using textsizeconstraint but it dosen’t really work it dosen’t scale the textlabel well on all devices.

1 Like

Did you set Text.Scaled to true?

TextScaled = False
TextSize = Whatever Value You Like
Doing them should reduce or stop the effect.

Yep, that’s what I was about to say. That should fix the problem. :slight_smile:

Haha then how do you make it scaled on all devices genius.

Maybe this could help you with the text sizes

You can base TextSize off of the AbsoluteSize of the TextLabel, something like

label.TextSize = label.AbsoluteSize.X / 4

So i would put this in a textlabelGetProprety(“Text”) changed ?

You would run it when the localscript first runs, and then you would run it when AbsoluteSize changes

label.TextSize = label.AbsoluteSize.X / 4
label:GetPropertyChangedSignal("AbsoluteSize"):Connect(function()
    label.TextSize = label.AbsoluteSize.X / 4
end)

Or you can use a RunService event or put it in a while loop with an empty task.wait()

the text of the textlabel changes so i would run it everytime the text change no ?

No, the point of doing this is that the text size stays the same for different texts.

i’l ltry that later and update you but i’m pretty sure it won’t work.

that fix one part of the problem i guess but the ui position keep changing too.

Not completely sure what you mean, but maybe set TextXAlignment to Left

yes Ik that but then the text is cooked like it isnt getting centered in the frame

Can you send a video of the issue?

I don’t know if you solved the problem yet, but I just remembered, there’s a property called MaxVisibleGraphemes which might be what you’re looking for. The text is always Waiting for more players to start... with three dots, and when you change MaxVisibleGraphemes, the amount of dots changes. For your case, if I counted correctly, 34 would be 1 dot, 35 would be 2 dots, and 36 would be 3 dots.