roblox-audio
Skill92 starsChanged 47 days agoMITView on GitHub
Sound and music - the Audio API (AudioPlayer, AudioEmitter, AudioListener, AudioDeviceOutput, Wire, effects, faders), classic Sound/SoundGroup, 2D vs 3D audio, music and SFX volume, client vs server playback, asset permissions, streaming caveats, voice routing, text-to-speech. Use when adding music, sound effects, spatial audio, mixing, or fixing sounds that don't play.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- TabooHarmony/roblox-braintheir own version, first seen Sep 23, 2026
- nonlooped/roblox-suitetheir own version, first seen Sep 19, 2026
- szlay/roblox-basetheir own version, first seen Jul 24, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- TabooHarmony/roblox-brain★ 150same name
- nonlooped/roblox-suite★ 25same name
- szlay/roblox-base★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- roblox-analytics-liveopsSkill
- roblox-architectureSkill
- roblox-characters-animationSkill
- roblox-code-reviewSkill
- roblox-data-storesSkill
- roblox-game-systemsSkill
- roblox-inputSkill
- roblox-luauSkill
- roblox-monetizationSkill
- roblox-networkingSkill
- roblox-npc-aiSkill
- roblox-open-cloudSkill
- roblox-performanceSkill
- roblox-physicsSkill
- roblox-securitySkill
- roblox-studio-mcpSkill
- roblox-teleport-matchmakingSkill
- roblox-testingSkill
- roblox-text-chatSkill
- roblox-toolingSkill
- roblox-uiSkill
- roblox-world-buildingSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Don't mix both for the same feature.
- Very specific: line 52
Put an AudioEmitter on the sound's part/attachment.
- Distinctive: line 104
Use audio you own, uploaded to the same owner (user/group) as the experience, or Creator Store audio marked free-to-use.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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")
local player = Instance.new("AudioPlayer")
player.Name = "Music"
player.Asset = "rbxassetid://1843463175" -- AudioPlayer.AssetId is deprecated; use Asset
player.Looping = true
player.Volume = 0.5
player.Parent = SoundService
local fader = Instance.new("AudioFader") -- one place to control music volume (settings menu)
fader.Name = "MusicVolume"
fader.Parent = SoundService
local output = Instance.new("AudioDeviceOutput")
output.Parent = SoundService
local function wire(source: Instance, target: Instance)
local w = Instance.new("Wire")
w.SourceInstance = source
w.TargetInstance = target
w.Parent = target
end
wire(player, fader)
wire(fader, output)
player:Play()3D audio with the Audio API
- Put an
AudioEmitteron the sound's part/attachment; wireAudioPlayer → AudioEmitter. - Listening:
SoundService.ListenerLocationcontrols the defaultAudioListener(camera or character); wireAudioListener → AudioDeviceOutput(done automatically in default setups). - Distance falloff and directionality are set on the emitter/listener (
AudioEmitter:SetDistanceAttenuation, theAudioInteractionGroupstring property on emitters and listeners scopes who hears what). - Acoustic simulation (fully released; Audio API only, not
Soundyet): setSoundService.AcousticSimulationEnabled = true(in Studio) and 3D audio is muffled by walls, bends around corners, and reverbs in rooms. Per part:BasePart.AudioCanCollide(false = doesn't block sound); thicker and denser parts muffle more. Per emitter/listener:AcousticSimulationEnabled. SetSoundService.CharacterSoundsUseNewApiso character sounds are simulated too. Quality scales down on weak devices.
Classic Sound quick reference
--!strict
local SoundService = game:GetService("SoundService")
local sfxGroup = Instance.new("SoundGroup")
sfxGroup.Name = "SFX"
sfxGroup.Volume = 0.8
sfxGroup.Parent = SoundService
local function playAt(part: BasePart, soundId: string)
local sound = Instance.new("Sound")
sound.SoundId = soundId
sound.SoundGroup = sfxGroup
sound.RollOffMaxDistance = 80
sound.Parent = part -- 3D: plays from the part; parent to SoundService/UI for 2D
sound:Play()
sound.Ended:Once(function()
sound:Destroy()
end)
end
return playAtSoundService:PlayLocalSound(sound)for client-only UI clicks.- Preload critical sounds:
ContentProvider:PreloadAsync({ sound })(not everything — slows joins). - Pool frequently played sounds instead of creating one per shot.
Where to play
- Sounds started on the client are heard only by that client (UI, local feedback, music tracks the player chose). Sounds started on the server replicate to everyone (use sparingly; prefer a remote telling clients to play locally, which also lets each client apply its own volume settings).
- With
SoundService.RespectFilteringEnabled = true(default), client-played sounds don't replicate. - Streaming: a sound or emitter in a part that streams out stops. Keep ambient audio in persistent
models or
SoundService.
Assets and permissions
- Use audio you own, uploaded to the same owner (user/group) as the experience, or Creator Store audio marked free-to-use. Private audio from other creators won't play unless shared with your experience (asset permissions). Check the Output for "failed to load" / permission errors.
- Uploads are auto-classified as sound effects or songs; eligible songs can show on the game page.
Extras
- Effects:
AudioEqualizer,AudioCompressor,AudioReverb,AudioEcho,AudioChorus,AudioDistortion,AudioFlanger,AudioPitchShifter,AudioTremolo,AudioFilter,AudioLimiter,AudioAnalyzer(read loudness/spectrum for visualizers). AudioTextToSpeech(artificial voices) andAudioSpeechToText(transcription).AudioTextToSpeech.AutoLocalize(defaulttrue) translates the text into each player's language (11 languages) and picks a matching voice; set it tofalsefor text that must stay as written (names, chants). Uploaded TTS assets aren't translated.- Voice chat: each player's
AudioDeviceInputcan be wired through effects (radios, walkie-talkies, proximity) — see the voice chat docs; respect players' voice settings. - Give players separate Music/SFX volume sliders (faders or SoundGroups) and a mute option.
Related skills
roblox-ui (settings menus), roblox-architecture (client vs server), roblox-performance (audio memory).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

