Hi DevForum
I have created a Roblox Studio plugin to help builders keep their constructions to a grid, preventing overlaps and tiny gaps. It can be used to round off the position, orientation and size of any part or mesh.
Update: Version 1.2 released. Changed position setting mode from CFrame to position. Will now work properly on welded parts.
Presenting: “The All Rounder”
https://web.roblox.com/library/7199946756/The-All-Rounder
How to use the plugin
Install the plugin as normal from the Roblox website.
Click on the “The All Rounder” icon in the plugin tool bar to open the plugin interface.
The plugin is divided into three sections, each one controlling the rounding of Position, Size and Orientation, as labelled in the interface.
Select parts or meshes in your workspace. The plugin will affect all of what you have selected and all descendant parts, including the individual parts inside models.
Press any of the smaller shortcut buttons to round off the selected part’s Position, Size or Orientation to the value listed on the button. If you want to round off to a custom value, then enter the value in the “Custom Value” field and then hit the big button to the right of the Custom Value Field.
NEW The axis tick boxes on the right of each section will limit the rounding to only the axis’s ticked on.
Notes on Use
When rounding, the plugin will obey the standard rounding rule of 0.5 rounding to 1 and anything less than 0.5 rounding to 0.
As Roblox does not allow size values of 0, the Size rounding function will not try and round a part to zero, instead it will set its scale to the rounding value. i.e. 0.4 rounded with a rounding value of 1 will return a 1, not a zero.
Position and orientation rounding will correctly return negative values and zero.
Demonstration Video
This is my first plugin release, so I hope it all works for you. Please post any bugs here and I will try and fix them.
Thanks to Pop_Panda94 for some help with the selection and rounding scripting.
Release Notes
Version 1.2 – 04/02/2022 – Changed position setting mode from CFrame to position. Will now work properly on welded parts.
Version 1.1 – 15/04/2021 – Added axis constraints and GUI code simplified.
Version 1.0 – 08/04/2021 – Initial release.
Possible upcoming features
-Customizing each of the shortcut button values
-Toggling between part mode and model mode, to respect a model’s pivot point.