Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to not make the music restart after a player dies?

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

0

Is this a script inside of the player's character? If it is move it into starterplayerscripts/startercharacterscripts/ not the players character

0

Is this inside a screengui ? If yes, turn off reset on spawn property (in the gui (the white and blue icon))

0

I have this script inside the starter gui. Not a screen Gui.

0

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.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.