I made a turret that I wanted to point straight up, so I used this code to have it do so:
game.Workspace.CBarrel.Aim.cframe = CFrame.Angles(math.rad(90),0,0)
when I rotate the turret 90 degrees clockwise so that instead of pointing north, it pointed east, it stopped pointing up, and started pointing straight ahead, a further 90 and it started pointing down, what can I do to have it pointing up, using BodyGyro, no matter what it's Y rotation is?
edit; here is a visualization of my problem: http://imgur.com/etTFhJB.png

1 comment
this should explain my problem better http://i.imgur.com/tQ9DIQa.png