Advertisement
iDevDesire

Tweeing + De-bounce

Oct 22nd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. local Frame = script.Parent.Frame
  2. local DropFrame = Frame.DropFrame
  3. local Button = Frame.TextButton
  4. db = 1
  5.  
  6. Button.MouseButton1Click:connect(function()
  7. if db == 1 then
  8. DropFrame:TweenPosition(UDim2.new(0, 0,0, -50), "Out", "Bounce", 1)
  9. db=2
  10. else
  11. DropFrame:TweenPosition(UDim2.new(0, 0,0, -1000), "Out", "Bounce", 1)
  12. db=1
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement