2 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

Lighting and effects

The Lighting container services let you control and customize a game's environment such as lighting, atmosphere, and clouds. You can also apply post-processing effects to adjust how the game appears on the screen.

Global lighting

The Lighting service contains properties that you can adjust to update the global lighting in a game, such as the ClockTime and Brightness.

ClockTime = 0

Lighting with ClockTime of 0 (TimeOfDay of 00:00:00)

ClockTime = 6.3

Lighting with ClockTime of 6.3 (TimeOfDay of 06:18:00)

Brightness = 0.5

Lighting with Brightness property of 0.5

Brightness = 3.75

Lighting with Brightness property of 3.75

Note

In addition to global lighting, you can create and attach light sources to parts or attachments to simulate objects like lamps, torches, spotlights, or TV screens.

Atmospheric effects

Atmospheric effects simulate realistic environments by scattering sunlight in unique ways. Using the Atmosphere object in the Lighting service, you can control air particle density, simulate haze or glare, set an atmosphere's color, and more.

Atmospheric effects used to render a brilliant sunset scene

Atmospheric effects used to render a brilliant sunset scene

Clouds and skies

By default, the Sky object forms a skybox with celestial bodies such as a sun, moon, and stars. In addition, you can adjust the cloud cover, density, and color properties of the Clouds object to render realistic, dynamic clouds that drift slowly across the sky through global wind.

Wind blowing dynamic clouds across the sky

Post-processing effects

Post-processing effects are customizable filters that allow you to quickly enrich the visuals of your game. Using the post-processing effect objects in the Lighting service or Camera, you can:

Landscape with depth-of-field effect applied, simulating distance blur

Landscape with depth-of-field effect applied, simulating distance blur