MoHit
Were you ever stuck in a situation where your have a lot of new furniture or place-ables items you want to add in your game but they all need to be welded together and require a Main part for scripting actions?
Have you ever gone through the tedious process of adding a Hitbox part for your models and welding them together in a way that TweenService and other operations don’t break it apart?
Introducing: MoHit
This simple new plugin will assist you in creating new movables and place-ables for your game in a few seconds!
How to use it
After installation, you’ll have three new buttons in your plugin taskbar.
I have this shelf model over here, which I want to create a Hitbox for so my script is able to turn it into an interactable model.
If I select this model and hit Create Hitbox a new Part will be created with the same dimensions as the shelf, it might be a little outside of position but by holding Alt and clicking on the part, you can move it around to a position where it covers the entire model.
Once you’re happy with the Hitbox placement, simply hit Finish Hitboxes while selecting the Model, this will make the Hitbox transparent, weld every single part to it and un-anchor everything but the Hitbox.
If you want to Destroy the Hitbox out of a model, just use “Delete Hitboxes” this will remove all Welds created by the Plugin and also the Core part itself.
Use cases
-
You can use this plugin to create place-able furniture that works relative to the model’s core, allowing players to decorate buildings.
-
You can allow this model to be dragged around by scripts without dismantling the model.
Notes
You do not need to set a PrimaryPart to your Model for the plugin to work, however the Plugin will prioritize creating a Hitbox following the PrimaryPart’s position, if there is any.
This plugin does not add in any sort of system or mechanic to interact with your finished models, it only allows said models to interact, given the circumstances, with systems made by yourself or a third party.
Upon using the Plugin, the new “Core” part that is created will override the previous PrimaryPart.
You’re not required to Credit the Plugin or myself if you use it for your game.