Meet Snapbot: a modular robot with a body that houses a microcontroller and battery for untethered operation. The legs are attached to the body via magnetic mechanical couplings. A smart algorithm is used to enable Snapbot to move in various configuration with one to 6 legs.
With different combinations of legs, Snapbot can be configured into 700 forms. The robot crawls when it doesn’t have enough legs. Disney has shared more info about the robot here.