Scientists have created robots that can shift between liquid and solid states.They flow like water to move through spaces and harden like steel for strength.