Hello.
I am getting this error…
![]()
… in this local script (cut because I don’t want to reveal too much)
local config = {
["Ruins"] = {
color = {254, 173, 242}, fog = {1000, 1000}
},
}
local function ChangeFog(thing)
game.Lighting.FogColor = Color3.fromRGB(unpack(config[thing.Name][1])) -- line in question
game.Lighting.FogEnd = config[thing.Name][2][1]
game.Lighting.FogStart = config[thing.Name][2][2]
end
Am I using unpack correctly? I don’t really know what’s causing it to get nil.