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.

11 comments
this is an server script
im sorry but this does not work
This might be worth a try. Try using only one music id and use this () instead of this{}
still wont work
ok
mmmmmmmmmm
any errors?? in output
assigning 10 values to 1 variable leaves some values unused but in output it says Expected ')' (to close '(' at column 19), got ','
Maybe the issue is that you can't put that many sound id's in a script
Try using only 1 sound id in the script. And let me then know the error code is
theres no errors but the background music wont be removed either