I'm trying to have a turret rotate towards a target using it position, but I'm not sure how to convert that into a radian angle for the motor.
local radX, radY, radZ = cf:ToOrientation() script.Parent.Turret.Main.Motor.DesiredAngle = radY
The script currently over turns, any help is appreciated.
Hello. Fortunately, it is very easy. Just use math.rad(number degree)
. It converts a degree into a radiant. Please upvote and accept this answer if it helped.