I made a script to play music in the background of my game, and when a round starts, change the sound. But, it runs off of the status string value (the status value is what controls the bar at the top that shows players "Intermission", etc.) I feel like there is a more efficient way to do this. Also, how could I make a sort of playlist that plays a random song instead of just the one? Heres my script:
while true do
game.Workspace.Wind:Stop()
game.Workspace.BGM:Play()
repeat wait (1) until game.ReplicatedStorage.Status.Value == "Start!"
game.Workspace.BGM:Stop()
game.Workspace.Wind:Play()
repeat wait (1) until game.ReplicatedStorage.Status.Value == "Intermission" or game.ReplicatedStorage.Status.Value == "Waiting For More Players..."
end

4 comments
Thank you for that! Also, could you answer the other part of my question: How could I make a sort of looping playlist, and every time that a song ends it plays a random song from that playlist?
i might be able to answer seperatley
newstring will be the property that changed, so this won't work
no, newtring will be the value. Learn what your saying before you attempt to correct others who actually know what they are doing.