All of this is possible with the power of magnets

Robots inspired by sea cucumbers turn from liquid into solid