How do I only blur some parts and not others?

How do I only blurs some parts in a workspace but not others?
I am trying to get the effect of the menu in Room 2

You can see that when he goes into the menu, the entire background is blurred but not the gun, how may I be able to replicate that?

Reddit Post: Reddit - Dive into anything

They are simply using the recently added DepthOfField effect - which allows you to set different blur intensities behind, and in front of the FocusDistance.

You can add this effect by clicking the (+) button in Lighting and searching for “Depth”:



Bruh I didn’t even know that existed, thanks