local function s()local s=searchTextBox.Text for e,n in next,activeButtons._tasks do if s==""then n.guiButton.Visible=true else local e=stringMatch(s,n.guiButton.Name)n.guiButton.Visible=e end end scrollingFrame.CanvasPosition=Vector2.new(0,0)updateScrollingFrameCanvasSize()end local function e(s)for e,n in ipairs(wearingAssets.assets)do if n.id==s then return true end end return false end
-- should probably search after a delay
local function search()
	local text = searchTextBox.Text
	for _, button in next, activeButtons._tasks do
		if text == "" then
			button.guiButton.Visible = true
		else
			local match = stringMatch(text, button.guiButton.Name)
			button.guiButton.Visible = match
		end
	end
	scrollingFrame.CanvasPosition = Vector2.new(0, 0)
	updateScrollingFrameCanvasSize()
end

local function isWearing(id)
	for i, asset in ipairs(wearingAssets.assets) do
		if asset.id == id then
			return true
		end
	end
	return false
end
