Through a one-way door, or on her own after dark. NYSDEC's approach is to block the opening with a temporary cover when raccoons leave for nightly foraging, then make the seal permanent once you've confirmed nobody is inside. A one-way door over the entry does the same thing without you having to be up on the roof at midnight: she leaves, she can't get back in, and the door comes off once the tracks stop. When there are kits, the job is different: they come out by hand and go with the mother, which is why the timing of the call matters. Once the attic is empty, the opening gets closed with hardware cloth or sheet metal, not foam or wood, and the other soft spots on the roof get checked, because a raccoon that lost one entry looks for another.