How do I make the "Blur effect" only active when someone is on my games menu?

Hello, I’m making some menu ui for my game and I want the background to be blurred when your on the menu. Me and my game scripter do not know how to do this as the blur is server sided, we only want this blur active on the menu. (I do not script, he does. I am making this so both of us can figure this out).

We need:
The blur to be client sided.
the blur to only be visible while on the games menu
and preferably the blur to instantly disable when leaving the menu (It will look odd when you deploy and your screen is still blurry for a second so we would like to avoid this).

First you will need to Create a Blur Instance in Lighting and set Enabled to false and then add this piece of code when the menu is opening

game.Lighting.Blur.Enabled = true

and add this piece of code when the menu is closing

game.Lighting.Blur.Enabled = false
2 Likes

This can be achieved by only making the blur on the client, create the blur effect inside of a LocalScript.

This can be done by changing the ‘Enabled’ property of the BlurEffect

1 Like