Answered by
6 years ago Edited 6 years ago
You are making it repeat wait() in a loop without a stop.
Replace "while wait() do" to "while script.Parent.Parent.title.TextTransparency>0 do"
I recommend using TweenService instead of adding/subtracting the transparency of the text, which will also work. It also makes the code simpler and it's much easier.
02 | local click_sound = script.Parent.Parent.Parent:WaitForChild( "click_sound" ) |
04 | script.Parent.MouseButton 1 Click:Connect( function () |
07 | script.Parent.Visible = false |
08 | script.Parent.Parent.skipintroButton.Visible = false |
09 | script.Parent.Parent.TextLabel.Visible = false |
10 | script.Parent.Parent.loadedLabel.Visible = false |
13 | game:GetService( 'TweenService' ):Create(script.Parent.Parent.title,TweenInfo.new( 1 ,Enum.EasingStyle.Linear,Enum.EasingDirection.Out, 0 , false , 0 ), { TextTransparency = 0 ,TextStrokeTransparency = 0 } ):Play() |
16 | game:GetService( 'TweenService' ):Create(script.Parent.Parent.author,TweenInfo.new( 1 ,Enum.EasingStyle.Linear,Enum.EasingDirection.Out, 0 , false , 0 ), { TextTransparency = 0 ,TextStrokeTransparency = 0 } ):Play() |
[the 1 in TweenInfo.new(1,Enum.EasingStyle is the amount of seconds of how long the tweening is]
[by the way if the text gets cutted up hover over the code and click "view source"]