How to fix Expected 'end' (to close 'do' at line

i have some code for making a textlabel pop up when text changes but it has an issue with a piece of code on line 12, the code works, atleast im 50% sure, but it just tells me that im missing a end somewhere, even though ive added an end to like every part, removed ends, added ends, either they just break the continue or just give the same error

local Transparency = 1

script.Parent:GetPropertyChangedSignal("Text"):Connect(function()
	while wait(0.05) do
		Transparency = Transparency - 0.01
			if Transparency <= 0 then
				while wait(0.05) do
				Transparency = Transparency + 0.01
			end
		end
		break
		continue if script.Parent:GetPropertyChangedSignal("Text") then -- Expected 'end' (to close 'do' at line 4), got 'continue'; did you forget to close 'do' at line 7?
			print("next day")
		end
	end
end)

while wait(0.01) do
	script.Parent.TextTransparency = Transparency
end

You have an extra continue, and code after your break. The code after your break will never run, which is why the code editor thinks you messed up somewhere. I don’t understand what your code is trying to do.

i want the loop to continue when the text changes again