local function z()local z=searchBox.Text if z~=previousSearchText then previousSearchText=z updateSearchResults(z)end end
-- Function to handle when the search text changes
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
