Hi, I am trying to make an upgrade system, I put the player’s upgrades into a table and when I go to upgrade the item I get the error, [attempt to index field ‘?’ (a nil value), anybody know what the problem is? The upgrade table _G.Data[player.Name]["Upgrades"] = { -...
78: attempt to perform arithmetic on local ‘Value’ (a nil value) edit: my script: function K:DetectName(item,name,plr) local P = plr:WaitForChild('leaderstats') local Item = P:FindFirstChild(name) if Item then if item == "Value" then return item.Value elseif item == "Item" ...