How to change the property of all the welds of a model

image
I want to change the enabled property of all the welds of this model at once. And I don’t know how.

Try this:

for i, instance in pairs(model:GetDescendants()) do
    if instance:IsA("Weld") then
        instance.Enabled = true/false
    end
end
1 Like