agentleFS
blushneybusiness-glitchblushneybusiness-glitch/roblox-omniskills/skills/rbx-audio-spatial/SKILL.md

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.

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
  1. Distinctive:

    Co-locate with VFX: Every emitting effect (fire, portal, waterfall) carries its Sound on the same Part/Attachment as its ParticleEmitter.

    line 58

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 parentEmissionUse for
Block/sphere/cylinder BasePartVolumetric — whole surface emits; volume scales with distance AND part sizeZone ambience, rivers, large machines
Attachment, MeshPart, TrussPart, WedgePartPoint sourceFootsteps, impacts, small props
SoundService or a ScreenGuiGlobal 2D — same everywhereMusic, 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:

SourceRollOffMinDistance (full volume within)RollOffMaxDistance (silent beyond)
Small prop / chest540
Machine / campfire880
Waterfall / zone landmark10100–120
Public win celebration15150 (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 zone ReverbSoundEffect, 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 EqualizerSoundEffect on the sound with HighGain around −30 reads as "next room over".
  • The newer AudioEmitter/AudioListener API supports AudioListener.AudioInteractionGroup and 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 = true for 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.