How do i make a reporter that reports all variables names

I made a topic about this a while ago. Here's the solution.