Having an issue when rotating tank turret, Mg won't offset turrets rotation. Mg wont aim where camera is pointing


Basically when i rotate the turret 90 degrees the mg rotates 90 degrees and wont face where the cam is looking. i want both turret and mg to aim with camera, any sugestions on how to fix this?

I’m going to be honest, the text in that screenshot is very small.
But my guess is that you have the mg connected to the cannon, and when you turn the cannon, the mg will rotate with the cannon.
If you rotate the mg another 90 degrees, it has moved too far and is no longer lined up.
Try to remove the mg rotation code to see if it still happens.