How can I save all descendants of a folder?

Not gonna read ya code properly, however if the primary problemo is that the data isn’t saving, and there are no warnings or errors in the console, please checc that the Studio Access to API Services config is enabled.

Second of all, DataStores save tables, not singular types. Ya can’t save UserData types either.
Here’s an example for saving booleans in a Roblox Datastore, using DatastoreService

I haven’t actually used DataStoreService from experience before, I’d recommend ProfileService, a session locking promoting wrapper by @loleris

local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetDataStore("DataStore Name")
local Success, Response = pcall(function()
    DataStore:Set("Key", {
        ... -- Example: Egg = true
    })
end)
1 Like