Hello, so im have a bit of trouyble with my script. my script is supposed to edit a json encoded table.this jsonencoded table is in a value in workspace as shown below:
local HttpService = game:GetService('HttpService')
local decoded = HttpService:JSONDecode(game.Workspace.PLPLPLP.Value)
decoded["Thing"] = 5
print(decoded.Thing) --> 5
end
script.Parent.MouseButton1Down:connect(OnClicked)
btw heres the script encoding the table:
local HttpService = game:GetService("HttpService")
local inventoryString = game.Workspace.PLPLPLP
local Inventory = {
["Thing"] = 1;
}
inventoryString.Value = HttpService:JSONEncode(Inventory)
please feel free to comment if you have any questions