Indoors and Outdoors Ambience

This is something I have been trying to figure out this for weeks, and it’s called “Indoors and Outdoors Ambience” also known as “InternalSound” It’s a thing where if a sound is playing and you go indoors it will sound quieter and when you go outdoors it sounds louder.

here’s an example

Do you have any advice on how you can help me? I really want to do this to add more realism to my game


There is 2 options I can think of for you, either 1. You can use region3 in buildings and detect when the player is indoors or 2. use a RayCast to see if there is a part / roof above the players head, depending on your game.