Model to part plugin

Model to part

Source code
Plugin


What is it?
It is a plugin that creates a part which has the size of the selected model(s) boundaries and positions it at the centre of the model’s mass. The part is then parented to the model. Properties of part can be changed in the “Part settings” option.

Example


Part properties

The properties of the part created can be changed in a widget which shows up when you press the Part settings button.

Part type
This changes the part to any of the supported types:

  1. Block
  2. Wedge
  3. WedgePart
  4. Ball
  5. MeshPart
  6. Cylinder
  7. SpawnLocation

Fit ball
This option makes balls fit into the model using the smallest axis.

When fit ball is turned off

When fit ball is turned on

Set increment
This will increase the size of the part. If your model is the size of 10,9,2 and the increment is set to 1,1,1 the part created will become 11,10,3.

Video example comparing normal size to incremented

Set decrease
This performs the opposite of increment and will decrease the size of the created part.

Video example comparing normal size to decreased

Set material and name
This will set the created part to either the name or material typed in. If the material name is incorrect then it will become plastic.

List of material names
image


Patch Notes

Version 1.1

Added new features:

  • Set part type
  • Fit ball added
  • Set increment
  • Set decrease
  • Set material
  • Set name
  • Reset default settings
  • Ui update
  • Help and printed supported type options added

Hope this plugin is of use :grinning:

10 Likes

You can use Model:GetBoundingBox() which returns the center of the model as a CFrame and the size of the box as a Vector3.

6 Likes

Thank you so much, I’ll add it to the plugin now

1 Like

I changed it now, thank you so much :grinning:

Mhmm, No problem! :slight_smile:

1 Like

This is cool, do you plan on doing anymore with the plugin or?

1 Like

I don’t have any ideas so far but I’m open to any improvements or new ideas. I am also currently working on a plugin that edits the properties of a selected instance’s descendants.

Honestly more plugins would help the dev community out a lot. I know a lot of people wish that there were just more plugins in general to make the dev experience a lot easier and convenient. Keep up the dope work though.

1 Like

Thanks, I’ll try add as many plugins as I can to help out the community :grinning:

This seems super useful cant wait to use it!!

1 Like

before i downllad the plugin, does it give us the option to choose the part type, ball, sphere, wedge, meshpart, etc. If no can you add it?

1 Like

Sure I’ll add it now. I’ll add it as a separate menu to toggle this.

cool, this willl be helpful say when your doing ugc, or want to replace a model with a mesh instead. or you just want a ball instead of that model, but keep the size, endless options.

1 Like

Sorry for the wait, I just released a new version of the plugin adding support for the following parts:

  1. Block
  2. Wedge
  3. WedgePart
  4. Ball
  5. MeshPart
  6. Cylinder
  7. SpawnLocation

It was my frist expirience with docked guis so the gui doesn’t currently look amazing as of right now I’m solely focusing on the code. I have updated the source code and I shoud mention that I added a feature where you can choose to fit balls so that either they are sized inside of the model or are allowed to poke out. I plan to add more features to the plugin tomorrow but thanks a lot for the feedback so far. :grinning:

1 Like

Am I dreaming?! Am I in heaven?! I think I am!

Honestly though, this is an AMAZING plugin that I’ll be using all the time. Thank you for creating this!

1 Like

Thanks so much I’m glad to hear my plug-in was helpful

1 Like

I just released a fairly big update adding features to change the part’s properties. Pastebin has also been updated. More info can be found in original post.

List of new features

  • Set part type
  • Fit ball added
  • Set increment
  • Set decrease
  • Set material
  • Set name
  • Reset default settings
  • Ui update
  • Help and printed supported type options added

Hope this makes your work more efficient :smiley:

1 Like