. What do you want to achieve? I want to have A typewriter effect In a Text Table when A Player First looks at it.
What is the issue? The Text already writes itself before the UI is visible. To see what I mean click the Yellow circle in the middle of the screen to see that the it has already started and finished. The Game is here.
What solutions have you tried so far? I have tried using A few different methods or scripts to do this. I have also tried to say if the frame is not visible then do not make the text.
if script.Parent.Visible == true then
local text = "If you get this Amazing gamepass ALL Suggestios and Ban Appeals will be seen and answered first!"
for i = 1, #text do
script.Parent.Text = string.sub(text, 1, i)
wait(0.05)
end
end
I also tried changing what had to be visible. Sometimes the script did nto work or yeilded the same result.
A problem might be that this code is not attached to any event. If you wanted to detect when the GUI turns to visible you could do:
script.Parent:GetPropertyChangedSignal("Visible"):Connect(function()
if script.Parent.Visible == true then
for i = 1, #text do
script.Parent.Text = string.sub(text, 1, i)
wait(0.05)
end
end
end)