My string value won't update

My string value isn’t working. Any help would be appreciated! Thank you!!

local Order1 = false
local Order2 = false
local Order3 = false

for i, vp in ipairs(script.Parent.ImageLabel:GetChildren()) do
	if vp:IsA("Frame") then
		for t,im in pairs(vp:GetChildren()) do
			if im:IsA("ImageLabel") then
				function _addItem()					
					if Order1 ~= false then

					else
						Order1 = true
						script.Parent.Item1.Value = im:FindFirstChild("TextLabel").Text
						print(im:FindFirstChild("TextLabel").Text)
					end
				end

				im.MouseButton1Click:Connect(function()
					_addItem()
				end)
			end		
		end
	end
end

Could you describe a little more about what you expect to happen?

I’m expecting it to change the value of a string value to whatever button a player clicks.