Graphics Settings Menu

Hello. I have a Shadows Setting

But If I do a script saying

script.parent.Mouse1Click:Connect(Function()
game.Lighting.Bloom.Enabled = false

will that apply for everyone or just 1 player??

1 Like

Is that a local or server script?

What would I use if I was to make a script like it?

If it is a server script, then it would affect the entire server.

If it is a local script, you will need to use a remote event.

How would I use the remote event if I done that?

This mainly depends on who you want to affect and what scripts you use, If you use a server script, or just “script” it mainly affects everyone, if on a local script, the client can only see them. I think in this case if it is a setting, most likely it should be for the client anyway. Also judging by what you put on the script it seems like a local script anyway.

You would first need to put that event in replicated storage, then on the local script you would reference it and then put parameters on it. Then you would need another script, this time being server script to receive the event.

Here is an example:

The script will print the name of our player in output once a button is pushed

we could get a local script saying this:

local event = game.ReplicatedStorage.Event

script.Parent.MouseButton1Click:Connect(function()
	event:FireServer()
end)

We put the event in replicated storage
image

and then made a server script

local rs = game.ReplicatedStorage

rs.Event.OnServerEvent:Connect(function(p)--P is the paramater for player
	print(p)
end)

This is just an example by the way. But i hope this helps your understanding

Yes. So I would chnage pring(p)

for game.Lighting.Bloom.Enabled = false

Only if you want that button to affect the entire game.

So for the individual players lighting effects how would that work?

If you want it so that only the client experiences it then you would just use a local script without using an event

So in a local script

player clicks it balgi bladaa

game.Lighting.Bloom.Enabled = false

in a local script

Esentially yes if you only want the people who pressed it to experience it

ok thanks.

GN as its 02:25 for me :rofl:

1 Like