/roblox-skills:roblox-audiofrom roblox-skills
Covers Roblox Audio API (AudioPlayer, AudioEmitter, AudioListener, effects, wires) and classic Sound/SoundGroup for 2D/3D audio, spatial audio, mixing, voice routing, and TTS.
Ships in roblox-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Two systems coexist:
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 to SoundService/UI for 2D;
routed through SoundGroups with SoundEffect children. Fine for simple games and existing code.Don't mix both for the same feature; follow what the project uses.
--!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()
AudioEmitter on the sound's part/attachment; wire AudioPlayer → AudioEmitter.SoundService.ListenerLocation controls the default AudioListener (camera or character);
wire AudioListener → AudioDeviceOutput (done automatically in default setups).AudioEmitter:SetDistanceAttenuation,
the AudioInteractionGroup string property on emitters and listeners scopes who hears what).Sound support is a Studio beta, see below): set
SoundService.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. Set
SoundService.CharacterSoundsUseNewApi so character sounds are simulated too. Quality scales down on weak devices.Sound + acoustic simulation (Studio beta, Nov 2026: File → Beta Features → Sounds Use Wiring):
Sounds are rebuilt as AudioPlayer + AudioEmitter internally, so AcousticSimulationEnabled applies with
no migration; opt individual sounds out with Sound.AcousticSimulationEnabled = false. Every part blocks sound
by default: set AudioCanCollide = false on decoration and invisible walls that muffle unexpectedly, and tune
restyled materials with PhysicalProperties.AudioAbsorption (reverb) and Density (occlusion).--!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 playAt
SoundService:PlayLocalSound(sound) for client-only UI clicks.ContentProvider:PreloadAsync({ sound }) (not everything — slows joins).SoundService.RespectFilteringEnabled = true (default), client-played sounds don't replicate.SoundService.AudioEqualizer, AudioCompressor, AudioReverb, AudioEcho, AudioChorus, AudioDistortion,
AudioFlanger, AudioPitchShifter, AudioTremolo, AudioFilter, AudioLimiter, AudioAnalyzer (read
loudness/spectrum for visualizers).AudioTextToSpeech (artificial voices) and AudioSpeechToText (transcription). AudioTextToSpeech.AutoLocalize
(default true) translates the text into each player's language (11 languages) and picks a matching
voice; set it to false for text that must stay as written (names, chants). Uploaded TTS assets aren't translated.AudioDeviceInput can be wired through effects (radios, walkie-talkies,
proximity) — see the voice chat docs; respect players' voice settings.AudioStreamReader:Read(into) pulls buffers (one per channel) from the wired
input for custom analysis; AudioStreamWriter:Write(buffers) pushes synthesized audio (check Space()
first). Both are thread-safe, so the processing can run in parallel Luau.VideoFrame.SubtitlesChanged(cues) fires when on-screen subtitle cues change (including live streams).roblox-ui (settings menus), roblox-architecture (client vs server), roblox-performance (audio memory).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
23 skills in this plugin
/roblox-analytics-liveopsAnalytics and live ops - AnalyticsService economy/funnel/onboarding/progression/custom events, player segments, experience configs via ConfigService, A/B experiments, badges, experience notifications, timed events, daily rewards, season passes. Use when instrumenting a game, tuning economy or onboarding, running A/B tests or feature flags, or planning live events and re-engagement./roblox-architectureRoblox project structure and client/server model - replication, where code and assets belong (ServerScriptService, ReplicatedStorage, StarterPlayer), RunContext, service/controller bootstrapping, player/character lifecycle, CollectionService components, attributes, streaming-safe client code, library choices. Use when starting a project, deciding where code goes, or fixing replication/streaming bugs./roblox-npx claudepluginhub el4cteo/roblox-skills --plugin roblox-skillsOther plugins' skills for the same job