学ぶ
エンジンクラス
Smoke

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。


概要
継承されたメンバー
コードサンプル
すべての火に煙を追加
local function recurseForFire(object)
-- 煙がないFireオブジェクトが見つかったか確認する
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- この火のために煙のエフェクトを作成する
local smoke = Instance.new("Smoke")
smoke.Color = Color3.new(0, 0, 0)
smoke.Opacity = 0.15
smoke.RiseVelocity = 4
smoke.Size = object.Size / 4
smoke.Parent = object.Parent
end
-- Fireオブジェクトの検索を続ける
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

APIリファレンス
プロパティ
Color
並列読み取り
機能: Basic
Smoke.Color:Color3
コードサンプル
すべての火に煙を追加
local function recurseForFire(object)
-- 煙がないFireオブジェクトが見つかったか確認する
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- この火のために煙のエフェクトを作成する
local smoke = Instance.new("Smoke")
smoke.Color = Color3.new(0, 0, 0)
smoke.Opacity = 0.15
smoke.RiseVelocity = 4
smoke.Size = object.Size / 4
smoke.Parent = object.Parent
end
-- Fireオブジェクトの検索を続ける
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

Enabled
並列読み取り
機能: Basic
Smoke.Enabled:boolean
コードサンプル
すべての火に煙を追加
local function recurseForFire(object)
-- 煙がないFireオブジェクトが見つかったか確認する
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- この火のために煙のエフェクトを作成する
local smoke = Instance.new("Smoke")
smoke.Color = Color3.new(0, 0, 0)
smoke.Opacity = 0.15
smoke.RiseVelocity = 4
smoke.Size = object.Size / 4
smoke.Parent = object.Parent
end
-- Fireオブジェクトの検索を続ける
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

LocalTransparencyModifier
非表示
複製されていません
並列読み取り
機能: Basic
Smoke.LocalTransparencyModifier:number

Opacity
複製されていません
並列読み取り
機能: Basic
Smoke.Opacity:number
コードサンプル
すべての火に煙を追加
local function recurseForFire(object)
-- 煙がないFireオブジェクトが見つかったか確認する
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- この火のために煙のエフェクトを作成する
local smoke = Instance.new("Smoke")
smoke.Color = Color3.new(0, 0, 0)
smoke.Opacity = 0.15
smoke.RiseVelocity = 4
smoke.Size = object.Size / 4
smoke.Parent = object.Parent
end
-- Fireオブジェクトの検索を続ける
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

RiseVelocity
複製されていません
並列読み取り
機能: Basic
Smoke.RiseVelocity:number
コードサンプル
すべての火に煙を追加
local function recurseForFire(object)
-- 煙がないFireオブジェクトが見つかったか確認する
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- この火のために煙のエフェクトを作成する
local smoke = Instance.new("Smoke")
smoke.Color = Color3.new(0, 0, 0)
smoke.Opacity = 0.15
smoke.RiseVelocity = 4
smoke.Size = object.Size / 4
smoke.Parent = object.Parent
end
-- Fireオブジェクトの検索を続ける
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

Size
複製されていません
並列読み取り
機能: Basic
Smoke.Size:number
コードサンプル
すべての火に煙を追加
local function recurseForFire(object)
-- 煙がないFireオブジェクトが見つかったか確認する
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- この火のために煙のエフェクトを作成する
local smoke = Instance.new("Smoke")
smoke.Color = Color3.new(0, 0, 0)
smoke.Opacity = 0.15
smoke.RiseVelocity = 4
smoke.Size = object.Size / 4
smoke.Parent = object.Parent
end
-- Fireオブジェクトの検索を続ける
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

TimeScale
並列読み取り
機能: Basic
Smoke.TimeScale:number

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。