How can I call a function using Animnotify?

Thank you I’ve been searching for this for an hour, I knew there had to be a simple way to do that.