I’m trying to clone a model and tween it. I welded all the parts in the model using easy weld.
What the model should look like.

However, when I transfer it into the workspace, 1 of the parts falls away from the rest of the model, despite being welded to the other parts.
Disjointed model
Why does the primary part end up falling away from the rest of the model?
Script if it helps
item = itemTemplate:Clone()
item:SetPrimaryPartCFrame(script.Parent.Spawner.CFrame)
item.Parent = workspace.Items
Could we see your weld script? It may be an issue with how the model is being welded.
Here’s how I would’ve written a weld function, maybe this could help.
local function weldModel(model)
for _, part in ipairs(model:GetDescendants()) do
if part:IsA("BasePart") and part ~= model.PrimaryPart then
local weld = Instance.new("WeldConstraint")
weld.Part0 = part
weld.Part1 = model.PrimaryPart
weld.Parent = model.PrimaryPart
part.Anchored = false
end
end
return model
end
local item = weldModel(itemTemplate:Clone())
item:SetPrimaryPartCFrame(script.Parent.Spawner.CFrame)
item.Parent = workspace.Items
I used easy weld from the moon animator plugin to weld the model. Is there anything wrong with it?
I’ve never personally used the moon animator weld before. Is this item meant to be animated?
Nope, it’s just a physics object. Easy weld just creates weld between the parts.
I see. I’ve never personally experimented with Easy welds.
Does the above weld function seem to do the trick, or are you still encountering error?
Also, the model doesn’t fall apart if it just starts in the workspace.
If that’s the case then I’d assume you’re doing some sort of operation that messes with the welds. I’ve had issues with setting CFrames before parenting, so try setting the parent of the item first before setting the primary part CFrame.
I tried setting the parent prior to the primary part cframe, but it still falls apart. Also, I didn’t ever mess with the welds.