Hi, I have been trying to find out how to check if a value in a table exists
I have tried
if Upgrades[upgradeName][amountBought]["Cost"] then
which didn’t seem to work, it will just bring up this error
ServerScriptService.MainModule:51: attempt to index field '?' (a nil value)
any suggestions on how to fix the issue?