Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --UI_LIBRARY_V2
- --objects
- local UI_LIBRARY_V2 = Instance.new('ScreenGui')
- local main = Instance.new'Frame'
- local UICorner = Instance.new'UICorner'
- local UIGradient = Instance.new'UIGradient'
- local sidebar = Instance.new'Frame'
- local UIGradient_2 = Instance.new'UIGradient'
- local UICorner_2 = Instance.new'UICorner'
- local template = Instance.new'TextButton'
- local sidebarhandler = Instance.new'LocalScript'
- local UIListLayout = Instance.new'UIListLayout'
- local topbar = Instance.new'TextLabel'
- local closeButton = Instance.new'ImageButton'
- local minimizeButton = Instance.new'ImageButton'
- local topsideline = Instance.new'Frame'
- local handler = Instance.new'LocalScript'
- local smooth_drag = Instance.new'LocalScript'
- local rightsideline = Instance.new'Frame'
- local sections = Instance.new'ScrollingFrame'
- local sectiontemplate = Instance.new'ScrollingFrame'
- local UIListLayout_2 = Instance.new'UIListLayout'
- local boxtemplate = Instance.new'TextBox'
- local buttontemplate = Instance.new'TextButton'
- local dropdowntemplate = Instance.new'TextButton'
- local indicator = Instance.new'TextLabel'
- local container = Instance.new'ScrollingFrame'
- local labeltemplate = Instance.new'TextLabel'
- --properties
- UI_LIBRARY_V2.Name = 'UI_LIBRARY_V2'
- pcall(function() syn.protect_gui(UI_LIBRARY_V2) end)
- pcall(function() UI_LIBRARY_V2.Parent = game:GetService('CoreGui') end)
- UI_LIBRARY_V2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- main.Name = 'main'
- main.Parent = UI_LIBRARY_V2
- main.Position = UDim2.new(0.263059705, 0, 0.240291268, 0)
- main.Size = UDim2.new(0, 557, 0, 368)
- UICorner.CornerRadius = UDim.new(0, 6)
- UICorner.Parent = main
- UIGradient.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(47.000000998378, 47.000000998378, 47.000000998378)), ColorSequenceKeypoint.new(1, Color3.fromRGB(24.000000469387, 24.000000469387, 24.000000469387))})
- UIGradient.Rotation = 90
- UIGradient.Parent = main
- sidebar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- sidebar.BorderSizePixel = 0
- sidebar.Name = 'sidebar'
- sidebar.Parent = main
- sidebar.Position = UDim2.new(0, 0, 0.0760869533, 0)
- sidebar.Size = UDim2.new(0, 101, 0, 340)
- UIGradient_2.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(35.000001713634, 35.000001713634, 35.000001713634)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))})
- UIGradient_2.Rotation = 90
- UIGradient_2.Parent = sidebar
- UICorner_2.CornerRadius = UDim.new(0, 4)
- UICorner_2.Parent = sidebar
- template.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- template.BackgroundTransparency = 1
- template.BorderSizePixel = 0
- template.Name = 'template'
- template.Parent = sidebar
- template.Size = UDim2.new(0, 101, 0, 35)
- template.Visible = false
- template.Font = Enum.Font.Gotham
- template.Text = 'TEMPLATE'
- template.TextColor3 = Color3.fromRGB(255, 255, 255)
- template.TextScaled = true
- template.TextSize = 14
- template.TextWrapped = true
- sidebarhandler.Name = 'sidebarhandler'
- sidebarhandler.Parent = sidebar
- UIListLayout.Parent = sidebar
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- topbar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- topbar.BackgroundTransparency = 1
- topbar.BorderSizePixel = 0
- topbar.Name = 'topbar'
- topbar.Parent = main
- topbar.Position = UDim2.new(0, 0, 0.00271739066, 0)
- topbar.Size = UDim2.new(0, 557, 0, 27)
- topbar.Font = Enum.Font.Gotham
- topbar.Text = 'GUI_NAME'
- topbar.TextColor3 = Color3.fromRGB(255, 255, 255)
- topbar.TextScaled = true
- topbar.TextSize = 14
- topbar.TextWrapped = true
- closeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- closeButton.BackgroundTransparency = 1
- closeButton.BorderSizePixel = 0
- closeButton.Name = 'closeButton'
- closeButton.Parent = topbar
- closeButton.Position = UDim2.new(0.947791815, 0, -0.03515964, 0)
- closeButton.Size = UDim2.new(0, 27, 0, 27)
- closeButton.Image = 'rbxassetid://6733242294'
- minimizeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- minimizeButton.BackgroundTransparency = 1
- minimizeButton.BorderSizePixel = 0
- minimizeButton.Name = 'minimizeButton'
- minimizeButton.Parent = topbar
- minimizeButton.Position = UDim2.new(0.890792668, 0, -0.0370370373, 0)
- minimizeButton.Size = UDim2.new(0, 24, 0, 27)
- minimizeButton.Image = 'rbxassetid://6909762377'
- topsideline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- topsideline.BorderSizePixel = 0
- topsideline.Name = 'topsideline'
- topsideline.Parent = topbar
- topsideline.Position = UDim2.new(0, 0, 0.996130526, 0)
- topsideline.Size = UDim2.new(0, 558, 0, 2)
- handler.Name = 'handler'
- handler.Parent = topbar
- smooth_drag.Name = 'smooth_drag'
- smooth_drag.Parent = main
- rightsideline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- rightsideline.BorderSizePixel = 0
- rightsideline.Name = 'rightsideline'
- rightsideline.Parent = main
- rightsideline.Position = UDim2.new(0.181328535, 0, 0.0760869533, 0)
- rightsideline.Size = UDim2.new(0, 2, 0, 341)
- sections.Active = true
- sections.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- sections.BackgroundTransparency = 1
- sections.BorderSizePixel = 0
- sections.Name = 'sections'
- sections.Parent = main
- sections.Position = UDim2.new(0.184919208, 0, 0.0788043514, 0)
- sections.Size = UDim2.new(0, 454, 0, 339)
- sections.CanvasSize = UDim2.new(10, 0, 10, 0)
- sections.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
- sections.ScrollBarImageTransparency = 1
- sections.ScrollingEnabled = false
- sectiontemplate.Active = true
- sectiontemplate.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- sectiontemplate.BackgroundTransparency = 1
- sectiontemplate.BorderSizePixel = 0
- sectiontemplate.Name = 'sectiontemplate'
- sectiontemplate.Parent = sections
- sectiontemplate.Position = UDim2.new(0, 0, 0.0930000022, 0)
- sectiontemplate.Size = UDim2.new(0, 454, 0, 340)
- sectiontemplate.Visible = false
- sectiontemplate.CanvasSize = UDim2.new(0, 0, 10, 0)
- sectiontemplate.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
- UIListLayout_2.Parent = sectiontemplate
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- boxtemplate.BackgroundColor3 = Color3.fromRGB(35.000001713634, 35.000001713634, 35.000001713634)
- boxtemplate.BorderSizePixel = 0
- boxtemplate.Name = 'boxtemplate'
- boxtemplate.Parent = sectiontemplate
- boxtemplate.Position = UDim2.new(0, 0, 0.19411765, 0)
- boxtemplate.Size = UDim2.new(0, 454, 0, 33)
- boxtemplate.Visible = false
- boxtemplate.Font = Enum.Font.GothamSemibold
- boxtemplate.PlaceholderColor3 = Color3.fromRGB(200.00000327826, 200.00000327826, 200.00000327826)
- boxtemplate.PlaceholderText = 'box'
- boxtemplate.Text = ''
- boxtemplate.TextColor3 = Color3.fromRGB(255, 255, 255)
- boxtemplate.TextScaled = true
- boxtemplate.TextSize = 14
- boxtemplate.TextWrapped = true
- buttontemplate.BackgroundColor3 = Color3.fromRGB(35.000001713634, 35.000001713634, 35.000001713634)
- buttontemplate.BorderSizePixel = 0
- buttontemplate.Name = 'buttontemplate'
- buttontemplate.Parent = sectiontemplate
- buttontemplate.Size = UDim2.new(0, 454, 0, 33)
- buttontemplate.Visible = false
- buttontemplate.Font = Enum.Font.GothamSemibold
- buttontemplate.Text = 'button'
- buttontemplate.TextColor3 = Color3.fromRGB(255, 255, 255)
- buttontemplate.TextScaled = true
- buttontemplate.TextSize = 14
- buttontemplate.TextWrapped = true
- dropdowntemplate.BackgroundColor3 = Color3.fromRGB(35.000001713634, 35.000001713634, 35.000001713634)
- dropdowntemplate.BorderSizePixel = 0
- dropdowntemplate.Name = 'dropdowntemplate'
- dropdowntemplate.Parent = sectiontemplate
- dropdowntemplate.Size = UDim2.new(0, 454, 0, 33)
- dropdowntemplate.Visible = false
- dropdowntemplate.Font = Enum.Font.Gotham
- dropdowntemplate.Text = 'dropdown'
- dropdowntemplate.TextColor3 = Color3.fromRGB(255, 255, 255)
- dropdowntemplate.TextScaled = true
- dropdowntemplate.TextSize = 14
- dropdowntemplate.TextWrapped = true
- indicator.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- indicator.BackgroundTransparency = 1
- indicator.BorderSizePixel = 0
- indicator.Name = 'indicator'
- indicator.Parent = dropdowntemplate
- indicator.Position = UDim2.new(0.702643216, 0, 0, 0)
- indicator.Size = UDim2.new(0, 30, 0, 30)
- indicator.Visible = false
- indicator.Font = Enum.Font.Gotham
- indicator.Text = '>'
- indicator.TextColor3 = Color3.fromRGB(255, 255, 255)
- indicator.TextScaled = true
- indicator.TextSize = 14
- indicator.TextWrapped = true
- container.Active = true
- container.BackgroundColor3 = Color3.fromRGB(25.000000409782, 25.000000409782, 25.000000409782)
- container.BorderSizePixel = 0
- container.Name = 'container'
- container.Parent = dropdowntemplate
- container.Position = UDim2.new(0.000102845581, 0, 1, 0)
- container.Size = UDim2.new(0, 453, 0, 33)
- container.Visible = false
- container.CanvasSize = UDim2.new(0, 0, 0, 0)
- container.ScrollBarThickness = 4
- labeltemplate.BackgroundColor3 = Color3.fromRGB(35.000001713634, 35.000001713634, 35.000001713634)
- labeltemplate.BorderSizePixel = 0
- labeltemplate.Name = 'labeltemplate'
- labeltemplate.Parent = sectiontemplate
- labeltemplate.Position = UDim2.new(0, 0, 0.0970588252, 0)
- labeltemplate.Size = UDim2.new(0, 454, 0, 33)
- labeltemplate.Visible = false
- labeltemplate.Font = Enum.Font.GothamBold
- labeltemplate.Text = 'label'
- labeltemplate.TextColor3 = Color3.fromRGB(255, 255, 255)
- labeltemplate.TextScaled = true
- labeltemplate.TextSize = 14
- labeltemplate.TextWrapped = true
- --attributes
- --scripts
- function sidebar_sidebarhandleraxrma()
- local script = sidebarhandler
- function tween(a,b,c)
- game:GetService'TweenService':Create(a, TweenInfo.new(b, Enum.EasingStyle.Exponential), c):Play()
- end
- function added(b)
- if b then
- if b:IsA'TextButton' then
- if b ~= script.Parent.template then
- b.MouseButton1Click:connect(function()
- for a,section in pairs(script.Parent.Parent.sections:GetChildren()) do
- if section then
- if section.Name == b.Name then
- tween(section, .3, {Position = UDim2.new(0, 0, 0, 0)})
- else
- local y = 0
- if math.random(1,2) == 1 then
- y = -.093
- else
- y = .093
- end
- tween(section, .4, {Position = UDim2.new(0, 0, y, 0)})
- end
- end
- end
- end)
- end
- end
- end
- end
- for a,b in pairs(script.Parent:GetChildren()) do
- if b then
- added(b)
- end
- end
- script.Parent.ChildAdded:connect(added)
- for a,b in pairs(script.Parent.Parent.sections:GetChildren()) do
- if b then
- b.Visible = false
- b.Position = UDim2.new(.082, 0, 0, 0)
- end
- end
- end
- coroutine.wrap(sidebar_sidebarhandleraxrma)()
- function topbar_handleroqfbc()
- local script = handler
- local minimized = false
- function tween(object, _time, info)
- game:GetService'TweenService':Create(object, TweenInfo.new(_time), info):Play()
- end
- function hp(o, v)
- pcall(function() if o[v] then return true else return false end end)
- end
- script.Parent.minimizeButton.MouseButton1Click:connect(function()
- minimized = not minimized
- if minimized then
- tween(script.Parent.Parent, .4, {Size=UDim2.new(0, 557, 0, 27)})
- script.Parent.Parent.sidebar.Visible = false
- script.Parent.Parent.rightsideline.Visible = false
- for a,b in pairs(script.Parent.Parent.sections:GetChildren()) do
- if b then
- b.Visible = false
- end
- end
- else
- tween(script.Parent.Parent, .4, {Size=UDim2.new(0, 557, 0, 368)})
- wait(.25)
- script.Parent.Parent.sidebar.Visible = true
- script.Parent.Parent.rightsideline.Visible = true
- for a,b in pairs(script.Parent.Parent.sections:GetChildren()) do
- if b then
- b.Visible = true
- end
- end
- end
- end)
- script.Parent.closeButton.MouseButton1Click:connect(function()
- tween(script.Parent.Parent, .4, {Size=UDim2.new(0, 557, 0, 27)})
- script.Parent.Parent.sidebar.Visible = false
- script.Parent.Parent.rightsideline.Visible = false
- for a,b in pairs(script.Parent.Parent.sections:GetChildren()) do
- if b then
- b.Visible = false
- end
- end
- wait(.4)
- script.Parent.Parent.Parent:Destroy()
- end)
- end
- coroutine.wrap(topbar_handleroqfbc)()
- function main_smooth_draglgryf()
- local script = smooth_drag
- function dragify(Frame)
- local dragToggle = nil
- local dragSpeed = .25
- local dragInput = nil
- local dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(.25), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if (input.UserInputState == Enum.UserInputState.End) then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- dragify(script.Parent)
- end
- coroutine.wrap(main_smooth_draglgryf)()
- return {UI_LIBRARY_V2, sectiontemplate, template, topbar}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement