I am trying to create a script about when the button is clicked, the camera goes back to the player and the blur is removed. However, the camera goes back to the player but doesn't remove the blur sometimes. The blur either goes away or just stays there for some reason, any help?
local cc = workspace.CurrentCamera local pc = game.Workspace.MenuCamera local pb = script.Parent.PlayButton wait(.001) cc.CameraType = Enum.CameraType.Scriptable cc.CFrame = pc.CFrame local camera = game.Workspace.CurrentCamera script.Parent.PlayButton.MouseButton1Click:Connect(function() game.Lighting.Blur.Enabled = false if game.Lighting.Blur.Enabled == true then game.Lighting.Blur.Enabled = false end wait(0.1) camera.CameraType = Enum.CameraType.Custom script.Parent.Enabled = false end)