Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- >>: GUI Functions
- if game.CoreGui:FindFirstChild("Barbarossa") then
- game.CoreGui:FindFirstChild("Barbarossa"):Destroy()
- end
- -- >>: Cuul Effects
- local Blur = Instance.new("BlurEffect", game.Lighting)
- local Darken = Instance.new("ColorCorrectionEffect", game.Lighting)
- Darken.TintColor = Color3.fromRGB(140, 140, 140)
- -- >>: Library
- local Library = {}
- function Library:NewCategory(Name)
- local Barbarossa = Instance.new("ScreenGui")
- local Category = Instance.new("Frame")
- local CategoryName = Instance.new("TextLabel")
- local Container = Instance.new("ScrollingFrame")
- local ModuleListing = Instance.new("UIListLayout")
- local UIListLayout = Instance.new("UIListLayout")
- local UIPadding = Instance.new("UIPadding")
- Barbarossa.Name = "Barbarossa"
- Barbarossa.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Barbarossa.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Category.Name = "Category"
- Category.Parent = Barbarossa
- Category.BackgroundColor3 = Color3.fromRGB(46, 52, 57)
- Category.BackgroundTransparency = 1.000
- Category.BorderSizePixel = 0
- Category.Position = UDim2.new(0.00793021452, 0, 0.0332446806, 0)
- Category.Size = UDim2.new(0, 165, 0, 245)
- CategoryName.Name = "CategoryName"
- CategoryName.Parent = Category
- CategoryName.BackgroundColor3 = Color3.fromRGB(42, 123, 155)
- CategoryName.BorderSizePixel = 0
- CategoryName.Size = UDim2.new(1, 0, 0, 35)
- CategoryName.Font = Enum.Font.Roboto
- CategoryName.Text = Name
- CategoryName.TextColor3 = Color3.fromRGB(255, 255, 255)
- CategoryName.TextSize = 15.000
- Container.Name = "Container"
- Container.Parent = Category
- Container.Active = true
- Container.BackgroundColor3 = Color3.fromRGB(46, 52, 57)
- Container.BackgroundTransparency = 0.100
- Container.BorderSizePixel = 0
- Container.Position = UDim2.new(0, 0, 0.140000001, 0)
- Container.Size = UDim2.new(1, 0, 0.25, 185)
- Container.AutomaticCanvasSize = Enum.AutomaticSize.Y
- Container.CanvasSize = UDim2.new(0, 0, 0, 0)
- Container.ScrollBarThickness = 0
- ModuleListing.Name = "ModuleListing"
- ModuleListing.Parent = Container
- ModuleListing.SortOrder = Enum.SortOrder.Name
- UIListLayout.Parent = Barbarossa
- UIListLayout.FillDirection = Enum.FillDirection.Horizontal
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 10)
- UIPadding.Parent = Barbarossa
- UIPadding.PaddingLeft = UDim.new(0, 10)
- UIPadding.PaddingTop = UDim.new(0, 10)
- local Category = {}
- function Category:NewModule(Name, callback)
- local ToggleModule = Instance.new("TextButton")
- local ToggleModuleOptions = Instance.new("ImageButton")
- ToggleModule.Name = Name
- ToggleModule.Parent = Container
- ToggleModule.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ToggleModule.BackgroundTransparency = 1.000
- ToggleModule.BorderSizePixel = 0
- ToggleModule.Size = UDim2.new(1, 0, 0, 35)
- ToggleModule.Font = Enum.Font.Roboto
- ToggleModule.Text = Name
- ToggleModule.TextColor3 = Color3.fromRGB(255, 255, 255)
- ToggleModule.TextSize = 15.000
- ToggleModuleOptions.Name = "ToggleModuleOptions"
- ToggleModuleOptions.Parent = ToggleModule
- ToggleModuleOptions.BackgroundTransparency = 1.000
- ToggleModuleOptions.Position = UDim2.new(0.800000012, 0, 0.200000003, 0)
- ToggleModuleOptions.Size = UDim2.new(0, 20, 0, 20)
- ToggleModuleOptions.ZIndex = 2
- ToggleModuleOptions.Image = "rbxassetid://3926307971"
- ToggleModuleOptions.ImageRectOffset = Vector2.new(324, 364)
- ToggleModuleOptions.ImageRectSize = Vector2.new(36, 36)
- local tog = false
- ToggleModule.MouseButton1Click:Connect(function()
- tog = not tog
- callback(tog)
- if tog then
- game.TweenService:Create(ToggleModule, TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
- TextColor3 = Color3.fromRGB(42, 123, 155)
- }):Play()
- else
- game.TweenService:Create(ToggleModule, TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
- TextColor3 = Color3.fromRGB(255, 255, 255)
- }):Play()
- end
- end)
- end
- return Category
- end
- return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement