I need to save the players loadout for my game, which includes the attachments added for each gun. But theres a problem, it says “cannot store Array in Datastore” when I try to save it.
is there any way I could save big arrays like this?
local loadout = {
["primary"] = "M4a1",
["secondary"] = "G18",
["melee"] = "Machete",
["gadgetone"] = "AmmoBox",
["gadgettwo"] = "nope nothing here",
["explosive"] = "grenades arent done yet",
attachments = {["primary"]={},["secondary"]={}},
--above gets pretty big because it saves for each gun
current = nil;
}
ok yeah you were right. removed current and it worked. Current would have been the current gun that was equipped, and I was just lazy so I didn’t make a entirely new table without “current” lol