Hi, Izzat Hannah,
I have read this in a website :
When the order of “when I was a student” and the rest of the sentence is reversed, using “would” is not appropriate because it would likely be misunderstood as the conditional:
correct I used to go to a lot of parties when I was a student.
unnatural I would go to a lot of parties when I was a student.
And I have also read this in another website:
'BUT I would always be shy when I met new people when I was a young boy. (In this case 'would always' is describing a repeated action – meeting new people)"
Is there a contradiction?
The answer to this question would take me back to a very old thread in which I was lucky enough to participate. You can find the answer to your question in the last comment by our late moderator 'Rachel'. Here's the link:
https://thegrammarexchange.inf.../topic/used-to-would
Rachel says:
"Let's amend the part: "'would' to refer to a past habitual situation does not appear at the beginning of a sentence or a dialog or a narration."
Not true. It certainly can if the past context is already clear.
- Before the days of television, families would gather in front of a radio to listen to the news.
- Henry would often steal money from his classmates when no one was looking.
My little kitten would always hide under something until I came home. Then she would jump on me with full force, almost knocking me over."
Also, see Rachel's reply here:
https://thegrammarexchange.inf...opic/used-to-would-3
____________________________________________________________________________________
IMHO, in an exam, using 'would' this way is not incorrect, but sometimes it may make some sentences sound awkward, so it is better to settle the time frame in the past first.