I am currently working on a tank, and I want the turret to point where my mouse is located. A BodyGyro won’t work in this scenario because it will mess with the rest of the tank physics. I was hoping to use a motor6D or HingeConstraint, however I cannot figure out how to calculate the angle. Does anyone know how this can be done?
I know, but because the turret of the tank is welded to a moving model, rotating the turret in this way would not work because the turret is welded to the main body. Doing this CFrame would break the weld and the gun would fall off
What’s the point of that code-block? It’s functionally identical to local calc = CFrame.new, but I don’t see why you need to make a function whose sole purpose is to call another function.