Skip to content

Sound

The Sound library was created to allow for more immersive 3D audio, featuring spatial support and background adjustment.
This library is deprecated.


Variables

  • Generated: number that represents the amount of sounds generated through the library
  • Cache: reference to the folder used to store sound data

Functions

Metatable(Asset | Sound, Value | number, Value2 | number, Value3 | number) (CLIENT)

Returns a modified table with a metatable to return intensity, volume, distance, absolute volume and the object for the specified sound.

CreateRaw(Id: string/number, Intensity | number: 1, Volume | number: 1, PlaybackSpeed | number: 1, MaxDistance | number: math.huge, Looped | bool: false)

Generates and returns a new spatial sound.

RemoveWhenDone(Asset | Sound) (CLIENT)

Loads the sound and removes it as soon as it finishes playing.

Setup(Asset | Sound, Parent | Instance)

Sets up an existing Sound object to work with the Sound library.

Create(Table | table)

Generates and returns a new spatial sound from the specified table.

local NewSound = Sound:Create({
    Id = 5549306353,
    Intensity = 1,
    Volume = 1,
    PlaybackSpeed = 1,
    MaxDistance = 250,
    Looped = true,
    Parent = workspace.Part
})
Back to top