I ask this question because currently my script has a part that points at you and what im trying to do is to avoid using Cframe and instead opt for the Hingeconstraints target angle for aiming. How do i calculate the angle needed to look at something? Horizontally.

2 comments

0

Sorry, but I didn't understand anything

0

I have a turret that so far can only rotate left to right using cframe. Now i dont want it to use cframe to turn like that but it seems CFrame is the only way to get something to look at it. Now i want to use CFrame to obtain a targetAngle for my hinge constraint