LightingChanged (Event)

LightingChanged ( Bool skyboxChanged )
Description Fires when a property of Lighting is changed, or a Skybox is added or removed.
Member of: Lighting


Example
function onLightingChanged(skyboxChanged)
   if skyboxChanged then
      print("Skybox has changed")
   else
      print("The skybox did not change.")
   end
end

local Lighting = game:GetService("Lighting")

Lighting.LightingChanged:connect(onLightingChanged)