function update()local e=0 local Q=frame.Search.Text local L for Z,C in pairs(scroll:GetChildren())do if C.ClassName=="\084\101\120\116\066\117\116\116\111\110"then C.Visible=(C.Text:sub(1,Q:len())):lower()==Q:lower()L=C.AbsoluteSize.Y if C.Visible then e=e+1 end end end local Z=e*L scroll.CanvasSize=UDim2.new(0,0,0,Z)end
--Update Function
function update()
	local count = 0
	local t = frame.Search.Text
	local abssizey
	for _, v in pairs(scroll:GetChildren()) do
		if v.ClassName == "TextButton" then
			v.Visible = v.Text:sub(1, t:len()):lower() == t:lower()
			abssizey = v.AbsoluteSize.Y
			if v.Visible then
				count = count + 1
			end
		end
	end
	local csize = (count * abssizey)
	scroll.CanvasSize = UDim2.new(0, 0, 0, csize)
end
