String.sub Help

Hey there. I am practicing using every function on Roblox Studio and and I am stuck on string.sub. I know what it does but I don’t understand the description of it. Just practicing with a simple TextLabel and I can’t make it work. Any tips you have I can use? If so, thanks. If not, thanks for reading.

1 Like

What don’t part of the description don’t you get it? Here you go, this might help:

4 Likes

You can use it for a Typewritter Effect

local Text = “Welcome to Roblox”

for Letter = 1, #Text do
(Object).Text = string.sub(Text, 1, Letter)
wait(0.1)
end

3 Likes