Classes vs basic modules

Using classes creates a new table which surely uses up memory, right? so wouldnt it be more optimized to instead of, creating a new class everytime i want to use some functions, i just use a module script normally

All data takes up memory. Variables, booleans and instances e.t.c. also take up memory. It’s not limited to OOP.

Using OOP isn’t the most optimised, sure, but the difference between OOP and normal programming in terms of memory usage is minimal(unless you have a TON of objects).

OOP is just a way to organise scripts, and keep everything clean, it is also easier to work with rather than normal scripts in my opinion.

So it’s completely up to you to decide if you’re going to use OOP, because it will barely make a dent in your memory unless you have a ton of objects.

I say use a normal module script if you want consistent behaviour, but if you need something more unique and custom use OOP. But in the end you decide what to use.

You’re not supposed to create a new class each time, you are supposed to create an object each time, the class is just the blueprint for objects. But the object is the actual thing.