Complex sentence: Kermit then poses as a famous playwright, having the rats insert a caricature picture at Sardi's restaurant but when the rats are exposed, the plan fails.
Split into simpler sentences: Kermit then poses as a famous playwright, having the rats insert a caricature picture at Sardi's restaurant. But when the rats are exposed, the plan fails.