So, I am trying to store the cost of something in a table. But the issue is that the cost will not go up and the error comes up. Here is the script.
cost1 = {80,160,200,210,230,250,300,301,302,303,304,305,306,307,308,309,310,311}
CostChange.OnServerInvoke = function(player)
local cost = player.UpgradeCosts.BackpackUpgrade
local lev = player.backpack.WeightLevel1
lev.Value = lev.Value + 1
cost.Value = cost.Value[#cost1 + 1]
end
Thanks

1 comment
Wow, this is unusual. Maybe you forgot the length operator in your actual script?