Button To Change Lighting Settings

Howdy!
I’ve been wondering for the past few days and looking upon the devforum on how I should do the following:

If you press a GUI button, it changes a property or properties of lighting.
For example: if You pressed the button, it would change the blur intensity to from 0 to 1.

I’m not a scripter what so ever, so if someone could help me with how I would go about it that would be very much appreciated.

3 Likes

Do you want the blur to be changed for the player or for everyone?

2 Likes

Player, I should of specified that.

1 Like

put this in a local script inside the GUI button

local tb = script.Parent.TextButton

tb.MouseButton1Down:Connect(function)
game.Lighting.Blur.Size = 1

end)

--thats it

if it doesn’t work
tell me what happens in the output please

signed,
X

3 Likes

Not sure if Blur.Intensity will work. Use Blur.Size.

1 Like
local Button = script.Parent.TextButton

Button.MouseButton1Click:Connect(function()
	local Blur = game.Lighting.Blur
	
	Blur.Size = 1
end)
2 Likes

Thanks for the clarification. I dont really touch lighting with scripts.

2 Likes

Thank you all who decided to help, I’m very grateful!

3 Likes