Invalid key to 'next'

i did that and it did the same thing.

There might be some other piece of code in your project that is keeping it playing. Not sure, considering in the code you shared, you never show the initial first song being played.

i have checked my code and that part is the only part which is responsible for music playing. would sounds being set to play and loop in studio affect it?

If you mean you are manually setting it in the ‘properties’ panel for the sound, then yes, that might be a problem , because in a running game, usually the properties will not always work with running code.

How and where are you starting the very first sound to play?

the very first sound plays by default from the looped and playing properties in studio.

Not sure then, I would have to make some sounds to try this out.
Sorry I couldnt help more.

Perhaps make a new post with your current problem, “Sound wont stop playing” and maybe someone will know why

Could you try turning it off by default and then using :Play() to start playing it when the player loads in?

already tried that and it just restarted the song