一键导入
roblox-lighting
Use for Roblox lighting, atmosphere, day/night, or post-processing effects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for Roblox lighting, atmosphere, day/night, or post-processing effects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when implementing Roblox character animations, particles, beams, trails, tweens, camera shake, or other visual effects.
Use when building Roblox menus, HUDs, shops, notifications, dialogs, or responsive cross-platform UI.
Use when handling Roblox keyboard, mouse, gamepad, touch, motion input, or cross-platform action binding.
Use when validating RemoteEvent or RemoteFunction arguments, adding rate limits, designing server-authoritative systems, or preventing exploits.
Use when creating Roblox NPCs or enemies with pathfinding, state machines, line-of-sight or FOV detection, spawns, or AI update loops.
Use when building Roblox vehicles, ragdolls, projectiles, elevators, constraints, forces, or other physics-driven gameplay.
| name | roblox-lighting |
| description | Use for Roblox lighting, atmosphere, day/night, or post-processing effects. |
| last_reviewed | "2026-07-12T00:00:00.000Z" |
| sources | ["https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/environment/lighting.md","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/environment/atmosphere.md","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/environment/post-processing-effects.md"] |
Load for Roblox lighting, atmosphere, day/night, or post-processing (Bloom, ColorCorrection, DepthOfField).
Lighting.ClockTime = 14 -- 0-24 numeric
Lighting.Brightness = 2 -- 0-10, default 2
Lighting.Ambient = Color3.fromRGB(70, 70, 70) -- shadow fill
Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
Lighting.GlobalShadows = true
Lighting.ShadowSoftness = 0.2 -- 0=sharp, 1=soft
-- Current Studio uses LightingStyle and PrioritizeLightingQuality instead of Technology.
-- Verify enum values and device behavior against current Creator Hub docs before setting them.
local atmo = Instance.new("Atmosphere")
atmo.Density = 0.3 -- 0=clear, 1=opaque (keep <0.5)
atmo.Offset = 0.25 -- 0=ground, 1=sky
atmo.Color = Color3.fromRGB(199, 199, 199) -- near fog
atmo.Decay = Color3.fromRGB(92, 92, 92) -- far/horizon
atmo.Glare = 0 -- 0-10
atmo.Haze = 0 -- 0-10
atmo.Parent = Lighting
| Effect | Key Properties |
|---|---|
BloomEffect | Intensity (0-1), Size (px), Threshold (>0.7 recommended) |
ColorCorrectionEffect | Brightness, Contrast, Saturation (-1 to 1), TintColor |
DepthOfFieldEffect | FarIntensity, FocusDistance, InFocusRadius, NearIntensity |
SunRaysEffect | Intensity (0-1), Spread (0-1) |
local CYCLE_SPEED = 1 -- minutes per full day
task.spawn(function()
while true do
Lighting.ClockTime += (task.wait() / 60) * (24 / CYCLE_SPEED)
if Lighting.ClockTime >= 24 then Lighting.ClockTime -= 24 end
end
end)
| Light | Use | Key Props |
|---|---|---|
PointLight | Lamps, torches | Range, Brightness, Color |
SpotLight | Flashlights | Range, Angle, Face |
SurfaceLight | Screens, panels | Range, 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.
references/full.md