--[[ Deletes most parts except: - floor/ground/dustfloor - walls & doors - characters - shop/UI/interactions ]] for _, v in ipairs(workspace:GetDescendants()) do if v:IsA("BasePart") then -- if v:FindFirstAncestorOfClass("Model") and v:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid") then continue end local name = string.lower(v.Name) -- local isProtected = string.find(name, "floor") or string.find(name, "ground") or string.find(name, "terrain") or string.find(name, "baseplate") or string.find(name, "dustfloor") or string.find(name, "grggrall") or -- walls string.find(name, "grge") -- doors -- if v:FindFirstAncestor("Shop") or v:FindFirstAncestor("UI") or v:FindFirstAncestor("StarterGui") then continue end if v:FindFirstChildOfClass("ProximityPrompt") or v:FindFirstChildOfClass("ClickDetector") then continue end -- optional: keep large structural parts local looksLikeStructure = v.Anchored and v.Size.X > 20 and v.Size.Z > 20 and v.Size.Y > 5 -- if not isProtected and not looksLikeStructure then v:Destroy() end end end