I am trying to make text labels move down when they get added and move up when they are sold but without making the on at the top go to far, here are my codes i tried doing:
When adding to inventory:
for i,j in pairs(inv:GetChildren()) do
if j.ClassName == "TextLabel" then
j.Position = UDim2.new(0, 0,0, (50 * #inv:GetChildren()))
end
end
When being sold and deleted from inventory:
for i,v in pairs(inv:GetChildren()) do
if v.ClassName == "TextLabel" then
v.Position = UDim2.new(0, 0,0, (50 * #inv:GetChildren()))
end
end

2 comments
I am having trouble with removing it from the frame
An easy way is to insert the TextLabel and name it the same as everything else that corresponds to your item. You can then remove it based on the name. A better, but more complicated way is to use a nested array that contains all of the information you need to refer back to that label.