lighting = game.Workspace.Lighting
function c()
lighting.Ambient = Color3.new(31/255,31/255,31/255)
script.Parent.Visible = false
end
script.Parent.MouseButton1Down:connect(c)
I've looked it over and it seems fine to me, but it does not work. No errors either.

1 comment
"Lighting" is a service, so it should be referenced by "game.Lighting" (it's not a child of the Workspace)