How to make a sound in PlayerGui not reset when you die

So I have a folder with a song that is in StarterGui which will get replicated to the PlayerGui.

Every time you spawn in a LocalScript in the PlayerGui will start playing the song. When you die, however, the song will be reset and will start over. This is because the PlayerGui resets everything when you die unless you have ResetOnSpawn on. You don’t have that on a folder though.

PlayOnRemove had worked on the first death but then on the second death the song started to multiply. There might be a way to work around that but I don’t know how to.

If you could give me a bit of help that would be amazing.

1 Like

Have you tried having it in StarterPlayerScripts instead of PlayerGui?

1 Like

It has to be in a ScreenGui, and set ResetOnSpawn on that ScreenGui to false.