Advertisement
Guest User

Script For Roblox

a guest
Jun 15th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. ■ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ■
  2.  
  3. Button Script :
  4.  
  5. script.Parent.MouseButton1Click:Connect(function()
  6. if script.Parent.Parent.Open.Value == false then
  7. script.Parent.Parent.Open.Value = true
  8. script.Parent.Parent.Frame:TweenPosition(UDim2.new(0.5, -200, 0.5, -150),"Out","Quint",1,true)
  9. else
  10. script.Parent.Parent.Open.Value = false
  11. script.Parent.Parent.Frame:TweenPosition(UDim2.new(0.5, -200, -0.5, -150),"Out","Quint",1,true)
  12. end
  13. end)
  14.  
  15. Close Button :
  16.  
  17. script.Parent.MouseButton1Click:Connect(function()
  18. script.Parent.Parent.Parent.Open.Value = false
  19. script.Parent.Parent:TweenPosition(UDim2.new(0.5, -200, -0.5, -150),"Out","Quint",1,true)
  20. end)
  21.  
  22. ■ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ■
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement