How to get animation icon in a script

well, i’m not sure if this would work but you could probably do something similar: