API 참조
속성
Volume
코드 샘플
사운드 그룹
local SoundService = game:GetService("SoundService")
-- 사운드 그룹 생성
local soundGroup = Instance.new("SoundGroup")
soundGroup.Parent = SoundService
-- 사운드 생성
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://9120386436"
sound.Looped = true
sound.PlaybackSpeed = 2
sound.SoundGroup = soundGroup
sound.Parent = workspace
-- 사운드 재생
sound:Play()
task.wait(10)
-- 볼륨 변경
soundGroup.Volume = 0.1
task.wait(3)
-- 볼륨 복원
soundGroup.Volume = 0.5
task.wait(4)
-- 사운드 효과 추가
local reverb = Instance.new("ReverbSoundEffect")
reverb.Parent = soundGroup