music to an object

Hello,

i am making a game with a little easter egg. I have a dj hiding in an alley that makes music. i want to know how to make it so that you can only hear the music if your close to him?

Doketrkat

Okay. One way to do this, would be to use a trigger.

As your character enters the alley and hits, the trigger/sensor, located
anywhere close to the Dj, the Dj’s music starts to play and can be heard by you.

But if you leave the area and hit another trigger, the volume of the
music decreases and then cannot be heard. Or, hitting that trigger would
cause the music to stop playing.

Triggers are kinda like on and off switches. :smile: