ScriptyPastes

lib v3

May 14th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. syn.protect_gui(ScreenGui)
  3. local Frame = Instance.new("Frame")
  4. local ScrollingFrame = Instance.new("ScrollingFrame")
  5. local UIListLayout = Instance.new("UIListLayout")
  6.  
  7. ScreenGui.Parent = game.CoreGui
  8. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  9.  
  10. Frame.Parent = ScreenGui
  11. Frame.BackgroundColor3 = Color3.fromRGB(63, 63, 63)
  12. Frame.Position = UDim2.new(0.5, -325, 0.5, -250)
  13. Frame.Size = UDim2.new(0, 650, 0, 500)
  14. Frame.Active = true
  15. Frame.Draggable = true
  16. Frame.ZIndex = 4
  17.  
  18. ScrollingFrame.Parent = Frame
  19. ScrollingFrame.Active = true
  20. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  21. ScrollingFrame.BackgroundTransparency = 1.000
  22. ScrollingFrame.Size = UDim2.new(0, 150, 1, 0)
  23. ScrollingFrame.ZIndex = 4
  24.  
  25. UIListLayout.Parent = ScrollingFrame
  26. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  27.  
  28. local lib = {}
  29.  
  30. function lib:AddTab(Text)
  31.  
  32. local Tab1 = Instance.new("TextButton")
  33. local Tab1_2 = Instance.new("Frame")
  34. local UIGridLayout = Instance.new("UIGridLayout")
  35.  
  36. Tab1.Name = "Tab1"
  37. Tab1.Parent = ScrollingFrame
  38. Tab1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  39. Tab1.BackgroundTransparency = 0.950
  40. Tab1.BorderSizePixel = 0
  41. Tab1.Size = UDim2.new(0, 150, 0, 45)
  42. Tab1.Font = Enum.Font.SourceSans
  43. Tab1.Text = Text
  44. Tab1.TextColor3 = Color3.fromRGB(255, 255, 255)
  45. Tab1.TextSize = 25.000
  46. Tab1.TextWrapped = true
  47. Tab1.MouseButton1Down:Connect(function()
  48. Tab1_2.Visible = true
  49. for i,v in pairs(Frame:GetChildren()) do
  50. if v ~= Tab1_2 and v.Name ~= "ScrollingFrame" then
  51. v.Visible = false
  52. end
  53. end
  54. end)
  55.  
  56. Tab1_2.Name = "Tab1"
  57. Tab1_2.Parent = Frame
  58. Tab1_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  59. Tab1_2.BackgroundTransparency = 2.000
  60. Tab1_2.Position = UDim2.new(0, 150, 0, 0)
  61. Tab1_2.Size = UDim2.new(1, -150, 1, 0)
  62. Tab1_2.Visible = false
  63.  
  64. UIGridLayout.Parent = Tab1_2
  65. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  66. UIGridLayout.CellPadding = UDim2.new(0, 20, 0, 20)
  67. UIGridLayout.CellSize = UDim2.new(0, 100, 0, 50)
  68.  
  69. local lib2 = {}
  70. function lib2:Button(Text1, Func)
  71. local TextButton = Instance.new("TextButton")
  72.  
  73. TextButton.Parent = Tab1_2
  74. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  75. TextButton.BackgroundTransparency = 0.900
  76. TextButton.Position = UDim2.new(0, 20, 0, 20)
  77. TextButton.Size = UDim2.new(0, 200, 0, 50)
  78. TextButton.Font = Enum.Font.SourceSans
  79. TextButton.TextColor3 = Color3.fromRGB(255, 243, 240)
  80. TextButton.TextSize = 30.000
  81. TextButton.Text = Text1
  82. TextButton.MouseButton1Down:Connect(Func)
  83. TextButton.ZIndex = 4
  84. end
  85. return lib2
  86. end
  87. return lib
Advertisement
Add Comment
Please, Sign In to add comment