YOU SAID:
I broke my foot riding my bike
INTO JAPANESE
自転車に乗って足を骨折した
BACK INTO ENGLISH
I broke my leg while riding a bicycle
INTO JAPANESE
自転車に乗っていて足を骨折した
BACK INTO ENGLISH
I broke my leg while riding a bicycle
You've done this before, haven't you.