for q,B in pairs(scroll:GetChildren())do if B.ClassName=="\084\101\120\116\066\117\116\116\111\110"then B.MouseButton1Click:Connect(function()local q=event:InvokeServer("\046",B.Tool.Value)frame.Visible=false frame.Search.Text=""if q then player.Character.Humanoid:UnequipTools()player.Character.Humanoid:EquipTool(q)end end)end end
--Button Event
for _, b in pairs(scroll:GetChildren()) do
	if b.ClassName == "TextButton" then
		b.MouseButton1Click:Connect(function()
			local result = event:InvokeServer(".", b.Tool.Value)
			frame.Visible = false
			frame.Search.Text = ""
			if result then
				player.Character.Humanoid:UnequipTools()
				player.Character.Humanoid:EquipTool(result)
			end
		end)
	end
end
