Hello, I'm trying to access this dictionary through a remote event, wondering why it's producing , 'attempt to index local 'item' a nil value
---LOCALSCRIPT---
script.Parent.MouseEnter:Connect(function()
local item = game.ReplicatedStorage.Remotes.FindItem:FireServer(script.Parent.Name)
desc.Text = item[3]
atk.Text = item[1]
def = item[2]
end)
--- SCRIPT---
ITEMS = {
["Basic Sword"] = {1,20,0,"The basic sword, almost too basic...",3,"none"} ,
["Basic Shield"] = {1,0,15,"Well it's a shield... so yea",3,"none"} ,
["The Essence"] = {100,150000,50000,"The essence of the creator, spread through the deepest levels of the dungeon.",500,"Essence"} ,
}
game.ReplicatedStorage.Remotes.FindItem.OnServerEvent:Connect(function(plr,name)
return ITEMS[name]
end)
