Advertisement
xmaanzach

Open Button Script

Jan 11th, 2019
4,405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. local Frame = script.Parent.Parent.Frame
  2. local Open = false
  3.  
  4. script.Parent.MouseButton1Click:Connect(function()
  5.  
  6. if Open == false then
  7. Frame:TweenPosition(UDim2.new(0.5, -175, 0.5, -80), "Out", "Bounce", 1, true)
  8. Open = true
  9. else
  10. Frame:TweenPosition(UDim2.new(0.5, -175, 1.5, -80), "Out", "Bounce", 1, true)
  11. Open = false
  12. end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement