Trying to convert SpecialMesh to MeshPart

I’m trying to make a script that automatically turns all accessories into a meshpart. The meshid, meshtexture and everything is working correctly, but I cannot seem to calculate the correct scale. Any help would be apperciated!