Please don’t seek tax advice at a social message board. You’ve asked your question in a brief, single sentence, outside of the context of your own facts and circumstances. Nobody can advise you, responsibly and accurately, in this situation.
Ok…now that I’ve covered the disclaimer, I’ll provide some information (not advice, just information about federal income tax law).
The custodial parent claims a child as his/her dependent. A custodial parent may sign a written declaration—generally on Form 8332—that he/she will not claim the child as a dependent for the tax year. The noncustodial parent, who’s claiming the dependent, attaches a copy of the declaration to his/her return. Form 8332 matters are determined by the terms of the divorce or separation decree. But, the noncustodial parent needs a signed, valid declaration EVERY year to claim the child, regardless of a court order.
Failure to pay child support doesn’t affect who can or can’t claim the child as a dependent. This is federal law that disregards any state or local court ruling that makes claiming (or not claiming) the dependent conditional on payment (or nonpayment) of child support.