Hi guys! I have a problem… So… I made a main menu, with BlurEffect, and camera manipulating. BUT! I have a problem, when the player dies, the Blur Effect shows up again… I checked the Menu’s screengui settings, the “ResetOnSpawn = false”… How can I fix this?
Here is the code:
local playButton = script.Parent.Ui.MainFrame.playButton
local mainFrame = script.Parent.Ui.MainFrame
local openButton = script.Parent.MainGui.openButton
local title = script.Parent.Ui.MainFrame.Title
local hp = script.Parent.nGUI.Health
local moneyGUI = script.Parent.nGUI.Coins
local attentionGUI = script.Parent.Ui.atFrame
local beta = script.Parent.Ui.betaLabel
--MainCameraSettings--
local player = game.Players.LocalPlayer
local character = player.Character
local camera = workspace.CurrentCamera
repeat wait()
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = workspace.CameraPos.CFrame
local blur = Instance.new("BlurEffect",camera)
playButton.MouseButton1Click:Connect(function()
workspace.CurrentCamera.Blur.Enabled = false
workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
title.Visible = false
openButton.Visible = true
playButton.Visible = false
mainFrame.Visible = false
hp.Visible = true
moneyGUI.Visible = true
attentionGUI.Visible = true
beta.Visible = true
end)
I tried to disable it, but nothing…