Scaling Part With Script In One Direction

Is there any way possible I can scale an object in one direction with a script, like this?

Whenever I try to scale something with a script, it always makes that axis scale from the center pivot point on a part.

Yes, you can just use Resize function which is have as parameter side of resize