The Character floats on the surface when I rotate the camera

Hello everyone, I hope you’re doing well.
I started to learn Unreal Engine two days ago. And I have a small problem with character movements. When I rotate my camer![a upwards o][1]r downwards, the carechter rotates too. How can I solve this problem?

Hello,

Make Rotator and use only YAW from controll vector.

Thank you!
It didn’t work at first ,but then I created a new blueprint and It was just perfect. (both of them work btw)