Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to set textbox position based on text in another?

Hello, I have been making a Chat Gui, and I've got most of it set up. But I have added a new textbox for each line to show the player name in color. How would I make the actual message box beside the player name set its X position based on where the text ends in the username box? Thanks in advance.

5 comments

0

So you're wondering when to start the message depending on the username's length?

0

Gui.TextBounds will return a Vector2 which contains the text size.

0

@PreciseLogic, so far it looks like this http://prntscr.com/bhufaj(The message part is that same distance no matter the name) But I would like it to look like this: http://prntscr.com/bhufs9.

0

theCJarmy7, I saw that but I'm not sure how to use it to set the position accordingly

0

Bump :/

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.