How to weld a lot of parts to one part?
For example I have a car with body and interior and there are a lot of things in interior, so how do I weld everything to main body part?
1 Like
This is how people weld parts by script:
local Panel = workspace.Panel
-- Using Panel.PrimaryPart for convenience's sake
local Part1 = Panel.PrimaryPart
for _, Part0 in pairs(Panel:GetChildren()) do
if Part0:IsA("BasePart") and not (Part0 == Part1) then
local WeldConstraint = Instance.new("WeldConstraint")
WeldConstraint.Part0 = Part0
WeldConstraint.Part1 = Part1
WeldConstraint.Parent = WeldConstraint.Part0
Part0.Anchored = false
end
end
Part1.Anchored = true
Part1.CanCollide = false
but you most probably dont need to weld it ingame. I recommend using some plugins that will weld just by selecting the objects.
9 Likes
You could also use the command bar.
7 Likes