Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is it possible to locally change the volume of specific sounds?

I'm making a flashbang, and I have everything down, but I want to know if it's possible to make all ambient noise low so that it's more disorienting. The flashbang audio is in a Gui, so is there any way that I could decrease the volume of the ambient sound without decreasing the volume of the flashbang ring?

2 comments

0

Explain it better please!

0

Yay! TurboFusion's Guns V.4!!!!

1 answer

Option 1

SoundService.RolloffScale

If you temporarily increased that number and the ambient sounds have some distance between themselves and the player, it might give you the effect you want.

Option 2

In a LocalScript, detect/find all sounds (except the one(s) you wish to ignore) and scale their Volume properties accordingly.

Or combine them:

You might use Option 1 for the majority of sounds and Option 2 for humanoid-animation-related sounds (like walking/jumping), since those sounds probably will not be influenced by the RolloffScale (being very close to the player).

Also consider experimenting with different ReverbTypes (a property of the SoundService).

2 comments

0

For option 1, will changing the RolloffScale value affect the volume of the sound in the Gui?

0

I'd guess not, but I haven't experimented with it

This discussion is preserved as it was. New answers, comments, and votes are closed.