roblox-audio
Installation
SKILL.md
Roblox audio
Two systems coexist:
- Audio API (modular, current):
AudioPlayer→Wire→ (AudioEmitter…AudioListener) →Wire→AudioDeviceOutput, with effect objects inserted in the chain. Required for voice-chat processing, mixing graphs, analyzers, text-to-speech/speech-to-text. Sound(classic, still supported): one object, parented to a part for 3D or toSoundService/UI for 2D; routed throughSoundGroups withSoundEffectchildren. Fine for simple games and existing code.
Don't mix both for the same feature; follow what the project uses.
2D audio (music, UI) with the Audio API
--!strict
-- Client: build a music player once.
local SoundService = game:GetService("SoundService")