How do I to set The Gui Invisible?
Hey Does anyone know how to make a gui invisible after playing a tween Im dumb..
My current Script
01 | local TweenService = game:GetService( "TweenService" ) |
03 | local frame = script.Parent |
04 | frame.AnchorPoint = Vector 2. new( 0.5 , 0.5 ) |
05 | frame.Position = UDim 2. new( 0 , 70 , 0 , 70 ) |
06 | frame.BorderSizePixel = 0 |
07 | frame.Size = UDim 2. new( 0 , 100 , 0 , 100 ) |
08 | frame.BackgroundColor 3 = Color 3. new( 0 , 0 , 0 ) |
11 | local tweenInfo 1 = TweenInfo.new( 1 , Enum.EasingStyle.Sine, Enum.EasingDirection.Out) |
12 | local tween 1 = TweenService:Create(frame, tweenInfo 1 , { Position = UDim 2. new( 0.5 , 0 , 0.5 , 0 ) } ) |
13 | local tweenInfo 2 = TweenInfo.new( 1.5 , Enum.EasingStyle.Quart, Enum.EasingDirection.InOut) |
14 | local tween 2 = TweenService:Create(frame, tweenInfo 2 , { Rotation = 180 } ) |
16 | tween 1. Completed:Connect( function () |