First Person Motion Blur

I am trying to add motion blur to my game. It is a first person game and I want it so when you look around it will blur with the recent frames. I saw the other tutorial but It was not first person and it constantly blurred. Can anybody help?

There’s a version of what you are after that could probably be made to work easily enough:

Do you know where I can find the code for this? lol!

here
https://raw.githubusercontent.com/leonidaspir/engine/160c4f593150f70f8bf83c55b6b6f6ce4bc0d9d2/scripts/posteffects/posteffect-motionblur.js

So do I just put this script on the camera?

See this
https://developer.playcanvas.com/en/user-manual/graphics/posteffects/

Thanks!