Textlabel text is very stretched, but this only occurs when it is generated by a script

Here’s my code:

When it is run here’s the result

Why is it so stretched? I’ve never seen such a thing occur when making textlabels by hand. And is there a fix?

Things I’ve tried:

  • Adding a UIAspectRatioConstraint
  • Resizing the textlabel
  • Removing the UIAspectRatioConstraint
  • Enabling richtext
  • Disabling richtext
  • Enabling textscaled
  • Disabling textscaled
1 Like

I can’t remember what property it is and I don’t have access to my laptop right now but it’ll be one of the surface GUI properties not text label properties. Make the text label size and position both 0,0,0,0 and mess with the surface gui properties

1 Like


Any of these?

1 Like

Send me a picture of it scrolled to the bottom

1 Like

OH MY GOD I FIGURED IT OUT BRUH

Basically when SurfaceGuis are created by a script, SizingMode is FixedSize
image

But when I make them by hand (I’m mainly a builder), they’re always PixelsPerStud by default

Thanks mate

2 Likes

Yup, that’ll be the property I was thinking of.

Glad you’ve figured it out!

It’s the same with spawning parts… when you spawn a part in a script the surface is nothing but when you spawn it in a script then it spawns as the base part kind of style.

2 Likes

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