* Luck: This is the subject of the sentence.
* Instrument: This is the predicate nominative, which renames the subject "luck."
* Foolishness: This is the object of the preposition "of".
Let me know if you have any other sentences you'd like to analyze!