Eggman, either. He performs three in total; one to teleport the artificial emeralds, one to trap Eggman within them, and one to teleport them off to space before he and his fellow Resistance ...
Eggman will then trap Sonic between two walls that are coming together. Before they collide, use Wall Jump to go from wall-to-wall while also dodging the ice that is sent down the middle.