Hello, I am attempting to make a quest system and I want to store the completed quests for each player in the datastore. How would I do that and how would I set and get the values. Thanks.
COMMUNITY QUESTION
How to store multiple values in a datastore for certain players?
1 answer
This is easy to do!
But you need to know about Tables Here is some info about tables you can check here
So here is what you can do with it
you can make a table and make it loop through every value you can even put a table inside a table
local Save = {"Value 1", "Value 2", "Value 3"}
for i, v in pairs(Save) do
-- Do something for each value
-- example
print(Save[i])
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
