BodyGyro.CFrame = CFrame.new(Vector3.new(0, 0.5, 0), MousePosition)*CFrame.Angles(0,math.rad(math.pi/2),0)
A person recommended that I multiply it by CFrame.Angles, but this didn't really seem to help at all.
I've tried changing the axis to x, y, and z, but they all seem to do nothing when I'm trying to keep the model Rotated by 90 degrees to keep it upright. Am I doing something wrong?
For context, I'm trying to have a turret that always points towards the mouse's hit position. Aiming towards the mouse's position seems to work perfectly, but the model seems to still be sideways at all times instead of upright.
Found out finally what was wrong after trying to get an answer in the SH Discord since Tuesday. It looks like I misinterpreted what the user named calidad was telling me previously.
multiply that by CFrame.Angles(x, y, z) they should be in radians
so u can do math.pi/2 since
pi rad = 180 deg
and stuff
Looks like I thought he meant to do math.pi/2 converted into radians, so I was doing math.rad(math.pi/2) when he meant literally just doing math.pi/2 since that's how radians work. It took a bit of reading into multiplying cframes with no answers, then looking into .angles, then looking into radians. The wording is a bit confusing at first, but now I get what it means. math.rad just converts degrees like 90 into math.pi/2 rather than what I previously thought was some weird special type of value called a radian that normal numbers needed converted into.