How do I fix this music region script for my terrain map?

So, I’m using this music region script found here:

The problem is I am using terrain and it isn’t working perfectly, for instance when I jump in and out of the water the music keeps replaying, and it doesn’t always work perfectly (I believe it’s because my map is terrain), also when the player is dead the music is supposed to do a specific sound of it going off slowly, but it doesn’t always work. What could I do to fix the script so that it works perfectly with my terrain map?

P.S. Please explain thoroughly I’m not a good scripter!

You might want to ask @RuizuKun_Dev for that, because they are the creator of the open-source module.

2 Likes