I once had a squirrel that tried to chew its way through my roof. This was after I'd had the hole repaired that it ate into there previously... through a 2 x 4. I mixed powdered cayenne with oil and painted it onto the part it was gnawing, and that worked.