You’ve done pretty well, your code should work perfectly fine. If you want, you can use this tutorial to make yourself better at OOP:
Or you can use my easy-to-use module to create classes and objects without knowing complicated things about metatables: Class++ | Classes and OOP made easy and powerful with Access Specifiers, function overloading and more!
1 Like