Hello, I was wondering how people make the muffled audio effect. So let's say music is playing, as soon as you go under water as in your cam, your music goes muffled. To give it that realism effect, and to be honest I have no clue how to achieve this.
There are classes in Roblox called sound effects. There are several different types but since you want to have an underwater sound type of effect, you should probably use the FlangeSoundEffect
. Sound effects will apply to the audio they are parented to. For example, if you have a sound called audio
you could do this:
local soundEffect = Instance.new("FlangeSoundEffect") soundEffect.Depth = 0.6 soundEffect.Mix = 0.9 soundEffect.Rate = 8 soundEffect.Parent = audio
You can read more about these sound effects here:
http://wiki.roblox.com/index.php?title=API:Class/SoundEffect http://wiki.roblox.com/index.php?title=API:Class/FlangeSoundEffect