Studio crashes when trying to delete lots of parts

So i basically cant develop this game right now because i have so many parts here and whenever i try to delete them roblox studio just crashes what can I do? I can hardly even select


it

How did you even end up with this many parts :pray: try running this command

local model = workspace:FindFirstChild(“YOURMODELNAME”)
for i, v in model:GetDescendants() do v:Destroy 

task.wait()

end

slowly removes the parts so it doesn’t crash (hopefully)

If they aren’t grouped, find the color or size of one of the parts and run this after putting that in

local color = Color3.FromRGB(255, 255, 255)
for i, v in workspace:GetDescendants() do 

if v:IsA(“BasePart”) and v.Color = color then

v:Destroy 

task.wait()

end

end

1 Like

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