Attachment WorldPosition returns inaccurate position?

I’m trying to line up an attachment with another (both have different parents), but WorldPosition seems to be returning an inaccurate position, is there something I’m doing wrong? The intention is to have the hand grab the slide of the gun and keep its relative position.

The green orb is the attachment I’m trying to line up with the hand’s attachment.

Here’s the code that does it:
image

The new attachment is being parented to the slide of the gun.

1 Like

Figured it out, setting the WorldPosition after setting the parent fixed it. Seems to be a Roblox bug.

7 Likes

Sorry for necropost, but you pretty much have to set position after you set parent. I’d reccomend when making a new instance to just use the second paramter in Instance.new to set the parent.

Even two and half years later this bug is still present. Wish I could make bug reports.