What is this sorcery?


Can anyone explain what this sorcery with the dice at 1:45 is:


I understand that it has something to do with script controllers but for the life of me I can’t seem to create a setup that would make it seem like the object is using separate pivots consistently.
EDIT: Fixed link.