Camera Control System

I want to create a camera system that when a players moves their mouse left and right while walking with their character it turns them around and not the camera but when the character isn't moving, the mouse would control the camera instead. With what I've done the camera is controlled when the character is standing, but when the character is moving, nothing turns neither the charcter nor the camera it just stays still. I can't figure out what's wrong with the BP, but I'm new to this so I'd be grateful for some help figuring this out..

Is your pawn set to Use Control Rotation?

Yes it is, it works fine if I just have it control the character but once I add the branch it does the mentioned above

  1. Is it third person?
  2. When your moving do you just want the character to turn or also the movement direction?

Yes it’s third person. I want the character to change direction while moving, so when he’s moving forward he’d turn left and right.