get location and get rotation for all components in actor class

Hello

I´m sorry if I´m not giving you the right information, but the way I understood it, you need to do this:
It´s simple, so, probably I got it wrong.