Everytime i try to make a script like
local text = "blah blah blah" for i = 1,#text do game.ReplicatedStorage:WaitForChild("StringValue").Value = string.sub(#text,1,i) wait() end
the value only says a random number, such as "32","35","11", etc..
please help!
When you use "#", Lua reiceves a number, what when we are talking about a table or a string it means it's lenght, so you need to do the same thing whitout the "#" in string.sub's first argument, how like this:
--> made by Convexyz! -- Variables -- str = "blah blah blah"; for i = 1, #str do print(string.sub(str, 1, i)); end