I made a shop with module scripts where it has the values brought for each weapon inside the module scripts, and I want to be able to save it.
The problem is I can’t find any where how I can save a module script that has tables.
I have checked datastore page on developer hub, I looked for it on youtube cant find it. Now I HAVE heard I can try http JSONEncode, but I think there is a better way of saving instead of using Http service.
Heres the module below.
local module = {
classic = {
Name = "Classic Sword",
brought = true
},
Ice = {
Name = "Ice Sword",
brought = false
},
EightBitSword = {
Name = "8-Bit Sword",
brought = false
},
Default_Knife = {
Name = "Default Knife",
brought = false
},
Kings = {
Name = "Kings Knife",
brought = false
},
Golden_Knife = {
Name = "Golden Knife",
brought = false
},
Gods_Sword = {
Name = "Gods Sword",
brought = false
},
Black = {
Name = "Black Matter Knife",
brought = false
},
Universe = {
Name = "Universe Knife",
brought = false
},
Atom = {
Name = "Atomic Knife",
brought = false
},
Atomic = {
Name = "Atomic Sword",
brought = false
},
Nature = {
Name = "Nature Sword",
brought = false
},
Setrex = {
Name = "Setrex Sword",
brought = false
}
}
return module