for i, v in pairs(script.Parent.Parent.Inventory.Frame:GetChildren()) do
print("ITEM: "..Item)
print("V.NAME: "..v.Name)
if v.Name == Item then
print("hI")
break
else
print("no")
end
end
Even when v.Name and Item is the same, it still says "no". By the way, it is a local script.

4 comments
What is 'Item'?
Item is just a number that is 5, and the children of the frame that the loops goes trough are 1, 2, 3 ,4 ,5,6 and 7.
what are the frame names and are they even printing "no"?
Is Item the number 5 or the string "5"