i am making an inventory with a data store and i need to know how to save a tools ID and then when a player joins back load it back in using the ID of the tool. So my plan is that the ID will be stored inside the folder of a player and when he leaves all the tools that are in his inventory will be save as ID's inside the folder. when he joins back the tools will replicate from the lighting and placed in to the players inventory. I need help with doing that.
First of all, don't replicate from lighting (DON'T KILL ME LINK), much more efficient and logical places to replicate models from such as ServerStorage
or ReplicatedStorage
, but in your case, you need to use ServerStorage
.
Now, this system is good, with simple DataStore usage, you can probably do it. I recommend going here: http://wiki.roblox.com/index.php?title=Data_store to get a (better) understanding for datastores