Complex sentence: A part of it was just lack of skill, trying to take advantage of my own naivety.
Split into simpler sentences: A part of it was just lack of skill. Trying to take advantage of my own naivety.