What gets wax out of carpet?

Put a brown paper lunch bag or a similar material on top of the wax, then use a hot clothing iron on the paper. The heat melts the wax, and the paper absorbs it.