How do I lock music to a certain distance and it stops playing if you go further than that distance?
You can do this using RollOffMinDistance (minimum distance until audio starts to fade) and RollOffMaxDistance (basically how far until the music stops).
They are both properties of Sound’s instance which you can change. (Value is measured in studs.)
Okay, yours seems more reliable, but is there a way I can find out the distance without joining the game?
Where in properties do I find out the magnitude?
You know you can just use this right? It’s an actual premade thing from roblox, making a magnitude check is just like remaking this property.
Ok, Ill try it out. Sorry about that.
So then just set the RollOffMinDistance equal to RollOffMaxDistance?
how do i determine how many studs the block is? do i literally have to add the studs texture?
No, it doesn’t.
RollOffMinDistance is where the audio starts to fade, if you set it both equally, it’ll both stop at the same time, but I figured setting it to nil is a better way.
you can see this in the Size
property of the part.
The size is 76.492, 0.853, 53.232, what do I set the music properties to?
Nevermind, changed size to 76.492, 9.263, 53.232
This is very confusing. I have never done this before, and I do not even understand.
I know the size, I don’t know what to set the distances to-
Okay, my question is what do I set the distances to…
The size is 76.492, 9.263, 53.232
Are you trying to make it so like it plays in certain area’s too or just distance?
1 certain area is what I am attempting to do.