照明

Lighting是一種控制遊戲照明環境的服務。它影響整個遊戲世界的氛圍、情緒和可見度。

local Lighting = game:GetService("Lighting")

Lighting.ClockTime = 18 -- Sets the time to 6 PM
Lighting.Brightness = 2 -- Moderate brightness
Lighting.Ambient = Color3.fromRGB(128, 128, 128) -- Gray ambient light
Lighting.OutdoorAmbient = Color3.fromRGB(100, 100, 100) -- Darker gray for outdoor
Lighting.FogColor = Color3.fromRGB(50, 50, 50) -- Dark fog color
Lighting.FogStart = 100 -- Fog starts at 100 studs
Lighting.FogEnd = 1000 -- Fog ends at 1000 studs
Lighting.GlobalShadows = true -- Enable global shadows
local Lighting = game:GetService("Lighting")

Lighting.FogStart = math.huge
Lighting.FogEnd = math.huge

如果您覺得本教程對您有幫助,並且願意支持我的工作,請考慮請我喝杯咖啡。

非常感謝您的支持!

請我喝杯咖啡