Bullet Spawn's Rotation Changes When Gun's Rotation Changed

When turret/gun is turning , bulletSpawn’s rotation is turning too.
So i cannot spawn bullets in proper direction.
Here is some screen shots.
Normal Rotation : Imgur: The magic of the Internet
When i rotate the turret : http://imgur.com/a/zBQyR
Please help me im getting cancer…

Without seeing your code I cant be much of help. But here is an example of how you can have the bullet rotate in the same direction as the turret.

BULLET.transform.rotation = Quaternion.Euler(0, TURRET.transform.eulerAngles.y),      0);

This is just an example. I assumed the bullet has false rotation on the y axis. You would have to use the correct axis for the rotation.

You can add this script to right before the bullet is spawned (Don’t call this on every frame as the rotation of the bullet will keep changing when the turret rotates even after being spawned.