Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local blur = Instance.new("BlurEffect",game.Workspace.CurrentCamera)
- blur.Size = 0
- local frame = script.Parent.Parent:WaitForChild("Frame")
- local open = script.Parent.Parent.Open
- script.Parent.MouseButton1Click:connect(function()
- if open.Value == false then
- frame:TweenPosition(UDim2.new(0.5,-250,0.5,-175),"Out","Quint",1,true)
- for i = 0,10,1 do
- wait()
- blur.Size = i
- end
- open.Value = true
- elseif open.Value == true then
- frame:TweenPosition(UDim2.new(0.5,-250,-0.5,-175),"Out","Quint",1,true)
- for i = 10,0,-1 do
- wait()
- blur.Size = i
- end
- open.Value = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement