Lighting

Lighting : Instance

Overview

The Lighting class is a service responsible for managing global lighting and environmental effects in a game. It controls how light interacts with objects, sets the time of day, and applies visual effects like fog, shadows, and atmospheric effects. Developers use the Lighting service to create immersive environments by adjusting properties that affect the overall appearance and mood of their game.

Description

The Lighting class provides a wide range of properties and tools to customize the visual atmosphere of a OVERDARE UGC World It allows developers to control the intensity, color, and behavior of lighting while also enabling advanced features like post-processing effects and dynamic lighting technologies.

Properties

ClockTime

number

ClockTime is a number property representing the current time of day in hours, used by lighting calculations. It ranges from 0.0 to 24.0

Code Samples

local Lighting = game:GetService("Lighting")

Lighting.ClockTime = 18 -- Hour

Ambient

Color3

Adjust the hue of the light.

Code Samples

local Lighting = game:GetService("Lighting")

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

Brightness

number

Adjust the intensity of the light.

Code Samples

local Lighting = game:GetService("Lighting")

Lighting.Brightness = 50

Methods

Events