|
| 31 Jul 2015 08:32 PM |
local button = script.Parent local menu = script.Parent.Parent local opened = false
button.MouseButton1Click:connect(function() menu:TweenPosition(UDim2.new{0.5, -1300, 0.5, -200}Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 1, true) end)
I'm just here so I don't get fined |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 08:36 PM |
local button = script.Parent local menu = script.Parent.Parent local opened = false -- Not used in the script?
button.MouseButton1Click:connect(function() menu:TweenPosition(UDim2.new(0.5, -1300, 0.5, -200), "Out", "Quad", 3, false) end)
|
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 08:39 PM |
How to make it go faster
I'm just here so I don't get fined |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 08:42 PM |
| the integer (3) is how long it takes to "slide" to that position (in seconds) editing that to a lower number such as 2 would make it slide to that position in 2 seconds. |
|
|
| Report Abuse |
|
|