Hi! So I am making a typewriter script that requires line breaks to make a sort of code writing effect in my game. So, I tried using
and /n and when running the script, you can see that you can see the
and /n being typed out. How can I make line breaks without
or /n or make both of these very unnoticeable?
when you write the newline it is supposed to be \n
and not /n
and the breakline is <br/>
which is confusing but \n
will not be shown as it is automatically converted into the newline character. which I believe is "\x0A"
so when input it detected you can replace the last character with \n
or \x0A
.
For your typewriter effect I recommend making use of the MaxVisibleGraphemes property: TextLabel | Roblox Creator Documentation
By using the above property, it should render new lines instantly without showing the “<br/” or “/” before it’s added onto the string.
This may solve some of your issues, but I can’t be certain because no code was provided.
If you can not use line breaks, I recommend pasting your text into notepad, adding new lines where needed, and then copying that text back into studio.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.