Learn
Motor Sınıfı
Smoke

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Devralınan Üyeler
Kod Örnekleri
Tüm Ateşe Duman Ekle
local function recurseForFire(object)
-- Dumanı olmayan bir Ateş nesnesi bulup bulmadığımızı kontrol et
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- Bu ateş için bir duman etkisi oluştur
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
-- Ateş nesneleri için aramaya devam et
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

API Referansı
Özellikler
Color
Paralel oku
Capabilities: Basic
Smoke.Color:Color3
Kod Örnekleri
Tüm Ateşe Duman Ekle
local function recurseForFire(object)
-- Dumanı olmayan bir Ateş nesnesi bulup bulmadığımızı kontrol et
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- Bu ateş için bir duman etkisi oluştur
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
-- Ateş nesneleri için aramaya devam et
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

Enabled
Paralel oku
Capabilities: Basic
Smoke.Enabled:boolean
Kod Örnekleri
Tüm Ateşe Duman Ekle
local function recurseForFire(object)
-- Dumanı olmayan bir Ateş nesnesi bulup bulmadığımızı kontrol et
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- Bu ateş için bir duman etkisi oluştur
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
-- Ateş nesneleri için aramaya devam et
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

LocalTransparencyModifier
Gizli
Çoğaltılmamış
Paralel oku
Capabilities: Basic
Smoke.LocalTransparencyModifier:number

Opacity
Çoğaltılmamış
Paralel oku
Capabilities: Basic
Smoke.Opacity:number
Kod Örnekleri
Tüm Ateşe Duman Ekle
local function recurseForFire(object)
-- Dumanı olmayan bir Ateş nesnesi bulup bulmadığımızı kontrol et
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- Bu ateş için bir duman etkisi oluştur
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
-- Ateş nesneleri için aramaya devam et
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

RiseVelocity
Çoğaltılmamış
Paralel oku
Capabilities: Basic
Smoke.RiseVelocity:number
Kod Örnekleri
Tüm Ateşe Duman Ekle
local function recurseForFire(object)
-- Dumanı olmayan bir Ateş nesnesi bulup bulmadığımızı kontrol et
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- Bu ateş için bir duman etkisi oluştur
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
-- Ateş nesneleri için aramaya devam et
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

Size
Çoğaltılmamış
Paralel oku
Capabilities: Basic
Smoke.Size:number
Kod Örnekleri
Tüm Ateşe Duman Ekle
local function recurseForFire(object)
-- Dumanı olmayan bir Ateş nesnesi bulup bulmadığımızı kontrol et
if object:IsA("Fire") and not object.Parent:FindFirstChildOfClass("Smoke") then
-- Bu ateş için bir duman etkisi oluştur
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
-- Ateş nesneleri için aramaya devam et
for _, child in pairs(object:GetChildren()) do
recurseForFire(child)
end
end
recurseForFire(workspace)

TimeScale
Paralel oku
Capabilities: Basic
Smoke.TimeScale:number

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.