Workspace
Workspace : WorldRoot
Overview
Workspace๋ ๊ฒ์ ์ธ๊ณ์์ ์ค์๊ฐ์ผ๋ก ๋ ๋๋ง๋๊ณ ์ํธ์์ฉํด์ผ ํ๋ ์์๋ค์ ๋ณด๊ดํ๋ ํต์ฌ ์ปจํ ์ด๋์ ๋๋ค.
์ฌ๊ธฐ์ ๋ฐฐ์น๋ ๊ฐ์ฒด๋ค์ ์ฆ์ ํ์ฑํ๋์ด ๊ฒ์์ ๋ฐ์๋๋ฉฐ, BasePart๋ Anchored ์์ฑ์ ๋ฐ๋ผ ๋ฌผ๋ฆฌ ์์ง์ ์ํฅ์ ๋ฐ๊ณ , BillboardGui, PointLight, ParticleEmitter ๋ฑ ์๊ฐ ํจ๊ณผ ์์๋ค์ ๋ถ์ฐฉ๋ ์์น์์ ํ๋ฉด์ ํ์๋ฉ๋๋ค.
๋จ, ParticleEmitter, BillboardGui, PointLight ๋ฑ ํน์ ๊ฐ์ฒด์ ์ข ์๋์ด์ผ ํ๋ ์์๋ค์ด Workspace์ ์ง์ ๋ฐฐ์น๋๋ฉด, ๊ธฐ๋ณธ ์์น์ธ (0, 0, 0)์ ์ถ๋ ฅ๋๋ฏ๋ก ์ฃผ์ํด์ผ ํฉ๋๋ค.
์ด์์ฒ๋ผ ๊ฒ์ ํ๋ ์ด ์ค ํน์ ์์ ์๋ง ๋ฑ์ฅํด์ผ ํ๋ ๊ฐ์ฒด๋ Workspace ์ธ๋ถ์์ ๋ฏธ๋ฆฌ ๊ด๋ฆฌํ๋ ๊ฒ์ด ์ผ๋ฐ์ ์ด๋ฉฐ, ๋ชฉ์ ์ ๋ฐ๋ผ ReplicatedStorage๋ ServerStorage์ ๋ณด๊ดํ ์ ์์ต๋๋ค.
Properties
CurrentCamera
Camera
๋ก์ปฌ ํ๋ ์ด์ด์๊ฒ ์ค์ ๋ ํ์ฌ ์นด๋ฉ๋ผ ๊ฐ์ฒด์ ๋๋ค.
Code Samples
local Workspace = game:GetService("Workspace")
local CurrentCamera = Workspace.CurrentCamera
print(CurrentCamera)
Gravity
number
๊ฒ์ ์ธ๊ณ์ ์ค๋ ฅ์ ์ด๋น ์ ๊ณฑ ๋ฏธํฐ ๋จ์๋ก ์ค์ ํ๋ ์์ฑ์ ๋๋ค.
๊ฐ์ด ๋ฎ์์๋ก ์ฝํ ์ค๋ ฅ์ด ์ ์ฉ๋๋ฉฐ, ๊ฐ์ด ๋์์๋ก ๊ฐํ ์ค๋ ฅ์ด ์ ์ฉ๋ฉ๋๋ค.
Code Samples
local Workspace = game:GetService("Workspace")
Workspace.Gravity = 10000
MaxSlopeAngle
number
์บ๋ฆญํฐ๊ฐ ์ค๋ฅผ ์ ์๋ ์ต๋ ๊ฒฝ์ฌ๋ฉด์ ๊ฐ๋๋ฅผ ์ค์ ํ๋ ์์ฑ์ ๋๋ค.
์ด ์์ฑ์ ๋์ ์ผ๋ก๋ ๋ณ๊ฒฝํ ์ ์์ผ๋ฉฐ, ์คํ๋์ค์์ Game Settings ์ฐฝ์์ World ํญ์ผ๋ก ์ด๋ํ ํ, Max Slope Angle ํญ๋ชฉ์ ํตํด ์ค์ ํ ์ ์์ต๋๋ค.
Code Samples
HitboxType
Enum.HitboxType
์บ๋ฆญํฐ์ ํผ๊ฒฉ ํ์ ๋จ์๋ฅผ ์ค์ ํ๋ ์์ฑ์ ๋๋ค.
์ด ์์ฑ์ ๋์ ์ผ๋ก๋ ๋ณ๊ฒฝํ ์ ์์ต๋๋ค.
Code Samples
Methods
GetServerTimeNow
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Parameters
Return
number
Code Samples
Events
Last updated