Yer i need help with an other game its a shooting 1

ive got this tank lets say and i want it to be able to move left and rigght from the veiw at tha back and i need 2 no how to do that? and also ive got this obfect that follows the mouse and it moves horozontaly and shoots wen u click the mouse. how do i make it only rotate 180 degrees to that side that the mouse is on, insted move along?