✓ Accepted answer
The attempt you made is pretty close already. What you're missing is an event that'll fire each time script.Parent.Parent changes, so that the script checks it every time.
For that we'll do the following:
script.Parent.Parent.Changed:connect(function()
if script.Parent.Parent.Visible == true then
if #text >= 1 then
for i = 1, #text do
script.Parent.Text = string.sub(text, 1, i)
wait(0.01)
end
end
end
end)
Hope that helps. If it doesn't, feel free to ask further questions in the comments to this.
4 comments
That works though? Put it in an event so it runs each time it fires.
Nothing is working ¯_(?)_/¯
string.len(text) over #text possibly?
try putting it in a while loop? make sure to have a wait in it so it doesn't crash studio ¯_(++)/¯