Puzzled3d
(Puzzled)
August 23, 2022, 8:58am
#1
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
1 Like
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 …
Puzzled3d
(Puzzled)
August 24, 2022, 7:58am
#4
Thanks! I used roblox’s formula to convert it into a point on a circle and it works.
Puzzled3d
(Puzzled)
August 24, 2022, 7:17pm
#5
i have decided to make this a seperate post