Scaling in relationship to X position

Hey all,

I’ve tried to do this a few times, and there’s got to be a better way.

Essentially I want a MC to take it’s X position and magically set its x and yscale, so that when it is at an X of 0, it’s xscale is 75, when it’s at a X of 88, it’s xscale is 100, and when it’s at a X of 176, its scale is 75 again.

But it needs to scale from 75 to 100 and back to 75 smoothly, while it’s being moved by another script.

Any ideas?? Greatly appreciated.