#Dynamic Music Region

1 messages · Page 1 of 1 (latest)

real bolt
#

I'm creating a nightclub game and I want to be able to script my music to do the following:

  • Play inside of the nightclub, but be faintly heard outside

  • Slowly fade in/out as you enter or exit the nightclub

While I've heard this is fairly simple for just ONE sound, I have a slight issue. I have a music playlist that I want to implement with this system as opposed to just a single song/queue. It's more than one sound that is connected to a script that randomly shuffles through each song.

mortal badge
#

Create a music system singleton class that has the songs you want stored in a table. It should have functionality to switch songs(playlists too if you want) and when a song is updated or a player is added to the game, send a call via remote event to the player to have it play client side. When the song is called to play client side let the client modify the properties of the sound so if the song changes mid zone transition it still fades in/out smoothly. Make a zone for the night club(can be a big box that’s invisible and can collide off that wraps the whole night club). When the player changes zones it should start to fade out/fade in the song client side.

real bolt
mortal badge