Hey, I have this script that toggles a color correction effect on/off via a gui however when toggled the whole server's lighting changes - so if one player toggles it off, it is also toggled off for another player but I'd like it to be turned on/off locally so the lighting is local so players can choose whether they want the effect on/off.
local Button = script.Parent
local lighting = game:GetService("Lighting")
function onClick()
lighting.ColorCorrection.Enabled = not lighting.ColorCorrection.Enabled
end
Button.MouseButton1Click:connect(onClick)

2 comments
you can't
r u sure its a local script