This script can be used to extract data from the parts used to construct models that are added to the Roblox worlds through the toolbox menu(s).
Add a Script to the Model
When a model is added to your world through the toolbox menu, you can view the model and its parts by using the Explorer panel and accessing the Workspace item at the top of the list. Click on the triangle next to the model you added. Then click on the 'plus' sign to add a "script" to the model. Copy and paste the code below into the newly created script. Then run your world. This script will create text in the output panel. You can copy the text generated into other worlds where you have loaded the module scripts to create and manipulate basic shapes.
Extracting Data from Parts
Add this script to any model to extract data from the model's parts.