This doesn’t exactly look like a food-safe facility, but I guess the laws are a little more relaxed in whatever country this was shot in. Here’s a 12-mold ice cream cone making machine in action:
While wafer cones like those are molded, the production methods for waffle cones and sugar cones are a bit more involved: