Is there a way to get every property of an object and print them?

The title mostly explains it.

I don’t wanna list every single property in the script manually just to print it out.

The solution of this post is some stupid API thing that I’m not gonna mess with just to see the properties, but if its the way to go, tell me how to use it please: Get properties of an object

I’m confused on what you want to print. You can try ipairs in which your first param is the object name and the second is the object stringed variable