-- Lets Give Paper His Own Music
-- i stole this from the paper mario semi port (its reusable so no worries :)))
local replaceNotSoaptunes = {
    FHZ = "NSFHZ",
    HAUNTD = "NSHHZ",
    AGZ = "NSAGZ",
	MP_AIR = "NSAGZ",
    SPEC1 = "NSSPEC",
    SPEC2 = "NSSPEC",
    SPEC3 = "NSSPEC",
    SPEC4 = "NSSPEC",
    SPEC5 = "NSSPEC",
    SPEC6 = "NSSPEC",
    SPEC7 = "NSSPEC",
    SPEC8 = "NSSPEC"
}

addHook("MusicChange", function(old, new)
	if (consoleplayer and consoleplayer.valid)
	if skins[consoleplayer.skin].name == "notsoap"
	or skins[consoleplayer.skin].name == "nottakis"
	or skins[consoleplayer.skin].name == "shampoo"
	or skins[consoleplayer.skin].name == "lotion"
	or skins[consoleplayer.skin].name == "metalsoap"
	or skins[consoleplayer.skin].name == "ssnotsoap"
	or skins[consoleplayer.skin].name == "ssnottakis"
	or skins[consoleplayer.skin].name == "ssnshampoo"
	or skins[consoleplayer.skin].name == "ssnlotion"
		if old ~= new
			local notsoaptunes = replaceNotSoaptunes[new]
			if notsoaptunes
				return S_MusicName() == notsoaptunes or notsoaptunes
			end
		end
	end
end
end)