daily pastebin goal
70%
SHARE
TWEET

Tweeing + De-bounce

iDevDesire Oct 22nd, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top