Environment

월드 환경 관련 설정을 처리하는 객체에요.

속성

UseDayNight

야간 사용 여부에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseDayNight = true --시간이 흐르게 해요
Environment.TimeSpeed = 90000 --값이 클수록 빨라져요

DefaultHour

기본 설정 시간이에요. (단위 : 시간)

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.DefaultHour = 2

DefaultTime

기본 설정 시간이요. (단위 : 분)

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.DefaultTime = 120

TimeSpeed

시간이 흐르는 속도에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseDayNight = true --시간이 흐르게 해요
Environment.TimeSpeed = 90000 --값이 클수록 빨라져요

CurrentTime

현재 시간을 얻어오거나 세팅할 수 있어요. (단위 : 분)

-- 샘플 --

local Environment = Workspace.Environment

print(Environment.CurrentTime)

CurrentHour

현재 시간을 얻어오거나 세팅할 수 있어요. (단위 : 시간)

-- 샘플 --

local Environment = Workspace.Environment

print(Environment.CurrentHour)

SunIntensity

해의 강도에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.SunIntensity = 10

SunBrightness

해의 광도에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.SunBrightness = 10

SunSize

해의 크기에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.SunSize = 10

NorthDirectionOffset

북쪽 방향과의 오프셋 거리에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.NorthDirectionOffset = 10

SunAngleInTheSky

해의 각도에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.SunAngleInTheSky = 10

MoonIntensity

달의 강도에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.MoonIntensity = 5

MoonBrightness

달의 광도에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.MoonBrightness = 5

HideMoonDuringDay

낮 시간 동안 숨길지 여부에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.HideMoonDuringDay = true

UseTexMoon

달의 Tex 사용 여부에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseTexMoon = false --달을 안보이게 해요

TexMoonSize

달의 Tex 사이즈에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.TexMoonSize = 10

TexMoonDistance

달의 Text 거리에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.TexMoonDistance = -500000

CloudSpeed

구름의 속도에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.CloudSpeed = 50 --값이 클수록 빨라져요

CloudOpacity

구름의 투명도에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.CloudOpacity = 0.6

StarsBrightness

별의 밝기에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.StarsBrightness = 3

UseColorCurve

ColorCurve 사용 여부에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseColorCurve = false
Environment.SunlightColor = Color.new(50, 50, 50, 255)
Environment.MoonlightColor = Color.new(50, 50, 50, 255)
Environment.ZenithColor = Color.new(50, 50, 50, 255)
Environment.HorizonColor = Color.new(50, 50, 50, 255)
Environment.CloudColor = Color.new(50, 50, 50, 255)
Environment.OverallColor = Color.new(50, 50, 50, 255)

HorizonFalloff

떨어지는 높이에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.HorizonFalloff = 70

SunlightColor

햇빛의 컬러에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseColorCurve = false
Environment.SunlightColor = Color.new(50, 50, 50, 255)
Environment.MoonlightColor = Color.new(50, 50, 50, 255)
Environment.ZenithColor = Color.new(50, 50, 50, 255)
Environment.HorizonColor = Color.new(50, 50, 50, 255)
Environment.CloudColor = Color.new(50, 50, 50, 255)
Environment.OverallColor = Color.new(50, 50, 50, 255)

MoonlightColor

달빛의 컬러에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseColorCurve = false
Environment.SunlightColor = Color.new(50, 50, 50, 255)
Environment.MoonlightColor = Color.new(50, 50, 50, 255)
Environment.ZenithColor = Color.new(50, 50, 50, 255)
Environment.HorizonColor = Color.new(50, 50, 50, 255)
Environment.CloudColor = Color.new(50, 50, 50, 255)
Environment.OverallColor = Color.new(50, 50, 50, 255)

ZenithColor

천정의 컬러에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseColorCurve = false
Environment.SunlightColor = Color.new(50, 50, 50, 255)
Environment.MoonlightColor = Color.new(50, 50, 50, 255)
Environment.ZenithColor = Color.new(50, 50, 50, 255)
Environment.HorizonColor = Color.new(50, 50, 50, 255)
Environment.CloudColor = Color.new(50, 50, 50, 255)
Environment.OverallColor = Color.new(50, 50, 50, 255)

HorizonColor

수평선의 컬러에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseColorCurve = false
Environment.SunlightColor = Color.new(50, 50, 50, 255)
Environment.MoonlightColor = Color.new(50, 50, 50, 255)
Environment.ZenithColor = Color.new(50, 50, 50, 255)
Environment.HorizonColor = Color.new(50, 50, 50, 255)
Environment.CloudColor = Color.new(50, 50, 50, 255)
Environment.OverallColor = Color.new(50, 50, 50, 255)

CloudColor

구름의 컬러에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseColorCurve = false
Environment.SunlightColor = Color.new(50, 50, 50, 255)
Environment.MoonlightColor = Color.new(50, 50, 50, 255)
Environment.ZenithColor = Color.new(50, 50, 50, 255)
Environment.HorizonColor = Color.new(50, 50, 50, 255)
Environment.CloudColor = Color.new(50, 50, 50, 255)
Environment.OverallColor = Color.new(50, 50, 50, 255)

OverallColor

Overall의 컬러에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseColorCurve = false
Environment.SunlightColor = Color.new(50, 50, 50, 255)
Environment.MoonlightColor = Color.new(50, 50, 50, 255)
Environment.ZenithColor = Color.new(50, 50, 50, 255)
Environment.HorizonColor = Color.new(50, 50, 50, 255)
Environment.CloudColor = Color.new(50, 50, 50, 255)
Environment.OverallColor = Color.new(50, 50, 50, 255)

FogEnable

안개의 사용 여부에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.FogEnable = true
Environment.FogDensity = 1
Environment.FogHeightFalloff = 2
Environment.FogColor = Color.new(50, 50, 50, 255)
Environment.FogStartDistance = 1000

FogDensity

안개의 밀도에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.FogEnable = true
Environment.FogDensity = 1
Environment.FogHeightFalloff = 2
Environment.FogColor = Color.new(50, 50, 50, 255)
Environment.FogStartDistance = 1000

FogHeightFalloff

안개가 떨어지는 높이에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.FogEnable = true
Environment.FogDensity = 1
Environment.FogHeightFalloff = 2
Environment.FogColor = Color.new(50, 50, 50, 255)
Environment.FogStartDistance = 1000

FogColor

안개의 컬러에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.FogEnable = true
Environment.FogDensity = 1
Environment.FogHeightFalloff = 2
Environment.FogColor = Color.new(50, 50, 50, 255)
Environment.FogStartDistance = 1000

FogStartDistance

안개의 시작 거리에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.FogEnable = true
Environment.FogDensity = 1
Environment.FogHeightFalloff = 2
Environment.FogColor = Color.new(50, 50, 50, 255)
Environment.FogStartDistance = 1000

UseDefaultAmbient

기본 Ambient 사용 여부에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseDefaultAmbient = false
Environment.AmbientLight = Color.new(0, 255, 0, 255)

AmbientLight

Ambient 컬러에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseDefaultAmbient = false
Environment.AmbientLight = Color.new(0, 255, 0, 255)

AmbientLightChar

AmbientLightChar 컬러에요.

-- 샘플 --

local Environment = Workspace.Environment

wait(3)
Environment.UseDefaultAmbient = false
Environment.AmbientLightChar = Color.new(0, 255, 0, 255)

Last updated