Advertisement
Stefanuk12

A Script Hub {WIP}

Mar 4th, 2018
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.49 KB | None | 0 0
  1. MainGUI = Instance.new("ScreenGui",game.CoreGui)
  2. MainGUI.Name = "MainGUI"
  3. MainGUI.ResetOnSpawn = false
  4.  
  5. MainArea = Instance.new("ScrollingFrame",MainGUI)
  6. MainArea.Name = "MAIN"
  7. MainArea.Size = UDim2.new(0,500,0,640)
  8. MainArea.Position = UDim2.new(0,0,0,0)
  9. MainArea.BackgroundColor3 = Color3.new(0,0,0)
  10. MainArea.BackgroundTransparency = 0.60
  11. MainArea.BorderSizePixel = 0
  12. MainArea.ScrollBarThickness = 0
  13. MainArea.Active = true
  14. MainArea.Draggable = true
  15.  
  16. qw = Instance.new("Frame",MainGUI)
  17. qw.Name = "CloseFrame"
  18. qw.Position = UDim2.new(0,1000,0,1000)
  19. qw.BackgroundColor3 = Color3.new(255,255,255)
  20. qw.BackgroundTransparency = 60
  21. qw.BorderSizePixel = 0
  22.  
  23. qwe = Instance.new("TextButton",CloseFrame)
  24. qwe.Name = "CloseButton"
  25. qwe.Position = UDim2.new(0,1000,0,1000)
  26. qwe.BackgroundColor3 = Color3.new(255,255,255)
  27. qwe.BackgroundTransparency = 85
  28. qwe.BorderSizePixel = 0
  29. qwe.Font = "SourceSansLight"
  30. qwe.FontSize = "Size12"
  31. qwe.Text = "Close"
  32. qwe.TextColor3 = Color3.new(0,0,0)
  33.  
  34. Name = Instance.new("TextLabel",MainArea)
  35. Name.Name = "NameBar"
  36. Name.Size = UDim2.new(0,320,0,25)
  37. Name.BackgroundColor3 = Color3.new(0,255,255)
  38. Name.BackgroundTransparency = .4
  39. Name.BorderSizePixel = 0
  40. Name.Font = "SourceSans"
  41. Name.FontSize = "Size14"
  42. Name.Text = ("Script Hub by Stefanuk12")
  43. Name.TextColor3 = Color3.new(0,0,0)
  44.  
  45. Text1 = 25
  46. function c1(txt)
  47. local lol = Instance.new("TextButton",MainArea)
  48. lol.Name = (txt)
  49. lol.Size = UDim2.new(0,150,0,40)
  50. lol.Position = UDim2.new(0,15,0,Text1)
  51. lol.BackgroundColor3 = Color3.new(255,255,255)
  52. lol.BackgroundTransparency = 40
  53. lol.BorderSizePixel = 0
  54. lol.Font = "SourceSansLight"
  55. lol.FontSize = "Size24"
  56. lol.Text = (txt)
  57. lol.TextColor3 = Color3.new(52,72,255)
  58. Text1 = pos1+40
  59. return lol
  60. end
  61.  
  62. Text2 = 25
  63. function c2(txt)
  64. local a = Instance.new("TextButton",MainArea)
  65. lol.Name = (txt)
  66. lol.Size = UDim2.new(0,150,0,40)
  67. lol.Position = UDim2.new(0,170,0,Text2)
  68. lol.BackgroundColor3 = Color3.new(255,255,255)
  69. lol.BackgroundTransparency = 40
  70. lol.BorderSizePixel = 0
  71. lol.Font = "SourceSansLight"
  72. lol.FontSize = "Size24"
  73. lol.Text = (txt)
  74. lol.TextColor3 = Color3.new(52,72,255)
  75. Text2 = Text2+40
  76. return lol
  77. end
  78.  
  79.  
  80. MainUI = game.CoreGui.MainGUI
  81. MainUI.CloseFrame.CloseButton.MouseButton1Down:connect(function()
  82. if MainUI.Visible == true then
  83. MainUI.Visible = false
  84. MainUI.Active = false
  85. MainUI.CloseFrame.CloseButton.Text = "Open"
  86. elseif MainUI.Visible == false then
  87. MainUI.Visible = true
  88. MainUI.Active = true
  89. MainUI.CloseFrame.CloseButton.Text = "Close"
  90. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement