I am currently trying to make a survival game and have run into a seemingly impossible issue. I currently have hundreds of parts creating buildings that I have manually welded together. The problem is when I regenerate the map all the welds break and the game is unplayable. I want to know if there is a way to simply change the surface input of all of the surfaces on all of the bricks to welded. Can you use a for loop to call on all of the bricks and simply change the surface inputs? on the sides?
Yes, but have you called :MakeJoints()
on your regenerated map? That usually fixes such problems.
Roblox added a function GetDescendants to make what you ask for very simple:
for _, obj in pairs(workspace:GetDescendants) do -- or replace 'workspace' with model/map/whatever if obj:IsA("BasePart") then -- can add other conditions too if desired -- can do whatever you like to 'obj' end end
click and drag while holding click to bax a box around the parts you want to mass select then let go and it will select all the parts in that box
ok thanks, I have played with this off and on and perfected it at this point. Thank you for your answers!