So I have a table with multilevels of data, I'm trying to access the data in this table but it's giving me an this error.
14:16:11.859 - Players.Player1.PlayerGui.Screen.Main.Control:89: attempt to concatenate field '?' (a nil value) 14:16:11.860 - Stack Begin 14:16:11.860 - Script 'Players.Player1.PlayerGui.Screen.Main.Control', Line 89 14:16:11.860 - Stack End 14:17:58.465 - Auto-Saving...
Heres my table:
Upgrades = {
Cursor = {
ImageID = 12312414,
Name = "Cursor",
Cost = 15,
CPS = .1
}
}
And heres my code accessing the table
for i, v in pairs(Upgrades) do
local upgrade = game.ReplicatedStorage.Upgrade:Clone()
upgrade.Parent = gui.Main.Upgrades
--upgrade.Position = UDim2.new(0, 0, 0, (i - 1) * 75)
upgrade.ImageLabel.Image = "http://www.roblox.com/Asset?ID="..v[1] --this is line 89 right here
upgrade.UpgradeName.Value = v[2]
upgrade.Upgrades.Value = 0
upgrade.UpgradeCost.Value = v[3]
UpdateUpgrades()
end
TL;DR: How do I access data in a multileveled table?
