Lighting

Lighting : Instance

Overview

The Lighting system manages global lighting effects, enabling precise control over the game’s atmosphere through lightings.

When used with Atmosphere, it enables realistic atmospheric effects such as fog and color adjustments.

Properties

ClockTime

number

This property represents the game world’s current time in hours.

Independent of real-world time, it is used to stage day and night cycles in the game.

Code Samples

local Lighting = game:GetService("Lighting")

Lighting.ClockTime = 18 -- Hour

Ambient

Color3

This property sets the background lighting color for spaces unaffected by external light sources (e.g., indoors).

Code Samples

local Lighting = game:GetService("Lighting")

Lighting.Ambient = Color3.fromRGB(255, 0, 0)

Brightness

number

This property determines the overall brightness applied to the entire game environment.

Code Samples

local Lighting = game:GetService("Lighting")

Lighting.Brightness = 50

Methods

Events

See also

Lighting

Last updated