How would i make the camera move similar to this when the player is dashing?

I am working on a game about samurais and i want to make my game feel more smooth by using camera manipulation.

I would like to know how to make the camera follow the humanoidrootpart of the player when dashing.

You’ll need to make the camera “Scriptable” first.

https://developer.roblox.com/en-us/api-reference/property/Camera/CameraType