So there are welds connected to the middle part, but none of the welds are a child of the middle part. So how would I remove all four welds without having to individually iterate through all of the welds, then remove them?
I can’t think of any solutions right now, but any help is very appreciated!
Im confused…how are they connected to middle part without being an attachment?
Are the welds created using an instance? If so you can ClearAllChildren().
Edit: oh i see the children were moved elsewhere.
You can do this:
for number, object in pairs(workspace.YOURMODEL:GetDescendants()) do
if object:IsA("Weld") or object:IsA("WeldConstraint") or object:IsA("Motor6D") then
object:Destroy()
end
end