From the properties, the bloom would do barely anything.
What happens if you adjust the brightness?, or if that also doesnât work, ExposureCompensation?
It just keeps being blurry when i do the things u say.
Any more ideas to fix this bug?
Have you checked the ColorCorrectionEffectâs brightness property already? I assumed that you have since the first person has mentioned it.
I didnât check that yet, where do i find it?
When i removed the Blur, the blur dissapeared from my game but i donât want that because i need it for my game start gui.
disabling GUI keeps the scripts inside it enabled I believe. disable all the scripts you may have related to blur and see if that does the trick ^^
if it works then I would recommend debugging your code to see which script does it
I see. Also, something to note is that you are using attributes to see if the game has already started. I suppose this is because when the player dies and respawns it shows the GUI right? A good work around for this is to disable the property ResetOnSpawn
for the screen GUI.
Here is an updated, cleaner script.
local player = game.Players.LocalPlayer
local button = script.Parent
local screenGui = button.Parent
local blur = game.Lighting.Blur
button.MouseButton1Click:Connect(function()
blur:Destroy()
screenGui.Visible = false
end)
also this bit of code seems like it could mostly be responsible for the blur being enabled even after disabling the ui
That fixes the problem but then the texbutton and textlabel are not going away
So should i just replace ur code with the part that mediaformat said?
do enabled not visible and that should fix it. this code they gave should work fine if you donât plan on using the blur again, otherwise instead of destroy do .Enabled = false
local players = game:GetService("Players")
local lighting = game:GetService("Lighting")
local player = players.LocalPlayer
local button = script.Parent
local screenGui = button.Parent
local blur = lighting:WaitForChild("Blur")
button.MouseButton1Click:Connect(function()
blur.Enabled = false
screenGui.Enabled = false
end)
should work hopefully ^^
Whoops, made a mistake.
local button = script.Parent
local screenGui = button.Parent
local blur = game.Lighting:FindFirstChild("Blur")
if not blur then return end
button.MouseButton1Click:Once(function()
blur:Destroy()
screenGui:Destroy()
end)
Here, this should work and this is optimized as well.
doing this will make the entire script if blur is not found haha! doing waitforchild will ensure it exists before continuing the script, which is why I recommend you disable the blur instead of destroying it
Not really. From my experience, FindFirstChild
usually yields for a bit before continuing which wonât crash the script every time.
make sure that the buttonâs parent is indeed the gui so it properly disables. if this doesnt work maybe you could send your hierarchy??