Getting the position of a billboardgui on screen

Is there a way to find the AbsolutePosition of a TextLabel in a BillboardGui, relative to the screen?
image

It appears that BillboardGui.TextLabel.AbsolutePosition gives the absolute position relative to the billboardgui (and not the player’s screen).

Thanks!

Untested, but you can probably do this by jumping through a couple of hoops.

Get the screen position of the part that the BillboardGui is attached to using WorldToScreenPoint. From there, you should be able to be clever and come up with a way to get the size and position of the BillboardGui. Then, do some more math to figure out the screen position of the TextLabel inside it.

8 Likes

Thank you! That worked :smiley:

1 Like