So basically i wanna have it to where when the mouse is to the left the gun is to the left, and when its to the right the gun is to the right. So i set it up using angles but theres this one sweet spot with the mouse where it does this.
Develop games in your browser. Powerful, performant & highly capable.
Looks like your code doesn't know which gun to pin and flip from your condition, so it does both.
I wasn't able to get a version of your code to work, but I'm guessing you want something like this.