--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
