In doubles, every serve goes from the right half of the server's side to the right half of the receiver's side, which is a diagonal. A ball that lands in the left half is a fault.
Both players of a pair serve in turn. A player cannot serve out of order.
The order of play is: the server, the receiver, the server's partner, and then the receiver's partner. The order then repeats.
If a player hits the ball out of this order, the opponents get the point.
Partners must hit the ball in turn, so they have to move out of each other's way.
Each time the serve changes, the previous receiver becomes the server. The partner of the previous server becomes the receiver.
After every 2 points the serve changes. The order of players in each pair stays the same for the whole game.
A and B play against X and Y. A serves to X. X returns to B. B hits to Y. Y hits to A. Then the order repeats.