Im trying to make a dialogue system in Roblox studio, and I want to be able to add custom functions in strings. It would be used in a typewriter style script, and I want to be able to add pauses in the middle of strings using custom functions. For example “Hello,<pause = “2”> what’s your name?” (script would pause typing after hello for two seconds and then continue typing.
I believe you can’t, so you’d have to add pauses manually.
you can check the string if it has pause-x
and then check how much letters it took until that pause phrase and then do string:gsub(string, pause-x, “”) and show the text without it, (ofc add an x wait when the amount of letters was reached)
1 Like