local g local p=script.Parent:GetChildren()for J=1,#p,1 do if p[J].className=="\080\097\114\116"or p[J].className=="\087\101\100\103\101\080\097\114\116"or p[J].className=="\083\101\097\116"or p[J].className=="\086\101\104\105\099\108\101\083\101\097\116"or p[J].className=="\067\111\114\110\101\114\087\101\100\103\101\080\097\114\116"or p[J].className=="\087\101\100\103\101\080\097\114\116"or p[J].className=="\085\110\105\111\110\079\112\101\114\097\116\105\111\110"then if g~=nil then local I=Instance.new("\087\101\108\100")I.Part0=g I.Part1=p[J]I.C0=g.CFrame:inverse()I.C1=p[J].CFrame:inverse()I.Parent=g end g=p[J]end end
--Simply put it inside any model with bricks inside

local prev
local parts = script.Parent:GetChildren()

for i = 1, #parts do
	if
		(parts[i].className == "Part")
		or (parts[i].className == "WedgePart")
		or (parts[i].className == "Seat")
		or (parts[i].className == "VehicleSeat")
		or (parts[i].className == "CornerWedgePart")
		or (parts[i].className == "WedgePart")
		or (parts[i].className == "UnionOperation")
	then
		if prev ~= nil then
			local weld = Instance.new("Weld")
			weld.Part0 = prev
			weld.Part1 = parts[i]
			weld.C0 = prev.CFrame:inverse()
			weld.C1 = parts[i].CFrame:inverse()
			weld.Parent = prev
		end
		prev = parts[i]
	end
end
