Text and image auto positioning?

how would i automatically scale the X position of my text and image? i can’t really explain it properly but i want it so that the spacing is automatically positioned evenly like in the first picture.
Screenshot 2025-06-16 181550
i’ve tried the automaticsize property and even tried using uigridlayout for some reason and none of these methods really worked for me. was wondering if anyone could help me with this
Screenshot 2025-06-16 181807

what does your structure look like ?
it work fine for me by just doing it like that


image
or even like that
image
as long as the scale and position are in scale and you are using textscale

Set the TextXAlignment to ‘left’ and resize the text so that its left border is just next to the right border of your image.

1 Like

it looks exactly like that, but thats not exactly what i’m tryna go for. i’m trying to make it so that its in the center. and when the textlabel’s text changes to a player’s name, the image will also reposition beside the text if you know what i mean…

something like this: sorry for being unclear and vague :sob:

not sure if that’'s exactly what i’m trying to going for :pensive:

You need to use a UIListLayout in this case.

  1. Put the image and text under a frame with BackgroundTransparency to 1.
  2. Add an UIListLayout into the frame with these properties:
  3. Set the following Text properties: AutomaticSize to X, Size.X to 0 and keep the Size.Y to the desired size.
1 Like

worked like an absolute charm man thanks :grin:

2 Likes

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