I have a music in my game. If a player dies, the music restarts. Why does that happen and how to stop it? I have a local script inside the started gui which just plays the sound:
game.Workspace.Music:Play()
But so when the player dies, the music restarts. I don't want that to happen.
Please help
Thanks

4 comments
Is this a script inside of the player's character? If it is move it into starterplayerscripts/startercharacterscripts/ not the players character
Is this inside a screengui ? If yes, turn off reset on spawn property (in the gui (the white and blue icon))
I have this script inside the starter gui. Not a screen Gui.
Just put the script inside a ScreenGui and set the property "ResetOnSpawn" to false, it should still work and it won't reset when the player respawns.