CFraming a part inside another part moves the part outside of the part

If I set a part’s cframe to an attachment that is inside a different part, it moves the part that was cframed outside of the part.

All I did is normal cframe.

    local cframe = attachment.WorldCFrame
    if render:IsA("Model") then
		render.Body.CFrame = cframe

	else
		render.CFrame = cframe
	end

I tried disabling CanCollide, CanQuery, and CanTouch

image
It should be held on the hand, but when I go inside a part it moves outside, its also anchored.

What do you want to achieve? Like weapon grip? Or? So we can understand more clearly about what you are doing in case that we may have more efficient methods for doing so.

1 Like

Every heartbeat cframes it to an attachment, making all the effects to the client, making the server spend les time rendering it. But yes, I do want a weapon grip

Have you tried using weldConstraint?