In other languages like Java and Python, you can make classes for all sorts of things. You would have to put functions and a constructor. Is there a way to do this in Lua?
Yes. Lua allows for relatively diverse OOP construction.
Here’s some threads I found using the search feature.