How to save a folder with many values inside (Unsolved, i need help)

Hello, Im new on the forum and may ask many questions, thanks for your support.

so i made a game and want to save everything inside a specific folder.
Inside the folder are many values and other folder.

Please correct this one and make it so simple as possible, thank you!

local RSfolder = game.ReplicatedStorage.DataFolder
RSfolder:GetChildren():SaveIt()
1 Like

You can’t “SaveIt()”. At this point just call “BePro()” on yourself.

1 Like

Your attempt at making a saving system is odd. Do you know what IntelliSense is in the script editor?

Anyways, if you want to make one, you can try by looping through the folder and getting the values. Here is something basic:

local Values = {}

for _, value in ipairs(RSFolder:GetChildren()) do
  table.insert(Values, value.Value)
end 

local SaveSuccess = xpcall(function()
  YourDatastore:SetAsync([key], Values)
end, function(err)
  warn(err)
end)

Learn about datastores!!!
Data Stores | Documentation - Roblox Creator Hub

1 Like