Original: After that, he tried to sell the script with the intention of playing the lead role.
Simplified: After that, he tried to sell the script with the intent of playing the lead role.