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