Just wondering how I would detect a punctuation, so I can increase the delay. Things like ? ! , . etc.
local Time = 0.05
script.Parent.MouseClick:Connect(function()
if not OnCooldown then
OnCooldown = true
Talking = true
GUI.Enabled = true
Name.Text = script.Parent.Parent.Name
Dialogue.Text = "Test, Testing. Test"
while Talking do
Dialogue.MaxVisibleGraphemes += 1
if Dialogue.MaxVisibleGraphemes == #Dialogue.Text then
Talking = false
task.wait(1)
OnCooldown = false
GUI.Enabled = false
Dialogue.MaxVisibleGraphemes = 0
else
task.wait(Time)
end
end
end
end)