Why wont the position of my Frame move?
01 | currentgame = script.Parent.Parent.Parent |
03 | play = script.Parent.Play |
04 | quit = script.Parent.Quit |
05 | upgrades = script.Parent.Upgrades |
06 | quitmenu = script.Parent.Parent.Quit |
07 | upgradesmenu = script.Parent.Parent.Upgrades |
08 | gamemenu = script.Parent.Parent.Game |
10 | play.MouseButton 1 Down:connect( function () |
11 | if currentgame.Visible then |
12 | gamemenu.Visible = true |
17 | quit.MouseButton 1 Down:connect( function () |
18 | if currentgame.Visible then |
19 | quitmenu.Visible = true |
21 | menu:TweenPosition(UDim 2. new( 0 , 800 , 0 , 100 )) |
23 | quitmenu:TweenPosition(UDim 2. new( 0 , 200 , 0 , 100 )) |
25 | quitmenu.Yes.MouseButton 1 Down:connect( function () |
26 | menu:TweenPosition(UDim 2. new( 0 , - 400 , 0 , 100 )) |
27 | quitmenu:TweenPosition(UDim 2. new( 0 , - 400 , 0 , 100 )) |
28 | quitmenu.Visible = false |
30 | currentgame.Visible = false |
31 | currentgame.Parent.Parent.Apps.Visible = true |
34 | quitmenu.No.MouseButton 1 Down:connect( function () |
37 | menu:TweenPosition(UDim 2. new( 0 , 250 , 0 , 100 )) |
38 | quitmenu:TweenPosition(UDim 2. new( 0 , - 400 , 0 , 100 )) |
40 | quitmenu.Visible = false |
I pointed out in the code where I don't know why it wont move...
Please help, thanks!
P.S. The frame after it moves, (quitmenu:TweenPosition(UDim2.new(0, 200, 0, 100))) ??????