How can I make echo effect only works in tunnels/indoor areas

Hello,I want echo effect only works on tunnel or indoor areas.How can I make this? Thank you in advance to those who will help.

Roblox has a new Audio API which does this automatically, however as with simulating audio like this its very performance intensive.

Alternatively, you can map out the tunnels with CanCollide false parts, and use workspace:GetPartsInPart with overlap params for only the said parts to detect whether reverb should be applied or not.

Alternatively you could use a complicated raycasting system, like in this video.