I’m making a script for a round-based game that plays music in lobby and the minigames. The issue is, when I run stop on the music, it doesn’t stop. I don’t know what’s causing the problem, and I don’t really want to bump an old thread from 7 years ago about my same issue. Help is appreciated!
local LobbyFolder = SoundService.Lobby
local ActionFolder = SoundService.ActionFolder
local LobbyMusic = LobbyFolder:GetChildren()[math.random(#LobbyFolder:GetChildren())]
local ActionMusic = ActionFolder:GetChildren()[math.random(#ActionFolder:GetChildren())]
The Play and stop function are both in a while true do loop, but they also stop playing in the loop.
(I’m playing both lobby and action music)
But the play and stop functions are in the game script, which controls the whole game, meaning I;d probably have to show the whole script, if that’s fine.