Is there a better way to connect input for multiple buttons in an Inventory environment?

Hey all.
I’m working on an Inventory system with a friend, but while writing this code (The mouse connects at the bottom), I’m not sure if the way I did it is good. This might seem like a dumb question, but is there a better way to do this?

local invAdded = invItemsF.ChildAdded:Connect(function(child)
	local itemID = child.Name
	local itemRarity = child.Value
	local itemDiscriminator = child:GetAttribute("discriminator")
	local itemWeight = child:GetAttribute("weight")
	print("Item ID: "..itemID )
	print("Item rarity: "..itemRarity)
	print("Item discriminator: "..itemDiscriminator)
	print("Item weight: "..itemWeight)
	table.insert(invItems,child)
	local t = itemTemplate:Clone()
	t.itemTag.Text = itemID
	t.rarityTag.Text = itemRarity
	t.discriminator.Value = itemDiscriminator
	t.itemID.Value = itemID
	t.Parent = itemContent
	totalWeight += itemWeight
	titleBar.inner.weight.weight.Text = totalWeight.." kg"
	
	t.iconFrame.MouseButton1Down:Connect(function()
		t.iconFrame.Visible = true
		
		t.iconFrame.Primary.MouseButton1Down:Connect(function()
			-- Use/Eat/Recharge (If a tool)
		end)
		t.iconFrame.Secondary.MouseButton1Down:Connect(function()
                      -- Drop
		end)
		t.iconFrame.Thirdary.MouseButton1Down:Connect(function()
                         - Combine
		end)
	end)
end)