|
| 23 Aug 2015 11:03 AM |
This works when i try to open it when i click the button, but when i click the button again i want it to go away.
script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Parent.Frame2:TweenPosition(UDim2.new(0.5, -150, 0.5, -150), "Out", "Bounce", 0.3) end)
|
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 11:10 AM |
bump
suport http://www.roblox.com/Forum/ShowPost.aspx?PostID=170559579 |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 11:26 AM |
bump1
suport http://www.roblox.com/Forum/ShowPost.aspx?PostID=170559579 |
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
| |
|
|
| 23 Aug 2015 11:29 AM |
?
suport http://www.roblox.com/Forum/ShowPost.aspx?PostID=170559579 |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 23 Aug 2015 11:36 AM |
open = false script.Parent.MouseButton1Down:connect(function() if open == false then open = true script.Parent.Parent.Parent.Frame2:TweenPosition(UDim2.new(0.5, -150, 0.5, -150), "Out", "Bounce", 0.3) elseif open == true then open = false script.Parent.Parent.Parent.Frame2:TweenPosition(UDim2.new(0.5, -1, 0.5, -150), "Out", "Bounce", 0.3) --here end) put the desired position to move when you click again where it says "here" |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 23 Aug 2015 11:37 AM |
| and thanks i didn't know there was a "bounce" |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2015 11:39 AM |
http://wiki.roblox.com/index.php?title=API:Enum/EasingStyle
suport http://www.roblox.com/Forum/ShowPost.aspx?PostID=170559579 |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
| |
|