E.B.
I recently had nailpolish on my carpet (entire bottle of RED) and also permanent marker (blue) on the carpet and both of them came out by using water to soak the area and then hairspray sprayed generously all over before scrubbing. It was a MIRACLE! Maybe this will work for crayon too?