Empty
Empty
Empty
워크스페이스는 게임의 모든 물리적 부품이 존재하는 주요 영역입니다. 여기에는 플레이어가 보고 상호작용할 수 있는 캐릭터, 건물, 도구 및 기타 항목이 포함됩니다.
Empty
Empty
Empty
이 영역은 게임의 '세계' 역할을 하며, 게임을 구성하는 모든 아이템과 환경을 포함합니다. 서버와 플레이어의 컴퓨터(클라이언트)에서 워크스페이스에 있는 객체를 보고 상호작용할 수 있습니다.
Roblox Studio
Empty
Empty
Empty
local workspace = game:GetService("Workspace")
local cube = workspace:FindFirstChild("Cube")
if cube and cube:IsA("Part") then
print("Found the part named 'Cube'")
cube.BrickColor = BrickColor.new("Bright red")
else
print("Part named 'Cube' not found in the workspace or it is not a Part")
end
Roblox Studio