[SOLVED] Roblox unable to aim gun towards target when moving

My gun is bobbing up and down while moving causing the muzzle to aim towards the ground and shoot the ground instead of the target and it only hits the target when standing still. How do you fix this? Thank you.

When I’ve encountered this issue it was usually due to the roblox animations overlapping, try putting the priority as like action3 or action4

We can’t tell what you’re doing unless you show us the script.
Please copy/paste the code here with 3 backticks (```) before and after it so it formats properly in your post.

You can clearly see in this video that the gun only looks side to side and it doesn’t actually point towards the camera direction.

I don’t think there is anything wrong with the animation. Watch the video and you’ll notice it isn’t pointing towards the direction of the camera.

Yes, we can see when you’re in first person the gun is moving with the walking animation and if you turn left and right. This is standard behavior for Roblox movement.

We can’t tell how you are trying to aim the gun with the camera without the code though.

If you are trying to aim the gun to the mouse position there are plenty of posts about the same issue. Just search “aim gun to mouse”, “shoot at cursor” or similar terms.

1 Like

This video was the solution. I appreciate that you guided me in the right direction. This video shows you exactly how to do it. Thank you for the help. Have a great day!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.