Usually, in the real estate industry, the buyer will pay the closing costs. Real estate taxes are prorated, with a portion paid by each party, depending on how many months of the year each owned or will own the property.
A sales tax will usually be paid to the state.
The buyer and seller can negotiate who pays the bulk of the closing costs as part of the sales agreement.