Okay so i have a issue where im trying to find the opposite angle of a part so say a parts orientation is (0,25,0) how would i find the opposite angle and its not -25. Like a complete 180 turn. and math.rad(180) didnt work but i might have used it wrong. here is the line of code im struggling with.

P_HRP.Orientation = V3(E_ORI_X,math.rad(180),E_ORI_Z)

and V3 is just shorter for vector3 and the HRP and ORI is just for the parts and their orientations.

3 comments

0

i could just be stupid and the answer is obvious but i cant see an answer

0

math.rad(180) would just convert it into radians, which would work for Cframe.Angles, but for Orientation, it is unnecessary, as it works for degrees

0

Do you only want to rotate about the y-axis?