Starter Gui Scripting Problems

Hi!
I am currently making an intro to my game, so far it works, however once a player resets, the blur effect placed in the camera in the intro is still there. I want to get rid of this blur effect when a player resets.
Here is a video of what I mean below.


Thanks for reading!

You can set the ResetOnDeath property of the screengui to false

I already tried that before. When I turn it off the screen becomes blurry and the game becomes unplayable.

What might be happening here is that in this line,

workspace.CurrentCamera.Blur.Enabled = false

The script keeps changing the same “Blur” object’s enabled property to false. There are multiple blur objects named “Blur” present but only one is referenced each time. So the blur keeps piling up and is never disabled.

This can be fixed by simply destroying the previous blur instead of disabling it (in ScreenGui.Play.LocalScript: Line 4):

workspace.CurrentCamera.Blur:Destroy()
2 Likes

The blur staying when reset on death is false is because the script that creates the blur is not getting removed on death. So, it stops disabling the blur but it does not stop creating them… If that makes sense…

Thanks your solution has fixed it! I added this into the fifth line, since the Blur effect kept piling up.

1 Like