Part sizing/scaling issue

I’m resizing a part through scripts, and I get this issue. The green dots are the attachments.
This is the original part.


When I resize with the resize tool.

When I resize it with scripts.

The attachments stay in the same place, instead of moving relative to the parts size. How can I fix this?

try adding a weld between attachment and the block

Uhhh, you can’t add welds between attachments. I am also thinking of a way to do this via scripts, because i’m pretty sure its the only way, do you have an idea?

never mind I got it to work

awewaeaweawe

edit: nevermind it doesnt work pls help i need help

hmm… let me try something my studio and let you know shortly

So have you tried something yet?

Did try and didn’t get any solutions :frowning: