Advertisement
M0nkePr0

To Be Continued

Oct 29th, 2022 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. -- >>: GUI Functions
  2.  
  3. if game.CoreGui:FindFirstChild("Barbarossa") then
  4. game.CoreGui:FindFirstChild("Barbarossa"):Destroy()
  5. end
  6.  
  7. -- >>: Cuul Effects
  8.  
  9. local Blur = Instance.new("BlurEffect", game.Lighting)
  10. local Darken = Instance.new("ColorCorrectionEffect", game.Lighting)
  11.  
  12. Darken.TintColor = Color3.fromRGB(140, 140, 140)
  13.  
  14. -- >>: Library
  15.  
  16. local Library = {}
  17.  
  18. function Library:NewCategory(Name)
  19. local Barbarossa = Instance.new("ScreenGui")
  20. local Category = Instance.new("Frame")
  21. local CategoryName = Instance.new("TextLabel")
  22. local Container = Instance.new("ScrollingFrame")
  23. local ModuleListing = Instance.new("UIListLayout")
  24. local UIListLayout = Instance.new("UIListLayout")
  25. local UIPadding = Instance.new("UIPadding")
  26.  
  27. Barbarossa.Name = "Barbarossa"
  28. Barbarossa.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  29. Barbarossa.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  30.  
  31. Category.Name = "Category"
  32. Category.Parent = Barbarossa
  33. Category.BackgroundColor3 = Color3.fromRGB(46, 52, 57)
  34. Category.BackgroundTransparency = 1.000
  35. Category.BorderSizePixel = 0
  36. Category.Position = UDim2.new(0.00793021452, 0, 0.0332446806, 0)
  37. Category.Size = UDim2.new(0, 165, 0, 245)
  38.  
  39. CategoryName.Name = "CategoryName"
  40. CategoryName.Parent = Category
  41. CategoryName.BackgroundColor3 = Color3.fromRGB(42, 123, 155)
  42. CategoryName.BorderSizePixel = 0
  43. CategoryName.Size = UDim2.new(1, 0, 0, 35)
  44. CategoryName.Font = Enum.Font.Roboto
  45. CategoryName.Text = Name
  46. CategoryName.TextColor3 = Color3.fromRGB(255, 255, 255)
  47. CategoryName.TextSize = 15.000
  48.  
  49. Container.Name = "Container"
  50. Container.Parent = Category
  51. Container.Active = true
  52. Container.BackgroundColor3 = Color3.fromRGB(46, 52, 57)
  53. Container.BackgroundTransparency = 0.100
  54. Container.BorderSizePixel = 0
  55. Container.Position = UDim2.new(0, 0, 0.140000001, 0)
  56. Container.Size = UDim2.new(1, 0, 0.25, 185)
  57. Container.AutomaticCanvasSize = Enum.AutomaticSize.Y
  58. Container.CanvasSize = UDim2.new(0, 0, 0, 0)
  59. Container.ScrollBarThickness = 0
  60.  
  61. ModuleListing.Name = "ModuleListing"
  62. ModuleListing.Parent = Container
  63. ModuleListing.SortOrder = Enum.SortOrder.Name
  64.  
  65. UIListLayout.Parent = Barbarossa
  66. UIListLayout.FillDirection = Enum.FillDirection.Horizontal
  67. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  68. UIListLayout.Padding = UDim.new(0, 10)
  69.  
  70. UIPadding.Parent = Barbarossa
  71. UIPadding.PaddingLeft = UDim.new(0, 10)
  72. UIPadding.PaddingTop = UDim.new(0, 10)
  73.  
  74. local Category = {}
  75.  
  76. function Category:NewModule(Name, callback)
  77. local ToggleModule = Instance.new("TextButton")
  78. local ToggleModuleOptions = Instance.new("ImageButton")
  79.  
  80. ToggleModule.Name = Name
  81. ToggleModule.Parent = Container
  82. ToggleModule.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  83. ToggleModule.BackgroundTransparency = 1.000
  84. ToggleModule.BorderSizePixel = 0
  85. ToggleModule.Size = UDim2.new(1, 0, 0, 35)
  86. ToggleModule.Font = Enum.Font.Roboto
  87. ToggleModule.Text = Name
  88. ToggleModule.TextColor3 = Color3.fromRGB(255, 255, 255)
  89. ToggleModule.TextSize = 15.000
  90.  
  91. ToggleModuleOptions.Name = "ToggleModuleOptions"
  92. ToggleModuleOptions.Parent = ToggleModule
  93. ToggleModuleOptions.BackgroundTransparency = 1.000
  94. ToggleModuleOptions.Position = UDim2.new(0.800000012, 0, 0.200000003, 0)
  95. ToggleModuleOptions.Size = UDim2.new(0, 20, 0, 20)
  96. ToggleModuleOptions.ZIndex = 2
  97. ToggleModuleOptions.Image = "rbxassetid://3926307971"
  98. ToggleModuleOptions.ImageRectOffset = Vector2.new(324, 364)
  99. ToggleModuleOptions.ImageRectSize = Vector2.new(36, 36)
  100.  
  101. local tog = false
  102.  
  103. ToggleModule.MouseButton1Click:Connect(function()
  104. tog = not tog
  105. callback(tog)
  106. if tog then
  107. game.TweenService:Create(ToggleModule, TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  108. TextColor3 = Color3.fromRGB(42, 123, 155)
  109. }):Play()
  110. else
  111. game.TweenService:Create(ToggleModule, TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
  112. TextColor3 = Color3.fromRGB(255, 255, 255)
  113. }):Play()
  114. end
  115. end)
  116. end
  117.  
  118. return Category
  119. end
  120.  
  121. return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement