Description
Audio is a ZSharp library derived from Revive Engine’s Audio Library. It easy and convenient to play Sound on the fly.
Properties
| Type | Key | Default Value |
|---|---|---|
| No available properties |
Methods
| Return Type | Name |
|---|---|
| Sound | Play (soundName: string) |
| Sound | New (soundName: string) |
| table | Find (pattern: string?) |
Property Descriptions
Method Descriptions
- Plays the specified sound with default values.
- Function returns a Sound.
Examples:
local sound = Audio:Play("Boombox:Stepping Up"); -- Plays the sound;
sound.PlaybackSpeed = 2; -- Change to play the audio at twice the speed.
- Spawns a new sound, similarly to
Audio:Playbut it won’t auto play the sound.
pattern&searchworks the same as List- Returns a table of sound names that
string.matchthepattern.