Can I keep too many welds?

I want to make a ship game where you make ships and sail, but when you sail it, its getting broken into pieces, so I would like to weld the ship, but does it lag alot if I keep 1 weld in each part, a ship has 1500 parts or 500 parts, so will it lag if i use 500 welds

And how do i weld all the objects in a folder/model

As far as i know, welds dont affect performance that much. As for the welding so many objects, your best bet is to do it with a script.

local partsToWeld = ship:GetChildren()
for i = 1, #partsToWeld do
      local weld = Instance.new("WeldConstraint")
      weld.Parent = partsToWeld[i]
      weld.Part1 = weld.Parent
      weld.Part2 = ship.MainPart
end

Run the game with this script somewhere, and when the script is done, without stopping the game, copy your ship model, then stop the game and paste it into workspace.

There may be typos in this script, and you will obviously need to change a few references, this is just to give you an idea of how to do it fast

1 Like

uhhh
image