Advertisement
Risspy_Gaming

Tween Script

Jul 1st, 2017
1,962
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. local frame = script.Parent.Parent.Parent.Frame
  2. local toggle = false
  3. script.Parent.MouseButton1Click:connect (function()
  4. if toggle == false then
  5. frame:TweenPosition(UDim2.new(0.5,-200,0.5,-100), 'Out', 'Bounce', 1)-- This is the position where the frame goes down
  6. script.Parent.Text = 'Close'
  7. toggle = true
  8. else
  9. frame:TweenPosition(UDim2.new(0.5,-200,0.5,-900), 'In', 'Elastic', 1) -- This position is the position that the frame will go down FROM the top
  10. script.Parent.Text = 'Store'
  11. end
  12. end)
  13.  
  14. -- If you want to change you tween like Bounce -- just go here wait
  15. -- http://wiki.roblox.com/index.php?title=API:Enum/EasingStyle -- Go here Now you can change your tween style
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement