How to find the tallest point of a player, or tallest hat?

  1. What do you want to achieve? Keep it simple and clear!
    I want to find the tallest point/hat of a player so I can parent a billboardgui to it.

  2. What is the issue? Include screenshots / videos if possible!
    Currrently my method is to parent the gui under the head, but if the player is wearing any hats the gui gets obfuscated.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have looked everywhere on the internet that I can, and this is my last resort (to post on the forums)

tl;dr how do I find the tallest point/hat of a player so I can parent something under it?

1 Like

You can use

local yHeight: number = player.Character:GetBoundingBox().Y
2 Likes

Thank you! I didn’t know that it’s possible to use the bounding box in scripting.