Advertisement
XxxLloyd061302xxX

Close Button Script [Must be LocalScript]

May 29th, 2018
3,478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. local frame = script.Parent.Parent
  2. local open = frame.Parent.Open
  3. local blur = game.Workspace.CurrentCamera.Blur
  4.  
  5. script.Parent.MouseButton1Click:connect(function()
  6. frame:TweenPosition(UDim2.new(0.5,-250,-0.5,-175),"Out","Quint",1,true)
  7. for i = 10,0,-1 do
  8. wait()
  9. blur.Size = i
  10. end
  11. open.Value = false
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement