So, I’m currently trying to make an inventory system. And whenever the player picks up an item it fires a remote event with the item name that they picked up. But I’m not sure how to use table.find() for it! I’ve also tried to use for i,v in pairs but that also didn’t work.
Here’s the script:
replicated_storage = game:GetService("ReplicatedStorage")
items = require(script.Parent.ItemData)
local newitem = table.find(items,item)
if newitem then