Fashlight can move up and down not sideways HELP

Hello, I’m a new game developer trying to create my first game. I’m currently working on a flashlight system, and I want the flashlight to move from side to side when I move the camera left or right.

I followed a tutorial, but the person only explains how to make the flashlight move up and down, not from left to right.

I created the left and right animations myself and tried to implement them with the help of several AIs, but none of them seem to be able to figure out what the issue is.

Please i need help.

Is your character movement component set to Use Controller Rotation or Use Controller Desired Rotation? If character rotates in sync with control rotation, the yaw delta is always going to be near 0, give or take a few degrees, depending on rotation speed.

I’d first check the controller rotation settings, because if the yaw isn’t changing properly, the flashlight won’t have the left-right movement I’m expecting.

the yaw was changing properly. I checked the value and it moved to 90 at full right but its like my animations wasnt connecting to my player

If the yaw value in the abp is indeed hitting 90 while playing the game, I’d try plugging the aim offset player straight into Output pose on anim graph. Just to check if the layered blend is breaking it somehow. And if you haven’t already, try changing the yaw in the anim preview panel at the bottom right to see if it works in the anim editor.