0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Roblox10秒シリーズ】Part と Model のちがい(最小実装)

Posted at

🔹 10秒で Part を実装(プリミティブ)

上部メニュー → パーツ → ブロック(または球/円柱/くさび)

そのまま Workspace に作られる(名前は 「TestPartHogeHoge」 にしています)

image.png

コマンドで確認

workspace.TestPartHogeHoge.Transparency = 0.5   -- 直接いじれる

image.png

🔹 10秒で Model を実装(プリミティブ)

エクスプローラで Workspace を右クリック → 新しいModel

Modelの中にPartを2つ(例:土台と乗せるもの)

image.png

image.png

コマンドで確認

-- Model自体には透明度プロパティがない → 中の Part をいじる
for _,d in ipairs(workspace.TestModelHoge:GetDescendants()) do
	if d:IsA("BasePart") then
		d.Transparency = 0.5
		d.CanCollide = false
	end
end

image.png

まとめ

Partは“本体”なのでそのまま Transparency をいじることができる。
Modelは“入れ物”なので子のPartをいじる。

⚙️ 次回は、この「Model」を使って**アノマリー制御(異変の出現切替)**を作ります!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?