How to make the camera follow a player forward?

I need help making the camera only follow the player forward and not to the sides when i move left and right, happy for any help i can get :smiley:

The question sounds like it needs more detail. One possibility would be to child the camera to the parent and clamp whatever axis you want to be locked.