Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how to save an ID with a data store and load it back in?

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.

8 comments

0

Can you post your code / attempt?

0

i only know of how to make the folder but sadly that's all :(

0

Have you looked at using a table?

0

i have never heard of that method

0

could you teach me a bit about it plz

0

Have you looked it up on the wiki ?

0

ye but it doesn't help in my case with what i need it for

0

This isn't a request site like.. can you at least try make a code and upload it?

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.