Lighting is responsible for all lighting aspects of the world, affecting how objects are rendered. This class cannot be instantiated.
Properties
Brightness: float
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
ColorShift_Bottom: Color3
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
ColorShift_Top: Color3
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
EnvironmentDiffuseScale: float
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
EnvironmentSpecularScale: float
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
ExposureCompensation: float
- Category: Exposure.
- Serialization: can save and load.
- Thread safety: read safe
FogEnd: float
- Category: Fog.
- Serialization: can save and load.
- Thread safety: read safe
FogStart: float
- Category: Fog.
- Serialization: can save and load.
- Thread safety: read safe
GeographicLatitude: float
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe
GlobalShadows: bool
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
OutdoorAmbient: Color3
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
ShadowSoftness: float
- Category: Appearance.
- Serialization: can save and load.
- Thread safety: read safe
Technology: Technology
- Category: Appearance.
- Read security: RobloxScriptSecurity.
- Write security: RobloxScriptSecurity.
- Serialization: can save and load.
- Thread safety: read safe
TimeOfDay: string
- Category: Data.
- Serialization: can save and load.
- Thread safety: read safe
Methods
GetMinutesAfterMidnight(): double
- Thread safety: safe
GetMoonDirection(): Vector3
- Thread safety: safe
GetMoonPhase(): float
This method was intended to get a value indicating the current phase of the moon. Moon phases were never officially implemented, and this method will always return 0.75
.
- Thread safety: unsafe
GetSunDirection(): Vector3
- Thread safety: safe
SetMinutesAfterMidnight(minutes: double): null
Name | Type |
---|---|
minutes | double |
- Thread safety: unsafe
setMinutesAfterMidnight(minutes: double): null
Name | Type |
---|---|
minutes | double |
Use SetMinutesAfterMidnight instead.
- Thread safety: unsafe
Events
Removed members
Properties
External links[]
- Lighting in the Roblox Creator Documentation
- Lighting in the Roblox API Reference