I am running a command to iterate through parts and resize them to make a wall taller by code.
Some parts are rotated however, so I need to determine which coordinate pertains to absolute height (X,Y,Z). How would I figure this out logically?
I don’t know if this is the most efficient way, but couldn’t you compare each X,Y,Z, and change the largest value? (Assuming the blocks are rectangles)
Edit: I’m referring to part.Size
The Part’s Position is located in the center of it. Resizing wouldn’t interfere its position, therefore, the position would still be in place.
You could use the CFrame.LookVector of the part to determine the direction it’s facing, then determine which axis to scale the part on. Although I’m not sure how to determine it, since this is all just a theory.