im trying to make a song that plays only in the lobby area and when you go out of range you can’t hear it, but when i try to do this it won’t work. I set the max rolloff distance to 100 and it doesn’t do anything and is the same volume everywhere. all the tutorials I’ve found have a bunch of code but i just want it all to be contained in the sound itself so that I don’t need any unnecisary code.
do you have the sound parented to a part?
if not then it will play everywhere
If you can, show your script so that we can find where the problem come from.
I cannot see what you want to achieve, so I provide 2 solutions.
- Use 3D audio (https://create.roblox.com/docs/ja-jp/tutorials/use-case-tutorials/audio/add-3D-audio)
- Prepare a part covering the whole lobby (transparency = 1, cancollide = false) and play the music while player is touching the part.
The difference between them is that the volume depends on where player is in 1, while the volume is steady in 2.
that was my problem, I had it parented to a model and switching it to parent to a part fixed the problem.