im trying to make an inventory that has items like this
right now it's making Text Labels for each item. i have 3 weapons so far. 2 are the same name
local TB = Instance.new("TextButton")
TB.Parent = new
TB.Position = UDim2.new(0,555,0,0)
TB.BackgroundTransparency = 1
TB.Size = UDim2.new(0,25,0,10)
TB.BackgroundColor3 = Color3.fromRGB(255,255,255)
TB.BorderColor3 = Color3.fromRGB(0,144,211)
TB.BorderSizePixel = 1
TB.ZIndex = 2
TB.Text = "[Send]"
TB.Name = Weapons[i].Name
TB.MouseButton1Down:connect(function(clicked)
local number = 0
if Weapons[i].Name == Weapons[i].Name then
print(#Weapons)
number = number + [item number here]
end

5 comments
nevermind figured it out. thanks
Ill edit the comment so that you can do it with multiple items, OK?
Oh. It's ok. Thank you for marking my answer. This is my first reputation point :)
one other thing. how can i remove the duplicate in the inventory? the same item has 2 labels right now
i asked that question if you can answer https://scriptinghelpers.org/questions/35880/how-to-make-it-where-an-instance-is-only-created-once-if-the-same-child-name