Adjusting volume of a sound when touching / inside a part

Hey,

Trying to make a sound region ish system that will set the volume of a sound to whatever it needs to be for that sound when a player is inside or touches the sound zone. This would need to change locally only. The sound playing is done by the aircraft systems I just need it so it can set the volume so the player that is inside the zone can hear it and those that are outside cannot.

I’ve tried using a touched event, finding the player and doing it that way but doesn’t seem to work. Anyone have any ideas on how to-do this? For reference this is for an aircraft and allowing the change from exterior sounds to interior. Ideally I’d want the scripts & sounds to remain inside the aircraft for ease of use but open to anything at this point.

Thanks

Use ZonePlus, its extremely useful for cases like this

1 Like

With volumetric sounds enabled and zero roll-off distance, you can have a part w/ a sound that’s only audible when a player’s listener (camera by default) is within it. No script needed.

1 Like

Yeah fantastic!

ZonePlus I’m sure is good too but for my use case this is the easiest and does the job.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.