Sending metatables between server and client

Hello,
I am trying to make a game and i am handling player data through module script. And i am creating items with metatables and all the items are stored in a module scripts, so when i want to give a player and item like if they kill a NPC i copy the metatable to the inventory table. But this is all stored in server scripts and i have another module script in the player, which is there data, and i have tried to send the player the data through many methods, such as remote functions, remote events, and many more. But i always get a error or i lose data when doing it. I’m not sure if this is clear or not, but could somebody please help me.

See “Parameter Limitations”.

2 Likes

What you can do is, have something that also creates the items in the client, from the server you just send the items’ types or names or whatever, and create the same amount of objects with the same sent type/name in the client.

I think i will try that. Thanks

1 Like