Currently, I have a sound system in my game. However, since I have multiple songs for multiple areas and people will always spawn in one certain area, I have to put a line to stop every song so that two songs don't play at the same time.
Currently, my music script works like this:
function onTouched(hit)
script.Parent.Parent.PalaceM:stop()
script.Parent.Parent.CastleM:stop()
script.Parent.Parent.InnM:stop()
script.Parent.Parent.GrassM:stop()
script.Parent.Parent.CastleM:play()
end
script.Parent.Touched:connect(onTouched)
Is there any way I could simply make any music end upon death?

4 comments
is this a localscript?
No
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Died
edited the script. it works for me. and i added debounce because everytime i touched the brick, it kept making the sound, but i was testing it with a short 1 second audio. so this might not affect you as much