Weld loads of parts to vehicleSeat

Hi! In my BoatKit, ive got LOADS of parts that I want to weld to my vehicle seat, but I dont want to make a weld in each part and manually weld it to the VehicleSeat. Is there any way to use a script to do this all at once? to set the weld’s Part0 to the part and the Part1 to the VehicleSeat

You can make a quick little one time use plguin for it if you want to. They are relatively easy to set up.

select the model with the parts, and in the console type

seat = <path to seat>  
for _,i in pairs(<selected model>:GetDescendants()) do 
  if i:IsA("BasePart") and i~= seat then
    local weld = Instance.new(<weld or weld constraint>)
    --if a weld not a weld constraint, you need to also set C0 and C1
    weld.Part1 = i
    weld.Part0 = seat
    weld.Parent = i
  end 
end

Something like this. There is an api for the selected item

hope this is enough that you can get it going

There’s a simple way, but it can create more welds than you need.

Select all the Parts you want welded, then in the Model > Constraints > Create dropdown choose Weld and it’ll weld all the parts. It won’t be to the VehicleSeat, but it’ll weld each item and may double or triple up welds on some of the Parts.