Lighting

Show Deprecated
Not Creatable
Service

The Lighting service controls global lighting in an experience. It includes a range of adjustable properties that you can use to change how lighting appears and interacts with other objects, as summarized in Lighting Properties.

Lighting may also contain an Atmosphere object to render realistic atmospheric effects, including particle density, haze, glare, and color. See Atmospheric Effects for details.

In addition, Lighting (along with Workspace.CurrentCamera) may contain post‑processing effects such as SunRaysEffect and BlurEffect.

Summary

Properties

Methods

Events

Properties

Ambient

Read Parallel

Brightness

Read Parallel

ClockTime

Not Replicated
Read Parallel

ColorShift_Bottom

Read Parallel

ColorShift_Top

Read Parallel

EnvironmentDiffuseScale

Read Parallel

EnvironmentSpecularScale

Read Parallel

ExposureCompensation

Read Parallel

ExtendLightRangeTo120

Not Scriptable
Read Parallel

FogColor

Read Parallel

FogEnd

Read Parallel

FogStart

Read Parallel

GeographicLatitude

Read Parallel

GlobalShadows

Read Parallel

LightingStyle

Not Scriptable
Read Parallel

OutdoorAmbient

Read Parallel

PrioritizeLightingQuality

Not Scriptable
Read Parallel

ShadowSoftness

Read Parallel

Technology

Roblox Script Security
Read Parallel

TimeOfDay

Read Parallel

Methods

GetMinutesAfterMidnight

Write Parallel

Returns

GetMoonDirection

Write Parallel

Returns

GetMoonPhase


Returns

GetSunDirection

Write Parallel

Returns

SetMinutesAfterMidnight

()

Parameters

minutes: number

Returns

()

Events

LightingChanged

Parameters

skyChanged: boolean