PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Lighting.LightingChanged

Lighting.LightingChanged

Oct 01 2018, 2:13 AM PST

The following code would print Skybox has changed whenever you changed the Lighting’s SkyBox. The opposite will be printed when the adverse is true.

game.Lighting.LightingChanged:Connect(function(skyboxChanged)
    if skyboxChanged then
       print("Skybox has changed")
    else
       print("The skybox did not change.")
    end
end)