Advertisement
DarionBoy

Untitled

Jun 8th, 2018
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. -- Farewell infortality
  2. -- Revamp by ImFrostic, Version 2.81
  3.  
  4. -- Objects
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local ScrollingFrame = Instance.new("ScrollingFrame")
  8. local TopBar = Instance.new("Frame")
  9. local Exit = Instance.new("TextButton")
  10. local Minimise = Instance.new("TextButton")
  11. local Open = Instance.new("TextButton")
  12.  
  13. -- Properties
  14.  
  15. ScreenGui.Parent = game.CoreGui
  16.  
  17. ScrollingFrame.Parent = ScreenGui
  18. ScrollingFrame.BackgroundColor3 = Color3.new(0.882353, 0.854902, 0.847059)
  19. ScrollingFrame.Position = UDim2.new(0.194480687, 0, 0.137476474, 0)
  20. ScrollingFrame.Size = UDim2.new(0, 517, 0, 298)
  21. ScrollingFrame.Draggable = true
  22.  
  23. TopBar.Name = "TopBar"
  24. TopBar.Parent = ScrollingFrame
  25. TopBar.BackgroundColor3 = Color3.new(0.564706, 0.513726, 0.490196)
  26. TopBar.Size = UDim2.new(0, 424, 0, 30)
  27.  
  28. Exit.Name = "Exit"
  29. Exit.Parent = ScrollingFrame
  30. Exit.BackgroundColor3 = Color3.new(1, 1, 1)
  31. Exit.Position = UDim2.new(0.897485495, 0, 0, 0)
  32. Exit.Size = UDim2.new(0, 41, 0, 30)
  33. Exit.Font = Enum.Font.SciFi
  34. Exit.Text = "X"
  35. Exit.TextColor3 = Color3.new(0, 0, 0)
  36. Exit.TextSize = 30
  37.  
  38. Minimise.Name = "Minimise"
  39. Minimise.Parent = ScrollingFrame
  40. Minimise.BackgroundColor3 = Color3.new(1, 1, 1)
  41. Minimise.Position = UDim2.new(0.820116043, 0, 0, 0)
  42. Minimise.Size = UDim2.new(0, 40, 0, 30)
  43. Minimise.Font = Enum.Font.SciFi
  44. Minimise.Text = "-"
  45. Minimise.TextColor3 = Color3.new(0, 0, 0)
  46. Minimise.TextSize = 50
  47.  
  48. Open.Name = "Open"
  49. Open.Parent = ScreenGui
  50. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  51. Open.Position = UDim2.new(0, 0, 0.920903981, 0)
  52. Open.Size = UDim2.new(0, 88, 0, 42)
  53. Open.Style = Enum.ButtonStyle.RobloxRoundButton
  54. Open.Font = Enum.Font.Cartoon
  55. Open.Text = "OPEN"
  56. Open.TextColor3 = Color3.new(0, 0, 0)
  57. Open.TextScaled = true
  58. Open.TextSize = 14
  59. Open.TextWrapped = true
  60.  
  61. local minimized = false
  62.  
  63. Minimise.MouseButton1Click:Connect(function()
  64. if not minimized then
  65. ScrollingFrame:TweenSize(UDim2.new(0, 40, 0, 30),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.2)
  66. minimized = true
  67. else
  68. ScrollingFrame:TweenSize(UDim2.new(0, 0, 0.920903981, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.2)
  69. minimized = false
  70. end
  71. end)
  72.  
  73. Close.MouseButton1Click:Connect(function()
  74. ScreenGui:Destroy()
  75. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement