The goal of this script is to get all items in an folder, and then get all the slots in a gui (Slots are frames with textlabels in then) and change the TextLabel of the slots accordingly with the items in the folder, but it does not. I get no errors and no output.
Inv = script.Parent.Parent.Parent.Parent:WaitForChild("Inventory")
parent = script.Parent
LastSlot = 0
while wait() do
for i,inventory in pairs(Inv:GetChildren()) do
if inventory.ForSale == false then
LastSlot = LastSlot + 1
s = parent:FindFistChild("Slot"..LastSlot)
s.TextLabel.Text = inventory.Name
end
end
end

2 comments
inventory.ForSale.Value, maybe?
'FindFistChild'