I want to create a UI indicator that activates when the player is within a range of a part for example.
When the player is looking at the part, the indicator acts like a billboard GUI.
When the player is looking away from the part, but still within range, the GUI moves to the corner of the screen towards the part’s position.
I think you’re gonna need some complex math (that i’m too dumb to figure out) but you will have to check wheter the player can or can’t see the GUI and if they can’t you have to place the GUI in whatever side of the screen, this also probably something you want to update every frame so probably everything inside of a function on a while loop or RunService event
Add a “Billboard Gui” to the Object You Want. Select Billboard Gui and turn on “AlwaysOnTop” feature from “Properties”. Then, write the distance you want as a number in the “MaxDistance” section to determine how close the player will be to the part you want to see the UI element you want. Add the Frame/Image you will design or any UI Element you want. It’s that simple.
Alright out of a lot of brainstorming on how to make it I finally used google and: Location Marker System
I tested it and it works. Now its up to you to change it to your likings.