NPC Chat Problem

Hello, Recently im trying to figure out why my Npc Chat won’t replay the text.

function Write(object,Text,Time)
    object.Text = " "
for i = 1,#Text,1 do
	object.Text = string.sub(Text,1,i)
	wait(Time)
   end
end
script.Parent.Changed:Connect(function()
	if script.Parent.Visible == true then
		Write(script.Parent.NPCCHAT,"Hello, Welcome to my Store, I Sell Cool Items, Would you like to buy Some?",0)
		wait(1)
		script.Parent.Yesbutton.Visible = true
		script.Parent.NoButton.Visible = true
	end
end)