I’m currently trying to create some WeldConstraints to create a model and keep all of its parts the same in terms of relativity. The problem is that the WeldConstraints’ Active property is set to false.
-- Variable 'v' is a model
for i2,v2 in pairs(v:GetDescendants()) do
if v2:IsA('BasePart') and v2 ~= boundingBox then
local weldConstraint = Instance.new('WeldConstraint')
weldConstraint.Parent = boundingBox
weldConstraint.Part0 = boundingBox
weldConstraint.Part1 = v2
end
end
According to the Roblox Developer Hub, the Active property of the WeldConstraint will be disabled under the following circumstances:
If the WeldConstraint or one of its parts is not in Workspace the weld will be inactive.
If the “boundingBox” that is being referred to is inside of Workspace, the behavior that you’re observing may be a result of other factors.
As I do not have much experience with WeldConstraints, here’s another post on the Developer Forum with an explanation to a similar question that’ll provide more value on this subject than I am able to: