Weapon sway

How can I make my gun sway left or right whenever the camera moves left or right… Using blueprints only. I saw a tutorial on Youtube about this but it didn’t work for me. Any ideas? Screenshots would really help. Thanks!