Hello I’m trying to make something different with my storage, and I would like to save data with a table.
The table example I want to save.
local TableToSave = { ["Data1"] = 123; ["Data2"] = "Blox" }
2 Likes
Can you please provide more information on what you’re trying to do? It is unclear what your problem is.
Are you attempting to save a table in a datastore?
If this is the case then you can simply use yourDatastore:SetAsync(TableToSave)
. The table will be automatically converted to a JSON string. You won’t have to worry about converting the table unless it’s somehow using over 260,000(?) characters and you need to compress it.
3 Likes
You’ll want to learn about DataStores which is used to save the Players data.
Here is a good start! https://www.robloxdev.com/articles/Saving-Player-Data
3 Likes
Thanks guys
2 Likes
You’re welcome! Don’t forget to mark someone as the solution
2 Likes