Hello again scripthelpers, I need help with a script. I want the script to stop playing the sound if another sound is playing. Below is the script.
local bossmusic = {"rbxassetid://10807342692", "rbxassetid://10190830363", "rbxassetid://10807390747", "rbxassetid://10807415968", "rbxassetid://10807433758", "rbxassetid://10807466976", "rbxassetid://10807487309", "rbxassetid://10807521947", "rbxassetid://10807581238", "rbxassetid://10807613596"} if bossmusic == bossmusic.Playing or bossmusic:Playing() then music1212:Destroy() end
music1212 is the background music, the music i wanna get rid of if bossmusic is playing. bossmusic is music for the bosses. if bossmusic is playing then the background music should be removed.
MMM Try
music1212:stop()
See if that works, also what type of script are you using??
you use sound.IsPlaying
, like this:
if bossmusic.IsPlaying == true then music1212:Stop() end