I need help creating feature in an FPS game

GM, all
I watched a demo of the FPS project
It had a very nice feature that I would like to add, but I have no idea where to start or how.
The idea is simply something like a vibration animation (similar to a Weapon Sway).
It happens before the end of the Weapon Sway (if you use the Weapon Sway right and left instead of the weapon standing straight when you stop moving the weapon, it just makes a simple right and left Vibrating movement, and if it is up and down, it does the same thing)
It seems simple, and I am a beginner in UE. I tried to add this to my project, and I tried more than one method, all of which did not work
If anyone has any experience with something like this or wants to help, I really need it
A simple video about what I mean :

Looks like the weapon continues in the direction of the momentum

Id search for something like “unreal gun how to add rotational momentum”

Idk how much help this will be to you, perhaps you’ve already tried that

Ive never had a go at making anything quite like this but if i were to try i would get the rotation of the player and somehow find out how fast theyve turned/moved and impart that velocity onto the gun… its probabbly quite similar to “gun recoil” if i had to guess but i’ve never done that yet either

Ill look around and see if i find anything promising and link it Here if i do,
Give this a try and see if tweaking those values he mentions towards the end gets you your desired effect

I just searched “unreal engine weapon sway”