I have been trying to create a script that places models next to each other. But the problem I’m experiencing is that the model doesn’t get set in the right place.
I currently do this
Object2:SetPrimaryPartCFrame(Object1:GetPrimaryPartCFrame() + Object1:GetExtentsSize())
It only works for models with the same size
This model gets positioned like I want it to be
This model gets a weird offset that I don’t want
I know that something like :GetModelCFrame exists but it’s deprecated and I don’t know how long I can still use it.
Perhaps a cleaner solution here would be to put an Attachment into these models at the points where they should connect. Then you can read out the position of these attachments to figure out how to put your train together (i.e. it would be a matter of making sure the attachments overlap).