So I made a script were when you press a textbutton the button will dissapear and the blur will be disabled . But the blur disabling isn’t working . Heres my code :
local textbutton = script.Parent
local text = textbutton.Text
textbutton.MouseButton1Click:Connect(function()
textbutton.Text = "Loading!"
wait(2)
textbutton.Visible = false
game.Lighting:GetChildren("Blur").Enabled = false
end)
Instance:GetChildren() is used to get a table of all the children of the instance, not to get a specific instance. If you would like to get a specific instance based off of its name, use Instance:FindFirstChild(NAME) instead.
Instead of getting children, use :WaitForChild or just state it directly.
GetChildren returns a table of what’s there and not exactly what you want (I believe) so it wouldn’t work here
This question has been answered & solved.
Also, you are using FindFirstChild() wrong.
And, FindFirstChild() is approx. ~ 20% slower than using the dot operator.
That’s another fact performance-wise for anyone who might read this post in the future.