Need help with music range

So, how can i make a sound that will get lower on each distance the player are?

2 Likes

Sound.RollOffMaxDistance and Sound.RollOffMinDistance

2 Likes

You can parent a sound to a part and play around with the Sound.RollOffMaxDistance and Sound.RollOffMinDistance properties.

You can find documentation here:
https://developer.roblox.com/en-us/api-reference/property/Sound/RollOffMaxDistance
https://developer.roblox.com/en-us/api-reference/property/Sound/RollOffMinDistance

It’s a little tricky so if you need any help, I’d be happy to help.

2 Likes

It’s the same, the sounds doesn’t goes lower even im far like 150 studs away from it :skull:

1 Like

Can you provide a repro file so I can take a look and give you a hand?

Also, within how many sound do you want the music to begin fading out?

1 Like

Uh, it’s gun’s fire sounds, Is there anyways to make it lower when you’re too far away from it?

1 Like

Weird, @Marinist had the solution

1 Like

well you can try using the magnitude method in scripts and check every player individually how far there are to make the quiet effect more effective

1 Like

It didn’t works for me, the sounds still doesn’t goes lower when i’m far away from it

1 Like

you can try this: Music System

3 Likes