You’re just indexing the function; you’re not calling it.
BrightnessCases[brightness.Value]() -- Calls the function
Alternatively, if you’re not going to add any further functionality, I recommend doing this:
local brightness = workspace.Settings.BrightnessValue
local loaded = workspace.Technical.LoadedValue
local gui
local BrightnessCases = {
-1.69,
-1.42,
-1.20
}
--loading
loaded:GetPropertyChangedSignal("Value"):Connect(function()
if loaded.Value == true then
game.Lighting.ExposureCompensation = BrightnessCases[brightness.Value]
end
end)