Setting a position / CFrame is not accurate for me?

Ok so here is what I am doing.
I am currently rigging a rifle model by connecting all the parts with motor6ds. As you may know when you connect parts with motor6ds it messes up the position / cframe so I have a second rifle model in the workspace like so

The broken apart one has been rigged with motor6ds
To fix the positions I decided to run this code in the command bar:
for i,v in pairs(game.Workspace.AR15:GetChildren()) do v.CFrame = game.Workspace.AR152[v.Name].CFrame end
I’ve even tried switching cframe for position but this happens.

as you can see the magazine isn’t in the correct cframe still. Why is this and how can I fix it? If you need me to elaborate more please let me know.

You can just do :PivotTo(cframe) to the gun model itself. Setting all the children to the same cframe will not work.

1 Like

That only sets the primary parts cframe and keeps the other parts relative to it. It doesn’t set all the childrens cframes

Yeah, that’s the point. Why would you be setting parts of the same model into the exact same position?

might fix this… err more avoid the problem alltogether

use moon animator plugin, they got a weld plugin built in for tools (motor6d) and it dont mess up welds