Complex sentence: The first attempt to subdue him fails, but a second attempt is made with Kirk masquerading as a gypsy so he can follow Spock without being seen.
Split into simpler sentences: The first attempt to subdue him fails. A second attempt is made, with Kirk masquerading as a gypsy, so he can follow Spock without being seen.