The Unaspirated Consonants are pronounced differently depending on their position within a word.
ㄹ Initial sound~ r/l- Middle Sound~ -r- Final Sound~ -l
Since Korean words are build in blocks of letters in a pattern per syllable, just try to follow these.
Try to research about Aspirated and Unaspirated Consonants.
When in the beginning of a syllable (like in 사랑) , ㄹ will have a r/l sound. To make this sound, you must put your tongue on the roof of your mouth. It's similar to the R sound in the beginning of spanish words. When in the beginning of a word (like in 라디오) or after a batchim ㄹ (like in 빨리), it will have a L sound.
koreans are weirdos they dont even know their grammar. sounding for ㄹ is different always 1. if the word starts with ㄹit sounds like r 2if final consonant is ㄹ it soung like l 3.if final consonant is ㄹ and then comes vowel it sounds like r 4 if the there is ㅎ after ㄹ ex:"일하다" it sound like "irada" and not "ilhada"
Just think about this. L and R sounds same ㄹ in Korea. That's why Korean kids in 80-90's were suffered while learning English.
For example: I eat rice ; 아이 잇 라이스. I eat lice ; 아이 잇 라이스. They are same 라이스 in Korean! So many English teachers thought Korean children would eat their head lice.
Anyway, in this case rice is more 롸이스. And lice is more 라이스. If you can find the difference about r and l in Korean. Yeah it depends on the vowel