Sir_Spaceboi

Untitled

Aug 9th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. local TS = game:GetService("TweenService")
  2. local open = script.Parent
  3. local Frame = open.Parent.Frame
  4.  
  5. -- Tween info
  6. local newsize = UDim2.new(0, 611,0, 370)
  7.  
  8. --Tween
  9. local TweenI = TweenInfo.new(0.5, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
  10. local tween = TS:Create(Frame, TweenI, {Size=newsize})
  11.  
  12. open.MouseButton1Click:Connect(function()
  13.     Frame.Visible = true
  14.     tween:Play()
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment