Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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.

0
Can you post your code / attempt? User#5423 17 — 7y
0
i only know of how to make the folder but sadly that's all :( Vlad_DraculaTV -2 — 7y
0
Have you looked at using a table? User#5423 17 — 7y
0
i have never heard of that method Vlad_DraculaTV -2 — 7y
View all comments (4 more)
0
could you teach me a bit about it plz Vlad_DraculaTV -2 — 7y
0
Have you looked it up on the wiki ? User#5423 17 — 7y
0
ye but it doesn't help in my case with what i need it for Vlad_DraculaTV -2 — 7y
0
This isn't a request site like.. can you at least try make a code and upload it? Foreshadowed_Dawn 4 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

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

Ad

Answer this question