Why isn't the text being put in the textlabel in a typewriter effect?
Asked by
5 years ago Edited 5 years ago
(This is a repost, don't worry I deleted the original post)
1 | local text = script.Parent.Text |
2 | local status = script.Parent.StatusValue.Value |
5 | for i = 1 , string.len(status) do |
6 | text = string.sub(status, 1 , i) |
Hello there, my problem is that the text isn't even appearing and the text that was originally there stays there. I've tried fixing this, and yet it isn't working and I have no idea as of why it isn't. I mean, I've gotten to the point of changing the status variable to camelCase cause I have no idea.
This is a script (I've tried changing it to a local script and it hasn't worked either) in a text label named "TextStatus" which also has a string value named "StatusValue" which will hold the status (text) that is supposed to be in the text variable in "TextStatus"
Thank you for reading this,
Narwhal
EDIT: I'm new to this "for i = 1, string.len(status) do" stuff, also "for i,v in pairs do" (sorry if I said it wrong), type stuff. also thanks for help RiskoZoSlovenska!
'