an adverb is a part of speech that modifies or qualifies an adjective, a verb, another adverb, a clause, or a sentence; its primary purpose is to provide more details regarding an action by offering information about the manner, place, time, frequency, intensity, certainty, etc. of the action. In this case, luckily modifies the action and hints at a positive outcome, thus providing a sense of relief or comfort.
1. Luckily, the weather held up and the entire event ran smoothly.
2. I luckily managed to get my project done on time.
3. I got to school just in time—luckily I had left earlier than usual.
it’s important to make sure that the sentence does not imply luck as the sole means of success. Remember that luckily cannot be used to describe an action that was taken intentionally. When using luckily, ensure that the context allows for a pleasant ending.