function playstr(msg, text)
for i = 1, string.len(msg) do
text = string.sub(msg, 1, i)
wait()
end
end
playstr("Hi!", ScreenGui.Frame.TextLabel.Text)
This function is supposed to make a message play one character at a time when called, like so:
H
Hi
Hi!
However, when the function is called, the script seems to skip over the function entirely. For example, the script I have plays a message, waits for 2 seconds, then disappears. The script doesn't change any text, but still waits 2 seconds and removes the message. There are no notes in output. What's wrong with it?
