Getting all the parts used in an animation when playing it

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want to get all the parts being used in an animation.

  2. What is the issue? There is no function I can find which achieves this.

  3. What solutions have you tried so far? I looked at all the methods of animation tracks, asked chat gpt, and did random stuff hoping it would eventually work.