Make ball rotate with camera

Hey guys, I’m trying to make a game where the players will play as a ball and I am currently stuck trying to make the ball rotate with the camera e.g. the camera is facing the Y axis and the players press the forward button, the ball goes on the X axis instead of it going on the Y axis.
I looked on YouTube for some tutorials, followed some but none worked.


This is the code for the player movement

image
And this is the camera movement.

(I have to add that the ball uses the controls from the roll a ball template of Unreal Engine 4)

Could I receive some advise on how I can make this happen?
Thank you.