Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

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

Asked by 9 years ago

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?

0
Explain it better please! EzraNehemiah_TF2 3552 — 9y
0
Yay! TurboFusion's Guns V.4!!!! woodengop 1134 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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).

0
For option 1, will changing the RolloffScale value affect the volume of the sound in the Gui? TurboFusion 1821 — 9y
0
I'd guess not, but I haven't experimented with it chess123mate 5873 — 9y
Ad

Answer this question