Will someone actually ANSWER my question on tweenPositioning of a GUI? [closed]
somebody please actually ANSWER my question i've asked about 8 questions now and haven't got ANYTHING back on them no feedback not a single little comment jesus is this too hard to ask??
whenever my menu frame tweens into the players view theres a button that will cause it to tween out of their view when clicked but when that is clicked nothing happens...
Here's the script that causes it to come into view
01 | local target = workspace.CamPart |
03 | local camera = workspace.CurrentCamera |
04 | local GUI = script.Parent.Parent |
05 | local GUI 2 = script.Parent.Parent.Parent.Menu |
08 | script.Parent.MouseEnter:connect( function (Enter) |
09 | script.Parent.Size = UDim 2. new( 0 , 215 , 0 , 55 ) |
10 | script.Parent.FontSize = "Size36" |
13 | script.Parent.MouseLeave:connect( function (Leave) |
14 | script.Parent.Size = UDim 2. new( 0 , 200 , 0 , 50 ) |
15 | script.Parent.FontSize = "Size24" |
19 | script.Parent.MouseButton 1 Down:connect( function (click) |
20 | camera.CameraType = Enum.CameraType.Scriptable |
21 | camera.CameraSubject = target |
24 | GUI:TweenPosition(UDim 2. new( 1 , 0 , 1 , 0 ), "Out" , "Quad" , 3 ) |
25 | GUI 2 :TweenPosition(UDim 2. new( 0 , 0 , 0 , 0 ), "In" , "Quad" , 2 ) |
27 | camera.CoordinateFrame = CFrame.new(target.Position) |
28 | * CFrame.Angles( 0 , angle, 0 ) |
30 | angle = angle + math.rad( 1 ) |
Here's script 2 that causes it to leave the view
01 | local GUI = script.Parent.Parent |
02 | local GUI 2 = script.Parent.Parent.Parent.Join |
05 | script.Parent.MouseEnter:connect( function (Enter) |
06 | script.Parent.Size = UDim 2. new( 0 , 215 , 0 , 55 ) |
07 | script.Parent.FontSize = "Size36" |
10 | script.Parent.MouseLeave:connect( function (Leave) |
11 | script.Parent.Size = UDim 2. new( 0 , 200 , 0 , 50 ) |
12 | script.Parent.FontSize = "Size24" |
16 | script.Parent.MouseButton 1 Down:connect( function (click) |
17 | print (game.Players.LocalPlayer.Name.. ' is now being Teleported..' ) |
18 | GUI:TweenPosition(UDim 2. new( 1 , 0 , 1 , 0 ), "Out" , "Quad" , 3 ) |
20 | GUI 2 :TweenPosition(UDim 2. new( 0 , 0 , 0 , 0 ), "In" , "Quad" , 2 ) |