Answer:
Ouch! Use a bread knife or spoon and scrape away as much of the wax as possible. The more you can physically remove this way, the less risk of permanently staining the carpet. Then place several layers of paper towels over the spill and apply a warm iron to it. The iron will melt the wax and the towels will soak up the melted wax. You will go through a lot of paper towels! Be careful not to let the carpet overheat and allow the iron to melt the fibers.