Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Local Script to Play Music?

Asked by 9 years ago

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

Log in to vote
0
Answered by
MaxxHD 10
9 years ago

Try disabling "ResetPlayerGuiOnSpawn" in the StarterGui properties

Ad

Answer this question