[Solved]How to fix looping music in a music gui?
This question has been solved by the original poster.
hello, i need help with a looping problem i have with my music im playing through my music gui, the script looks like this:
01 | local button = script.Parent |
04 | game.Workspace.Music.BeforeTheStory:Stop() |
05 | game.Workspace.Music.Checkers:Stop() |
06 | game.Workspace.Music.TheLegendOfDeltarune:Stop() |
07 | game.Workspace.Music.ScarletForest:Stop() |
08 | game.Workspace.Music.BattleAgainstATrueHero:Stop() |
09 | game.Workspace.Music.SnowdinTown:Stop() |
10 | game.Workspace.Music.ASGORE:Stop() |
11 | game.Workspace.Music.AltertaleMegalovania:Stop() |
13 | game.Workspace.Music.BeforeTheStory:Play() |
14 | wait( 88.614999999999994884 ) |
18 | button.MouseButton 1 Click:Connect(onClick) |
each song has a script like this but everytime i click a new songs button after a while a previously played song repeats and overlaps the song i want.
i know that the while true do loop is making the music overlap. anyone have any ways to make this work?