How would I go about making this?

How would I go about scripting a 4D animated Tesseract similarly to elemental battleground’s illusion ultimate ability?

Illusion

The thing is, I couldn’t find many resources and other devforum posts that really helped, and I am wondering what the best approach towards this is. I would like to know if there is some hacky method to approach this.