local Lighting = game:GetService("Lighting")
local colorCorrection = Lighting:WaitForChild("colorCorrection")
local saturationMap = {
["Green Hills"] = -0.97,
["You cant run"] = 0,
["Not Kind or Perfect"] = 2
}
local lastModel = nil
local function updateSaturation()
if lastModel and saturationMap[lastModel] then
colorCorrection.Saturation = saturationMap[lastModel]
else
colorCorrection.Saturation = 5
end
end
local function scan()
local found = nil
for name in pairs(saturationMap) do
local instance = workspace:FindFirstChild(name, true)
if instance and instance.Name == name then
found = name
break
end
end
if found ~= lastModel then
lastModel = found
updateSaturation()
end
end
scan()
while true do
scan()
task.wait(0.2)
end
It doesnt work, the way that its supposed to work is when a map is put into workspace it changes the saturation.