Roblox Lighting

TabooHarmony/roblox-brain/skills/gameplay/roblox-lighting

by TabooHarmony38826be57ee37bcf023e9c2b85681bea3909281cNo licenseListed Oct 9, 2026Updated Oct 9, 2026

Use for Roblox lighting, atmosphere, day/night, or post-processing effects.

Instructions onlySoftware Development
AI-generated overview

Reference for configuring Roblox lighting, atmosphere, day/night cycles and post-processing effects.

What it does
This skill provides a quick reference for Roblox environment settings: the Lighting service properties, Atmosphere instances, post-processing effects such as Bloom, ColorCorrection, DepthOfField and SunRays, day/night cycle code, and local light types. It also lists common pitfalls and performance notes, and points to a fuller reference file with mood presets, zone tweens and complete examples. It is instructions only and ships no scripts.
When to use it
Use it when working on Roblox lighting, atmosphere, day/night cycles or post-processing effects in a project. It is meant as a lookup while configuring or scripting those environment elements.
Requirements
No scripts are included; it is instructions only. It references Roblox Creator Hub documentation and a bundled reference file, and assumes a Roblox Studio or Luau context.

Roblox Lighting & Atmosphere

When to Load

Load for Roblox lighting, atmosphere, day/night, or post-processing (Bloom, ColorCorrection, DepthOfField).

Quick Reference

Lighting Service

luau
Lighting.ClockTime = 14            -- 0-24 numericLighting.Brightness = 2            -- 0-10, default 2Lighting.Ambient = Color3.fromRGB(70, 70, 70)        -- shadow fillLighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)Lighting.GlobalShadows = trueLighting.ShadowSoftness = 0.2      -- 0=sharp, 1=soft-- Configure tech/style/quality in Studio; these properties are not script-writable.-- Verify enum values and device behavior against current Creator Hub docs before setting them.

Atmosphere

luau
local atmo = Instance.new("Atmosphere")atmo.Density = 0.3    -- 0=clear, 1=opaque (keep <0.5)atmo.Offset = 0.25    -- 0=ground, 1=skyatmo.Color = Color3.fromRGB(199, 199, 199)   -- near fogatmo.Decay = Color3.fromRGB(92, 92, 92)      -- far/horizonatmo.Glare = 0        -- 0-10atmo.Haze = 0         -- 0-10atmo.Parent = Lighting

Post-Processing (all parented to Lighting)

EffectKey Properties
BloomEffectIntensity (0-1), Size (px), Threshold (>0.7 recommended)
ColorCorrectionEffectBrightness, Contrast, Saturation (-1 to 1), TintColor
DepthOfFieldEffectFarIntensity, FocusDistance, InFocusRadius, NearIntensity
SunRaysEffectIntensity (0-1), Spread (0-1)

Day/Night Cycle

luau
local CYCLE_SPEED = 1  -- minutes per full daytask.spawn(function()    while true do        Lighting.ClockTime += (task.wait() / 60) * (24 / CYCLE_SPEED)        if Lighting.ClockTime >= 24 then Lighting.ClockTime -= 24 end    endend)

Local Lights

LightUseKey Props
PointLightLamps, torchesRange, Brightness, Color
SpotLightFlashlightsRange, Angle, Face
SurfaceLightScreens, panelsRange, Angle, Face

Perf: Limit shadow-casting lights to 4-6 visible. Use Shadows=false on most. Neon material = cheap glow.

MCP: Inspect, change minimally, capture, check performance.

Common Pitfalls

  • Brightness >3 washes out. Density >0.5 = soup. Max 2-3 post effects.
  • Avoid black Ambient. Technology is deprecated; it and its replacements are Studio-only.

References

  • Mood presets (Day, Golden Hour, Night, Horror, Underwater, Sci-Fi), zone tweens, full examples: references/full.md

Source and attribution

Source:TabooHarmony/roblox-braininskills/gameplay/roblox-lightingat commit38826be

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal