hello so im kinda new at table i need help adding a + value on table
local Table = {
["food"] = 4
}
local Result = game:GetService("HttpService"):JSONEncode(Table)
game.Players.PlayerAdded:Connect(function(Player)
local FoodTableTest = Instance.new("StringValue", Player)
FoodTableTest.Value = Result
FoodTableTest.Name = "Food"
end)
workspace.Buy.ClickDetector.MouseClick:Connect(function(Player)
-- when player clicks it supposed to add +1 value on table = food
end)