Answer:
You are right, but you have to behave yourself.
Step-by-step explanation:
A compound sentence consists of two independent clauses joined by a coordinating conjunction (e.g., and, but, or).
In this sentence, "You are right" and "you have to behave yourself" are two independent clauses joined by the coordinating conjunction "but."
Hope this helps!