'Move to' on x axis

hey y'all.
How can I make an actor 'move to' a destiantion on a mouse click, but ONLY on the x axis?
How can I make an actor 'move to' a destiantion on a mouse click, but ONLY on the x axis?
MouseR[0]=xmouse;
MouseR[1]=ymouse;
y = 0; //Or other value
if (xvelocity=+2);
ChangeAnimation to right