So I wanted to make an NPC that it's UI appears when you click on it's hair, But it doesn't appear. There are no errors and I'm not sure why it doesn't work!
what i wanted:
Click. The UI appears between milliseconds The text appears
what happened: Click. nothing appears text doesn't emit.
I am experiencing this issue at the Studio.
local dialog = game.Players.StarterGui.walkietalkie.talked
local who = dialog.Parent.who
script.Parent.MouseClick:Connect(function()
for i = 1, 9 do
wait(0.01)
dialog.Transparency = dialog.Transparency - 0.11
who.Transparency = who.Transparency - 0.11
end
wait(5)
dialog.Text = "D"
wait(0.05)
dialog.Text = "Do"
wait(0.05)
dialog.Text = "Do y"
wait(0.05)
dialog.Text = "Do yo"
wait(0.05)
dialog.Text = "Do you"
wait(0.05)
dialog.Text = "Do you k"
wait(0.05)
dialog.Text = "Do you kn"
wait(0.05)
dialog.Text = "Do you kno"
wait(0.05)
dialog.Text = "Do you know"
wait(0.05)
dialog.Text = "Do you know w"
wait(0.05)
dialog.Text = "Do you know wh"
wait(0.05)
dialog.Text = "Do you know wha"
wait(0.05)
dialog.Text = "Do you know what"
wait(0.05)
dialog.Text = "Do you know what t"
wait(0.05)
dialog.Text = "Do you know what th"
wait(0.05)
dialog.Text = "Do you know what thi"
wait(0.05)
dialog.Text = "Do you know what this"
wait(0.05)
dialog.Text = "Do you know what this s"
wait(0.05)
dialog.Text = "Do you know what this sy"
wait(0.05)
dialog.Text = "Do you know what this sym"
wait(0.05)
dialog.Text = "Do you know what this symb"
wait(0.05)
dialog.Text = "Do you know what this symbo"
wait(0.05)
dialog.Text = "Do you know what this symbol"
wait(0.05)
dialog.Text = "Do you know what this symbol i"
wait(0.05)
dialog.Text = "Do you know what this symbol is"
wait(0.05)
dialog.Text = "Do you know what this symbol is?"
end)
Any answers appreciated!
