A GUI That Displays Another Player's Relative Direction?

What I would like to achieve:
I would like to make a Frame/ImageLabel that rotates around the user’s screen (as necessary) to display every other player’s relative location.

For example:

*If the user is looking forward, and another player is to their left, an ImageLabel representing that other player should be to the left of the user’s screen like in this horrible drawing:

*If the user is looking forward, and another player is in front of them, an ImageLabel representing that other player should be to the top of the user’s screen like in these horrible drawings:
image
image

*If the user is looking forward, and another player is behind of them, an Image Label representing that other player should be to the bottom of the user’s screen like in these horrible drawings:
image
image

etc.

The Issue:
I don’t know how to go about this.

I know how to get another player’s profile picture to be represented in an ImageLabel and I know how to get the distance from one player to the next. However, I don’t know how to get their relative location from a given user (or rather, a given user’s looking direction). Maybe if I did, this would be easier to understand.

Things I’ve Tried:
I have thought about maybe using the X and Z axis of another player’s character’s position and maybe converting that into a coordinate of X and Y for the position of an ImageLabel on another user’s screen, but I don’t know where to go from there.

Any suggestions? (Thank you for your time in advance)

This should be a solution, let me know if I am wrong.

1 Like

Thank you so much! A bit of tweaking but it worked!

1 Like