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

Local Script to Play Music?

In my new game, I have a Local Script in the StarterGui that Plays an Audio file, Stops it, waits a few minutes, and repeats. However, I've ran into a problem. Since the Local Script is in StarterGui, it is removed from the PlayerGui and reloaded upon the player reseting/dying. This means that the music stops, and resets the playlist, starting again at the first song.

Is there a way to make it so the Local Script is not removed/deleted/replaced when the player respawns?

1 answer

Try disabling "ResetPlayerGuiOnSpawn" in the StarterGui properties

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