Easy one

OK this should be an easy one, I think i have it but for some reason it doesn’t seem to be working. Pretty much all i want is an object to be dragable, and only move in the x position. It can’t move up and down only side by side.
I have it so it follows the mouse but it moves in the Y how do i restrict it?