Part and Attachment CFRAME Y axis going up and down randomly

I wanted to script a gun that shoots, because that’s what a gun is supposed to do, shoot bullets. However, I’ve made an attachment in the handle and whenever I print his Y axis, it randomly changes, it never stays the same, so I tried to make a part and weld it and try doing the same, but the Y axis still changes randomly, but when I just keep shooting, the Y position is correct as shown in the GIF.

1 Like

Hmm, maybe the script is altering the property of the attachment, it should stay welded to your hand.
Make sure that when your tweening the gun model, your tweening the CFrame and not the Position.