Are you trying to create a type checking variable? The script will think that myloaded and table are two seperate variables. It is the same as making a new line between the two. Add a colon after the myloaded part or just remove the “table” part of the script (or even connect myloaded and table).
local myloaded: table = DataStore:GetAsync(plr.UserId.."ThingsIAdded")
What he says is probably the easier way to do something like this. You can code yourself two functions. One is decoding and one is encoding, to make things easier. If you want an example, say so.