Creating a viewbob code(When the player walks, their view bobs up and down)

How would I do something like this? I need a little help. I don’t have a code started for it yet so I don’t have a code to really show…

To start off, look at the CalcView hook.