Question for net script

I want the right curve to act like the left curve what is wrong with my script that it is attaching to the middle and not the ends.

Please share your file.