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

0

What is 'Item'?

0

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.

0

what are the frame names and are they even printing "no"?

0

Is Item the number 5 or the string "5"