Reference API Roblox

Engine API

Website

Related

Reference API Roblox

Lighting

Summary

This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
Tags: [NotCreatable, Service]

Member index 28

HistoryMember
553Ambient: Color3
553Brightness: float
553ClockTime: float
553ColorShift_Bottom: Color3
553ColorShift_Top: Color3
553EnvironmentDiffuseScale: float
553EnvironmentSpecularScale: float
553ExposureCompensation: float
553FogColor: Color3
553FogEnd: float
553FogStart: float
553GeographicLatitude: float
553GlobalShadows: bool
553OutdoorAmbient: Color3
553Outlines: bool
553ShadowColor: Color3
553ShadowSoftness: float
553Technology: Technology
553TimeOfDay: string
462GetMinutesAfterMidnight(): double
462GetMoonDirection(): Vector3
462GetMoonPhase(): float
462GetSunDirection(): Vector3
573SetMinutesAfterMidnight(minutes: double): null
553getMinutesAfterMidnight(): double
573setMinutesAfterMidnight(minutes: double): null
462LightingChanged(skyChanged: bool)
inherited from Instance
553Archivable: bool
619Capabilities: SecurityCapabilities
553ClassName: string
553Name: string
553Parent: Instance
619Sandboxed: bool
616UniqueId: UniqueId
553className: string
576AddTag(tag: string): null
573ClearAllChildren(): null
462Clone(): Instance
573Destroy(): null
486FindFirstAncestor(name: string): Instance
486FindFirstAncestorOfClass(className: string): Instance
486FindFirstAncestorWhichIsA(className: string): Instance
486FindFirstChild(name: string, recursive: bool = false): Instance
486FindFirstChildOfClass(className: string): Instance
486FindFirstChildWhichIsA(className: string, recursive: bool = false): Instance
486FindFirstDescendant(name: string): Instance
563GetActor(): Actor
486GetAttribute(attribute: string): Variant
462GetAttributeChangedSignal(attribute: string): RBXScriptSignal
486GetAttributes(): Dictionary
486GetChildren(): Objects
462GetDebugId(scopeLength: int = 4): string
486GetDescendants(): Array
486GetFullName(): string
462GetPropertyChangedSignal(property: string): RBXScriptSignal
576GetTags(): Array
576HasTag(tag: string): bool
486IsA(className: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): bool
580IsPropertyModified(name: string): bool
573Remove(): null
576RemoveTag(tag: string): null
580ResetPropertyToDefault(name: string): null
573SetAttribute(attribute: string, value: Variant): null
462WaitForChild(childName: string, timeOut: double): Instance
553children(): Objects
553clone(): Instance
573destroy(): null
553findFirstChild(name: string, recursive: bool = false): Instance
553getChildren(): Objects
462isA(className: string): bool
553isDescendantOf(ancestor: Instance): bool
573remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462Changed(property: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
553childAdded(child: Instance)

Removed member index 1

HistoryMember
433LegacyOutlines: bool

History 108

Members 28

Ambient

TypeDefault
Color30.5, 0.5, 0.5

History 4

Brightness

TypeDefault
float1

History 4

ClockTime

TypeDefault
float14
This property is not replicated. Its interface does not cross the network boundary.

History 4

Tags: [NotReplicated]

ColorShift_Bottom

TypeDefault
Color30, 0, 0

History 4

ColorShift_Top

TypeDefault
Color30, 0, 0

History 4

EnvironmentDiffuseScale

TypeDefault
float0

History 4

EnvironmentSpecularScale

TypeDefault
float0

History 4

ExposureCompensation

TypeDefault
float0

History 4

FogColor

TypeDefault
Color30.75, 0.75, 0.75

History 4

FogEnd

TypeDefault
float100000

History 4

FogStart

TypeDefault
float0

History 4

GeographicLatitude

TypeDefault
float41.7332993

History 4

GetMinutesAfterMidnight

Parameters (0)
No parameters.
Returns (1)
double

History 2

GetMoonDirection

Parameters (0)
No parameters.
Returns (1)
Vector3

History 2

GetMoonPhase

Parameters (0)
No parameters.
Returns (1)
float

History 2

GetSunDirection

Parameters (0)
No parameters.
Returns (1)
Vector3

History 2

GlobalShadows

TypeDefault
boolfalse

History 4

LightingChanged

Parameters (1)
skyChangedbool

History 5

OutdoorAmbient

TypeDefault
Color30.5, 0.5, 0.5

History 4

Outlines

TypeDefault
booltrue
This property is deprecated. It exists only for backward compatibility, and should not be used for new work.

History 5

Tags: [Deprecated]

SetMinutesAfterMidnight

Parameters (1)
minutesdouble
Returns (1)
null

History 3

ShadowColor

TypeDefault
Color30.7, 0.7, 0.72
This property is deprecated. It exists only for backward compatibility, and should not be used for new work.
This property is not replicated. Its interface does not cross the network boundary.

History 5

Tags: [NotReplicated, Deprecated]

ShadowSoftness

TypeDefault
float0.5

History 4

Technology

TypeDefault
TechnologyCompatibility
This property is not scriptable. It cannot be accessed by script code.

History 5

Tags: [NotScriptable]

TimeOfDay

TypeDefault
string14:00:00

History 4

getMinutesAfterMidnight

Parameters (0)
No parameters.
Returns (1)
double
This function is deprecated. It exists only for backward compatibility, and should not be used for new work. GetMinutesAfterMidnight should be used instead.

History 3

Tags: [Deprecated]

setMinutesAfterMidnight

Parameters (1)
minutesdouble
Returns (1)
null
This function is deprecated. It exists only for backward compatibility, and should not be used for new work. SetMinutesAfterMidnight should be used instead.

History 4

Tags: [Deprecated]

Removed members 1

LegacyOutlines

TypeDefault
bool
This property is not scriptable. It cannot be accessed by script code.

History 2

Tags: [NotScriptable]

Settings