How can i make a realistic gun sway?

What do you want to achieve? Keep it
simple and clear!

How do i make a realistic gun sway?

i want to make a gun sway similar
to roblox cod mw2019 port made by justinacho.

Heres a video explaining my statement: