Skip to content

Lighting ​

Inherits Instance.

A service: the global Lighting is the game's one Lighting.

Properties ​

NameTypeNotes
AmbientColor
AutoExposureboolean
Brightnessnumber
ClockTimenumber
EnvironmentDiffuseScalenumber
EnvironmentSpecularScalenumber
ExposureCompensationnumber
FogColorColor
FogEndnumber
FogStartnumber
GeographicLatitudenumber
GlobalShadowsboolean
OutdoorAmbientColor
ShadowSoftnessnumber

Methods ​

  • GetMinutesAfterMidnight(): number
  • GetMoonDirection(): Vector3
  • GetSunDirection(): Vector3
  • SetMinutesAfterMidnight(minutes: number): ()

Inherited ​

From Instance: AddTag, AncestryChanged, Archivable, AttributeChanged, Changed, ChildAdded, ChildRemoved, ClassName, ClearAllChildren, Clone, DescendantAdded, DescendantRemoving, Destroy, Destroying, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, GetDescendants, GetFullName, GetPropertyChangedSignal, GetTags, HasTag, IsA, IsAncestorOf, IsDescendantOf, IsPropertyModified, Name, Parent, QueryDescendants, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild.

Apache License 2.0