Getting error. Anyone can help with that? Here a script
local object = game.ReplicatedStorage.Items
script.Parent.Parent.Inventory.MouseButton1Down:connect(function(control)
for i, child in pairs(object:GetChildren()) do
for i, child1 in pairs(child:GetChildren()) do
local itemid = child1:FindFirstChild("ItemId") --added quotes to name
if itemid then
warn(itemid.Value)
end
end
end
end)

1 comment
Try getting in the habit of good formatting.. Use Tab. Can you please edit and show the error?