Table Looping not working?

The script is running andf it does print but string.find doesnt seem to work? No errors and it is in a local script

local Months = {
		"January",
		"February",
		"March",
		"April",
		"May",
		"June",
		"July",
		"August",
		"September",
		"October",
		"November",
		"December",
	}
	
	for i,v in pairs(Months) do
		if string.find(script.Parent.Text,v) then
			
			MonthInName = true
		else
			
			MonthInName = false
			end
	end

Remember to put a break after MonthInName = true, as the code continues and re-sets it to false even after checking a correct item! Try this:

local Months = {
		"January",
		"February",
		"March",
		"April",
		"May",
		"June",
		"July",
		"August",
		"September",
		"October",
		"November",
		"December",
	}
	
	for i,v in pairs(Months) do
		if string.find("October",v) then
			
			MonthInName = true
			break
		else
			
			MonthInName = false
			end
	end
	print(MonthInName)