A part that plays music locally when the player enters, and ends when they exit.
How to use:
1. Drag the model into the workspace
2. Expand it in the explorer to find the Sound object
3. Change the so
...
und's ID to whatever audio you want to play
4. Resize and adjust transparency
Notes:
- You can resize the part to whatever size you'd like, but make sure you don't change the actual shape of the part (the script uses a very basic custom collision method that relies on the shape of the part being a rectangular prism, this is because BP's Touched events are completely broken)
- The script checks if a player is within the bounds every second. This can be adjusted in the MusicScript by changing the loop in line 22 (see https://docs.brickplanet.com/class/LocalScript.html for all of your options)
Enjoy
Read more