Hello! Currently, I’ve been building a Tank Barrack for my group. Then I found myself an issue. That these parts weren’t aligned. I tried moving it and resizing it, but it wouldn’t align the parts. If any of you have plugins, tools or any sort of help, please tell me.
I’m assuming that what you’re saying is that you don’t want gaps between those parts? If so, here is a really neat plugin
It works, thank you very much.
No problem, glad I could help
You can also use dummy parts and a little bit of code to do it.
robloxapp-20200727-1228429_Trim.wmv (9.2 MB)
I avoid installing plugins as a general rule, and I’d rather not add extra geometry to fill gaps if necessary, so I’ll tend to do things like this example video. Basically, I created a model out of the wall part that includes an attachment part and a pivot part. The attachment part is used for the PrimaryPart of the model. Use snap to make sure the pivot and attachment parts are correctly placed for your model. Then:
- copy the model
- move/rotate the pivot on the section you are attaching to
- select the section to move and then alt+shift+sel the pivot on the section not moving
- run the script from the command line (paste and hit enter)
-- model is the first thing you select, pivot is the second.
-- Last line aligns the primary part of your model to the pivot you selected
local model = game.Selection:Get()[1];
local pivot = game.Selection:Get()[2];
model:SetPrimaryPartCFrame(pivot.CFrame)
Can ungroup the model and delete parts you don’t need after.
I like this for my own stuff because I can automate the build. For example, I might select the model and have the script clone it and move to the attachment (if the attachment angle doesn’t’ change, like for an octagonal pen or a curving hallway made of similar sections). I could also put a bunch of angles in a table and have it build the shape from that. I’ll also use variations on this idea to make small tweaks to parts that have already been placed.
Anyway, just another approach to think about for those in a similar situation.
Could you not simply mirror the other side of your barracks so that the measurements are exactly the same on both sides? That is, if you want both sides to be identical.
I tried, but for some reason it didn’t work. Probably because I can’t make things perfectly aligned.