How to make a sound, make other sounds quieter?

I am making a Boombox for my Roblox game, but I want it to only play from a certain range. And in that range I want the normal music in SoundService to have a low volume, so you can’t hear it and only hear the Boombox until you get out of the range. How would I do that?

This is a bit tricky. Only time I’ve ever seen this was in the Roblox Documentation all the way back in 2019.


I did a little bit of hunting and bumped into the Sound Objects section of the Roblox Documentation. Give it a shot and it’ll surely have what you need! Hope it helps! Give me a touch if it doesn’t, and I’ll try my best to help ya. :wink:

1 Like

sound objects have a couple properties for this purpose - RollOffMaxDistance, RollOffMinDistance and RollOffMode which are the maximum distance, in studs, a client’s listener can be from the Sound origin and still hear it, the minimum distance, in studs, at which a Sound will begin to attenuate (decrease in volume) and how they attenuate.
Best way to learn how they work is to just experiment imo
You can find the documentation here.

As for making the default sound quiet, perchance place a large part (with no collisions) to create the radius (same size as RollOffMaxDistance) and using the CFrame Magnitude property decide that while the players root part is within that radius, to locally mute the default sound.
That’s just the way I would attempt to go about it, I’m sure there’s better ways but I’m only familiar with basic audio use (as above)

1 Like