[Figured out] How do I make it when person's camera goes underwater it will play a certain sound? (Cleint)

So I have no clue on how to do this, but it has been done before in “Robloxian Waterpark”, basically when your camera is underwater (Not part but actual water from terrain editor) it will play like a sound (underwater sounds which I already have)

I have never worked with stuff like camera, anyways, if anyone can help me out please send a reply down below.

I tried searching up on youtube but I have found no tutorials for it, that’s why i’m asking here if anyone is able to help me out.

I believe you can raycast from previous camera position to next camera position and enable water collision in the raycast parameters and then check if the ray hits water

You can use region3s set to the water cells to check if your camera is in water then apply the ambiance