11:42:05.548 - Players.VECTORGRAPHIC.PlayerGui.ScreenGui.newshop:109: attempt to index global 'items' (a function value)
This is what items is
items={
{"Sword",50,"http://www.roblox.com/asset/?id=32801243",
"Buying this will increase the rate at which you dig by 150 percent. This can be very useful when mining for points."},
{"DarkHeart",1000,"http://www.roblox.com/asset/?id=32801656",
"Buying this will increase the damage that you deal with the swuvle by 150 percent. This can be very useful when sword fighting."},
{"Sniper+",100,"http://www.roblox.com/asset/?id=32801218",
"The top grade sniper reloads 150 percent faster aswell as dealing 150 percent more damage than the normal sniper. This new sniper will replace your old one."},
{"Medkit",100,"http://www.roblox.com/asset/?id=32801669",
"After buying, you will find that you spawn with one medkip. A medkip can be used once, in battle, to fully heal you. Medkips can be very useful when getting away with the enemy flag. i herd u liek medkipz?"},
}
--here is what errors
```lua
sp.Store.InfoBox.Title.Text=items[selected][1]

1 comment
Can you provide what "selected" is? I feel like a lot of code here is missing.