Follow an object from a certain distance keep only on z-axis

I'm new to Unity and I really really want to make a game like Crash Bandicoot (Or atleast have the view that Crash Bandicoot Games had) where you'd walk and then the camera would follow you but only on the x and y axis not the z (in other words how do i make a camera follow an object without having the camera rotate around the z axis)

2.5D Game I believe it is called?

parent it to your player and lock rotation of the camera