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