If I remove the meshes, it will take time to take them all, and I already have different meshes that I can’t erase so the process will be slower. Also, If I remove the meshes this happens:
Now If I do that for many of them, it will not fix it well, and if I change the sizes for each of them will take time just like I said, so I want an easy, and fast way that I can fix this problem to all of my wedges in this hill.
I don’t have a way to change it to meshparts, but you can try putting this code into the command bar to nab all parts that are wedges with meshes inside, so you can sort through and redo them yourself:
local wedgeContainer = Instance.new("Model", workspace)
for _, obj in pairs(workspace:GetDescendants()) do
if obj:IsA("Wedge") and obj:FindFirstChildOfClass("Mesh") then
obj.Parent = wedgeContainer
end
end
So you ran the code in the command bar right? Now there should be a folder in workspace just called model with a bunch of wedges in it with meshes. Just sort through that
Wait a minute, so are those special meshes?
My bad. Code should be this:
local wedgeContainer = Instance.new("Model", workspace)
for _, obj in pairs(workspace:GetDescendants()) do
if obj:IsA("WedgePart") and obj:FindFirstChildOfClass("SpecialMesh") then
obj.Parent = wedgeContainer
end
end
local wedgeContainer = Instance.new("Model", workspace)
wedgeContainer.Name = "WedgeContainer"
for _, obj in pairs(workspace:GetDescendants()) do
if obj:IsA("WedgePart") and obj:FindFirstChildOfClass("SpecialMesh") then
obj.Parent = wedgeContainer
end
end