CFrame:ToWorldSpace() not working?

So i have this simple code:

local rotateCFrame2 = CFrame.Angles(0, RotateIncrement, 0)
RotateCFrame = GrabbingGyro.CFrame:ToWorldSpace(rotateCFrame2)
GrabbingGyro.CFrame = RotateCFrame

which is suppose to rotate a gyro relative to the world space. But for some reason, its not doing that.
Iv’e tried many different techniques and none seem to be working.
Anyone know why?

1 Like

CFrameA:ToWorldSpace(CFrameB) is the equivalent of CFrameACFrameB, so it wouldn’t work as you would expect (the CFrame would rotate about the UpVector of CFrameA). To fix this, you should just do CFrameBCFrameA, which applies the rotation first, then multiplies the gyro’s CFrame onto it.

1 Like

That has seemed to have damn worked!
Thanks!