local function A()local A=searchBox.Text if A~=previousSearchText then previousSearchText=A updateSearchResults(A)end end

local function onSearchTextChanged()
	local searchText = searchBox.Text

	-- Check if the search text has actually changed
	if searchText ~= previousSearchText then
		previousSearchText = searchText
		updateSearchResults(searchText)
	end
end
