Cannot shoot gun error

Hello there, I implemented aiming down sights on my gun not too long ago, and ever since I shoot when aiming, the bullet doesn’t move at all or spawn. I’m guessing that since I made a viewmodel in the client, it is somehow interfering with the ray being casted from the gun in the server to the mouse position and not firing at all. Here are a few examples of this;

I can share code when needed. Thanks for the help in advance.

1 Like

I’m guessing you’re using mouse.Hit

Your mouse is hitting the sight of your weapon. Place the model of the gun into Mouse.TargetFilter and it should solve the issue.