generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: open close trouble

Previous Thread :: Next Thread 
AdvancedDrone is not online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
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
AdvancedDrone is not online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
23 Aug 2015 11:10 AM
bump



suport http://www.roblox.com/Forum/ShowPost.aspx?PostID=170559579
Report Abuse
AdvancedDrone is not online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
23 Aug 2015 11:26 AM
bump1



suport http://www.roblox.com/Forum/ShowPost.aspx?PostID=170559579
Report Abuse
Codys4x4 is not online. Codys4x4
Joined: 14 Oct 2006
Total Posts: 2312
23 Aug 2015 11:27 AM
messages...
Report Abuse
AdvancedDrone is not online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
23 Aug 2015 11:29 AM
?



suport http://www.roblox.com/Forum/ShowPost.aspx?PostID=170559579
Report Abuse
Vortilis is not online. 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 is not online. 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
AdvancedDrone is not online. AdvancedDrone
Joined: 17 Apr 2010
Total Posts: 2599
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 is not online. Vortilis
Joined: 06 Jul 2014
Total Posts: 14163
23 Aug 2015 11:43 AM
thanks :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image