Motor Sınıfı
SoundGroup
*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
API Referansı
Özellikler
Volume
Kod Örnekleri
Ses Grupları
local SoundService = game:GetService("SoundService")
-- bir ses grubu oluştur
local soundGroup = Instance.new("SoundGroup")
soundGroup.Parent = SoundService
-- bir ses oluştur
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://9120386436"
sound.Looped = true
sound.PlaybackSpeed = 2
sound.SoundGroup = soundGroup
sound.Parent = workspace
-- sesi oynat
sound:Play()
task.wait(10)
-- ses düzeyini değiştir
soundGroup.Volume = 0.1
task.wait(3)
-- ses düzeyini geri döndür
soundGroup.Volume = 0.5
task.wait(4)
-- bir ses efekti ekle
local reverb = Instance.new("ReverbSoundEffect")
reverb.Parent = soundGroup