Chat Bubble Duplicating

I have an issue where I have a chat bubble duplicating it’s text for just one situation but nothing else. Any suggestions?

	function class:displayText(text)
		if not text then return end
		if not self.lastText then
			self.lastText = text
		else
			if text == self.lastText then
				return
			end
			self.lastText = text
		end
		if self.model:FindFirstChild("Head") then
			game:GetService("Chat"):Chat(self.model.Head, text)
		end
	end