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
Özellikler
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
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
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)Opacity
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
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
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)