rbx-audio-spatial
Skill0 starsChanged 3 months agoMITView on GitHub
3D positioned sound done right — where a Sound's parent decides its emission shape, which RollOffMode and distances fit each source, and how to fake occlusion on a platform that has none. Use when the user says "3D sound", "positional audio", "footsteps", "make the machine hum", "muffle it indoors", or when a sound is audible across the whole map, plays at full volume everywhere, or comes from nowhere. Do not use for choosing which action gets a sound — load rbx-audio-feedback-map — or for overall volume balance — load rbx-audio-mixing instead.
In this repository253 other files it gives its agents.
- rbx-abtestSkill
- rbx-accessibilitySkill
- rbx-analytics-eventsSkill
- rbx-analytics-funnelsSkill
- rbx-analytics-readingSkill
- rbx-animationSkill
- rbx-anim-cutscenesSkill
- rbx-anim-npcSkill
- rbx-anim-proceduralSkill
- rbx-anim-rigsSkill
- rbx-anim-tweenSkill
- rbx-architectureSkill
- rbx-assets-audioSkill
- rbx-assets-id-policySkill
- rbx-assets-sanitizeSkill
- rbx-assetsSkill
- rbx-assets-toolboxSkill
- rbx-assets-webSkill
- rbx-audio-feedback-mapSkill
- rbx-audio-mixingSkill
- rbx-audio-musicSkill
- rbx-audio-sfxSkill
- rbx-audioSkill
- rbx-badges-groupsSkill
- rbx-build-compositionSkill
- rbx-build-detailingSkill
- rbx-build-greyboxSkill
- rbx-buildingSkill
- rbx-build-interiorsSkill
- rbx-build-kitbashSkill
- rbx-build-landscapeSkill
- rbx-build-propsSkill
- rbx-build-scaleSkill
- rbx-build-structuresSkill
- rbx-camera-controllersSkill
- rbx-camera-cutsceneSkill
- rbx-camera-shakeSkill
- rbx-chat-moderationSkill
- rbx-ciSkill
- rbx-combat-abilitiesSkill
- rbx-combat-hitregSkill
- rbx-combat-meleeSkill
- rbx-combat-rangedSkill
- rbx-combatSkill
- rbx-combat-statusSkill
- rbx-complianceSkill
- rbx-comprehendSkill
- rbx-controlsSkill
- rbx-data-crossserverSkill
- rbx-data-profilestoreSkill
- rbx-data-recoverySkill
- rbx-data-schemaSkill
- rbx-data-sessionlockSkill
- rbx-dataSkill
- rbx-design-difficultySkill
- rbx-design-loopSkill
- rbx-design-sheetSkill
- rbx-design-socialSkill
- rbx-economy-currenciesSkill
- rbx-economy-gachaSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 58
Co-locate with VFX: Every emitting effect (fire, portal, waterfall) carries its Sound on the same Part/Attachment as its ParticleEmitter.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
rbx-audio-spatial
When to load
Any Sound parented to a world object, footstep/machine/ambience work, complaints that a sound is audible everywhere or nowhere, indoor/outdoor transitions, and any horror or combat game where hearing-as-radar is part of fairness.
Parent decides emission shape
| Sound parent | Emission | Use for |
| Block/sphere/cylinder BasePart | Volumetric — whole surface emits; volume scales with distance AND part size | Zone ambience, rivers, large machines |
| Attachment, MeshPart, TrussPart, WedgePart | Point source | Footsteps, impacts, small props |
| SoundService or a ScreenGui | Global 2D — same everywhere | Music, UI, self-rewards |
The volumetric case is the free trick: one invisible anchored block covering a pond emits "from the water", not from its center. For a point source on a plain Part, parent to an Attachment on it.
Rolloff
RollOffMode = Enum.RollOffMode.InverseTapered is the default choice — inverse near the
source, tapering to actual silence at max distance. Inverse never truly reaches zero;
Linear sounds flat near the source. Set both distances explicitly, in studs:
| Source | RollOffMinDistance (full volume within) | RollOffMaxDistance (silent beyond) |
| Small prop / chest | 5 | 40 |
| Machine / campfire | 8 | 80 |
| Waterfall / zone landmark | 10 | 100–120 |
| Public win celebration | 15 | 150 (deliberately far — nearby players hear others winning) |
The engine default MaxDistance is 10,000 — effectively infinite. Every unset world sound bleeds across the map.
Placement doctrine
- Co-locate with VFX. Every emitting effect (fire, portal, waterfall) carries its Sound on the same Part/Attachment as its ParticleEmitter. Sight/sound source mismatch is a subconscious cheapness marker.
- Directional where it's gameplay. Footsteps, gunshots, and danger loops MUST be positional — players locate threats by ear; making them 2D breaks combat and horror fairness. Self-feedback (your own pickup, your UI) stays 2D.
- Leave Doppler alone. Exaggerated velocity pitch on projectiles reads as cartoon whoosh; when you want a whoosh, play a pitched whoosh SFX manually.
Occlusion tricks
Roblox Sound objects have no native occlusion — walls don't block sound. Fake it by zone:
- Tag interiors with CollectionService; on enter, tween the outdoor Ambience SoundGroup to
~0.3× and set
SoundService.AmbientReverb(or a zoneReverbSoundEffect, DecayTime ~1.5 for rooms, ~3.0 for caves); reverse on exit. Enter/exit uses tagged trigger volumes, not distance polling. - Muffling through a wall: an
EqualizerSoundEffecton the sound with HighGain around −30 reads as "next room over". - The newer AudioEmitter/AudioListener API supports
AudioListener.AudioInteractionGroupand simulated occlusion on emitters — worth it for voice-chat-integrated or acoustics- heavy games; for everything else the zone trick is cheaper and predictable.
Sharp edges
- CRITICAL — World sound with default rolloff: audible at full volume 10,000 studs away, every player hears every chest on the map. Fix: set both rolloff distances on every Sound parented to a world object, no exceptions.
- HIGH — Positional feedback played by the server: arrives late and positioned wrong for the player who caused it. Fix: server fires position + sound name to clients; each client plays locally on a throwaway anchored part (destroyed after ~3s).
- HIGH — Sound parented to a Part that gets destroyed mid-play (debris, dead NPC): the
sound cuts. Fix: reparent the Sound to a temp anchored part at the death position, or
use
PlayOnRemove = truefor the death sound itself. - MEDIUM — Volumetric emission from a giant zone part used for a small prop sound: the whole zone "is" the prop. Fix: point sources go on Attachments.
- MEDIUM — Occlusion faked by distance-polling every frame: drifts on slow devices and costs perf. Fix: tagged trigger volumes fire the transition once.
Load with
rbx-audio-sfx (sourcing and wiring the sounds being positioned), rbx-audio-mixing
(the Ambience group these tricks tween), rbx-vfx-particles (the effects sounds co-locate
with), rbx-platform-streaming (distant parts — and their Sounds — may not exist on the
client yet).
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.

