S.F.
Hi
The only way I know is newsprint paper and an iron. Lay paper over area and using [an old iron on a synthetic setting] go over area. It should melt the wax an absorb most of the crayon. Otherwise trim the carpet? This has worked for candle wax as well.
good luck
S.