Can you save handmade classes in data store?

Can you actually save a class inside of a datastore?
With it’s functions and stuff.

Technically it is the table, innit?

You can save tables to datastores, but functions and metatables will not save. You would need a system to tell what type of object it is so you can reinitialize it in a new server. What do you need this for?

1 Like

My game will have a system with custom loot generation, aka weapons will drop with different stats. I used OOP to make weapons, but I already realised two things:

  1. It can’t be stored in original datastore.
  2. I’m using a Firebase connector instead of the original datastore, it won’t save there too.
    I’ll just save the different stats to my firebase, thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.