Lighting¶
Inherits Instance
Lighting is responsible for controlling the state of the lighting in the place. It provides many different options for creators to enhance and fine-tune the visuals of their worlds.
Static Class
This object is a static class. It can be accessed by using its name as a keyword.
Additionally, it cannot be created in the creator menu or with Instance.New().
Not newable
This object cannot be created by scripts using Instance.New().
Properties¶
Skybox : SkyboxEnum¶
Sets the skybox to one of the preset skyboxes.
AmbientSource : AmbientSource¶
Determines the source of ambient lighting in the place.
AmbientColor : Color¶
Sets the ambient color of the lighting in the place.
FogEnabled : boolean¶
Enables or disables fog in the place.
FogColor : Color¶
Sets the color of the fog in the place.
FogStartDistance : number¶
Sets the distance from the camera at which fog begins to appear.
FogEndDistance : number¶
Sets the distance from the camera at which fog stops appearing.