I have 2 separate BillboardUI
s. One of them has the username
text, and the other one for an emoji
. However, I can’t seem to correctly calculate the position for the emoji
, which is supposed to be after the username
text is aligned at the center. How could I adjust this?
The Bounds
is ScreenGui - Frame - TextLabel
, to get the TextBounds accurately.
Emoji.Position = UDim2.fromScale(.5 + Bounds.TextBounds.X / 1000 - .08, 0)
--.5 to match the username text aligned to center?
--.08 to make it more perfectly, but just for my name.
Example of what I need (DOQEE)
Example of miscalculation (PLR_DOQEE)