Batch mesh to part in workspace?

Hey all,
I’ve got a bunch of windows on some already assembled buildings of mine that I want to convert from mesh to part for other reasons.
To be as efficient as possible, is there some way I could, after selecting them all, batch create a part with the same parent, size, name, rotation, and coordinates of them?

local Location  = workspace.Something

for _, Part in Location:GetDescendants() do
	if Part:IsA("MeshPart") then
		local Clone = Instance.new("Part")
		Clone.Size = Part.Size
		Clone.Name = Part.Name
		Clone.CFrame = Part.CFrame
		Clone.Parent = Part.Parent
	end
end
1 Like

Worked, and I can parent them out of the directory to delete the old ones.
Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.