Unexplainable problem with music script

What do you want to achieve?

This is a simple music script which functionality is to play music for the server globally
variables and locations are in order as i checked various times

What is the issue?

The issue is that if i make it a global script and child it to the server script storage it apparently stops running after line 18 but it doesn’t throws any error

What solutions have you tried so far?

I tried making it a local script and made it a child of the StarterPlayerScripts folder:

and it plays the songs except for one little problem, everytime a new player joins, the songs for that player overlap with the current song playing, example: song A plays, if a new player joins during that time, the script works properly, the new player starts hearing the song from the current position which is playing in the server, now song B starts playing and a new player joins, then song B plays normally as intended, but then song A starts playing at the same time for said player locally.

I found a temporary solution which is changing the script’s parent to the StarterCharacterScripts folder, but now it plays locally for all players meaning that all players don’t hear the same song depending on the time they joined to the server, which is not whats intended with the script, the intended behavior of the script is for all the songs to play globally meaning all players hear the same song regardless of the time they joined.

Try moving the audio files to workspace