How do I make it so it pauses on a specific symbol in a textlabel?

Hi I’m currently making a visual novel game, and obviously, it would have a lot of dialogues.

But I’ve come across an issue when I was making the game, the dialogues are difficult to read because of roblox’s text scaling (which I don’t think can be fixed : / ) and no pausing in between a sentence.

I wanted to see if there is a way to make it so that there would be a pause in between symbols like “,” “.” “:” “?” “!” so that it would allow both me and the player to read easier.

this is one of the dialogue system I’ve used:

local function narrate1(object, text)
	for i = 1, #text do
		object.Text = string.sub(text,1,i)
		wait(0.035)
		sound:Play()
	end
end

which in turn would look like this:
narration example

thank you!

1 Like

local Symbols = {",", ".", ":"}

local function narrate1(object, text)
	for i = 1, #text do
		object.Text = string.sub(text,1,i)
		
		for i, symbol in pairs(Symbols) do
			if string.sub(text, i, i):match(symbol) then
				task.wait(1)
			else
				task.wait(.035)
			end
		end
		sound:Play()
	end
end
4 Likes

thank you so much for the help! : D

1 Like