I am trying to make a GUI that takes the direction from a Player to a point, in this case an enemy, and turns it into a position on a radial GUI. This also would include rotating the indicator to face where it would be in world space.
The best example of what I am talking about is the detection system in Entry Point by Cishshato
i think this should be helpful
The first thing you want to do is to work out which direction the player’s character is facing:
local Facing = Character.HumanoidRootPart.CFrame.LookVector
Then you want to get the direction from your character to the object:
local Vector = (Object.Position - Character.HumanoidRootPart.Position).unit
Then you can get the angle between those two vectors using the equation:
Light theme users [image]
Dark theme users [image]
What this means is that the cosine of the angle between vectors u …
Thanks! I used roblox’s formula to convert it into a point on a circle and it works.
i have decided to make this a seperate post