Need Help Controlling Sound Hearing Distance

I don’t know where I had to post this, so I’m just going to do so here

How can I correctly control how far a sound can be heard?

RollOffMaxDistance and stuffs is not working for some reason.
There was MaxDistance but that’s deprecated.

I really need help on this, I’m getting frustrated since nothing works.

1 Like

Hello, if I were you I would add in a script that will play the sound from whatever distance until you walk into another audio file sorta like adding one part walking into that it plays a sound then the second part you can either make it not play anything or make it play another audio.

I think that you got it wrong, let me explain it:

So I have a bunker door. It is controlled by a clickdetector on a part.
Inside the clickdetector there is a script with inside a sound.
When the bunker door is opened the sound plays, but it can be heard from miles away which is BAD.

I kinda want it to be like that when you are close to it, that you can then hear it.

Set a range of maybe like 5 to 10

That helped out a bit.

I putted the sound in the part and that already also helps out a lot, I’m going to experimentate a little further. Thank you!

No worries if you need anymore help just ask :smiley:

So I managed to fix it.
I put the sound in a part where I want the hearing range to be perfect.
Then I put the RollOffMode to Linear and RollOffMaxDistance to 30 and RollOffMinimalDistance to 10.

Now it works perfect as I wanted to, thank you @Sameerzz for helping me too on somewhere else where I think that I’m not allowed to talk about on devforum since it begins with a D

2 Likes