Slovenes, Croats and Bosnians all speak Serbian. But they broke away from a Serb-dominated Yugoslavia, anyway. Plenty of ethnic Czechs spoke German, but they identified with Czechoslovakia rather than Austria.
People in northern Yugoslavia spoke and wrote their languages in the Western alphabet. In Serbia they speak and write it in Cyrillic alphabet.