SoundGroup

Show Deprecated

A SoundGroup is used to manage the volume and effects on multiple Sounds at once. Every sound in the sound group will have its volume adjusted by the group's Volume property which acts as a multiplier, meaning a Sound with volume 0.5 assigned to a SoundGroup with a volume of 0.5 will have an effective volume of 0.25.

If the SoundGroup has any SoundEffects as children, those effects will be applied to all of the Sounds in the group.

Note that a Sound must be added to a SoundGroup by setting its SoundGroup property, not by simply parenting the Sound to the SoundGroup. A Sound can only belong to one SoundGroup at a time, although you can nest groups as outlined here.

See Sound Groups for further details on working with the SoundGroup class.

Properties

Volume

Read Parallel

The volume multiplier applied to Sounds which belong to the SoundGroup. Value can range from 0 to 10.

Code Samples

SoundGroups

local SoundService = game:GetService("SoundService")
-- create a sound group
local soundGroup = Instance.new("SoundGroup")
soundGroup.Parent = SoundService
-- create a sound
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://9120386436"
sound.Looped = true
sound.PlaybackSpeed = 2
sound.SoundGroup = soundGroup
sound.Parent = workspace
-- play the sound
sound:Play()
task.wait(10)
-- change the volume
soundGroup.Volume = 0.1
task.wait(3)
-- return the volume
soundGroup.Volume = 0.5
task.wait(4)
-- add a sound effect
local reverb = Instance.new("ReverbSoundEffect")
reverb.Parent = soundGroup

Methods

Events