Hey what’s up developers. To keep it short the sky is ruining my fog. Fog works perfectly when I don’t add the sky but when I do add the sky the fog turns off. System has different maps so it has different lighting for every map. Fog works on every other map apart from Galaxy due to the sky. Are there any settings in the sky that could be doing this? I’ll show script but it’s not a code issue since it works for everything else. (It’s on the client)
local event = ReplicatedStorage.Events.ChangeLighting
local Maps = script.Parent
event.OnClientEvent:Connect(function(mapName)
Lighting:ClearAllChildren()
local mapLighting = Maps:FindFirstChild(mapName)
print("Changing lighting to: "..mapLighting.Name)
for index, value in pairs(mapLighting:WaitForChild("LightingValues"):GetChildren()) do
Lighting[value.Name] = value.Value
end
for i, v in pairs(mapLighting:WaitForChild("AddOns"):GetChildren()) do
if v:IsA("Sky") then
local sky = v:Clone()
v.Parent = Lighting
else
local newInstance = Instance.new(v.Name, Lighting)
for index, value in pairs(v:GetChildren()) do
newInstance[value.Name] = value.Value
end
end
end
end)
when Purple Nebula gets added in it breaks the fog. Any Help?