What depends on what religion is usual for the respective Slavic ethnic groups?
The Orthodox use the Cyrillic alphabet and the Roman Catholics use Latin alphabet, the Bosniaks who are Muslims also use the Latin.