Playing Sounds from a folder with a Server Script Plays it Server Wide

Typically, I place sounds in parts and play them from the respective part. However, I’ve just finished a script for my blade that plays a variety of 4 swing sounds at random from a folder within the handle of the tool. Since these sounds are within a folder, it plays them server wide and the roll off distances/volumes aren’t considered. Why is this? The sheath/draw sound are also played from the handle, outside of the folder and respect roll off distances.

Unfortunately that is just how Sound objects behave.

You can either clone the random sound into the Handle or use the new Audio API (New Audio API [Beta]: Elevate Sound and Voice in Your Experiences), which will take more work to understand and setup, so I’d recommend sticking to the former.

For roll of distance to work, it has to be parented to a part. The only thing I can think of is either cloning and parenting to a part, or creating a part containing all the sounds and select from that instead of a folder.