How do I disable a typewriting GUI when its finished being presented?
Long story short, I can't figure out how to get rid of the GUI when the typewriting is done being presented to the player.
My attempt to disable it is ,"local Parent.Enabled = false" but the . has the syntax error line under it.
01 | local TextLabel = script.Parent:WaitForChild( "Main" ):WaitForChild( "Text" ) |
05 | local function typewrite(object,text,length) |
06 | for i = 1 , #text, 1 do |
07 | object.Text = string.sub(text, 1 ,i) |
12 | typewrite(TextLabel, "Welcome to Car Factory Tycoon!" , 0.02 ) |
14 | typewrite(TextLabel, "Claim a Tycoon to begin!" , 0.05 ) |
17 | local Parent.Enabled = false |