How can I play music during team selection?

Hello, I am wondering on how I can make music play during team selection. What I am saying is that how Schwifty Studios’s Mad City has music during their team selection. I have tried inserting sounds into the GUI but it would still play.

try making it like when a player is still selecting a team, a sound will play like

Sound:Play()

and once the player is done with team selection just stop the sound like

Sound:Stop()

@ScriptLocalize but how would I do that basically? Like what do I do to insert the music?

here

No, how would I make the music play during team selection? Like where would I put it when the player selects a team. Like once the player selects the team, then the music stops playing.

try making ScreenGui and in the screen ui add Sound and try something like this:

local Sound = SoundObj -- The Sound.
local Button = Button -- button thats gonna be used.. you can add more.
local Button2 = ButtonB -- yea.

spawn(function()
    Sound:Play()
    
    Button.MouseButton1Click:Connect(function()
        Sound:Stop()
    end)
    
    Button2.MouseButton1Click:Connect(function()
        Sound:Stop()
    end)
end)
1 Like