Shutupdevs1

devlib.lua

Nov 11th, 2022 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 86.18 KB | None | 0 0
  1.     -- This is a fork from Rain-Design's UI Library
  2.     local CoreGui = game:GetService("CoreGui")
  3.     local TweenService = game:GetService("TweenService")
  4.     local UserInputService = game:GetService("UserInputService")
  5.  
  6.     local Mouse = game.Players.LocalPlayer:GetMouse()
  7.  
  8.     local Blacklist = {Enum.KeyCode.Unknown, Enum.KeyCode.CapsLock, Enum.KeyCode.Escape, Enum.KeyCode.Tab, Enum.KeyCode.Return, Enum.KeyCode.Backspace, Enum.KeyCode.Space, Enum.KeyCode.W, Enum.KeyCode.A, Enum.KeyCode.S, Enum.KeyCode.D}
  9.     local PrefixKey = {["MouseButton2"] = "MB2", ["MouseButton1"] = "MB1"}
  10.    
  11.     if CoreGui:FindFirstChild("Shaman") then
  12.         CoreGui.Shaman:Destroy()
  13.         CoreGui.Tooltips:Destroy()
  14.     end
  15.  
  16.     local function CheckTable(table)
  17.         local i = 0
  18.         for _,v in pairs(table) do
  19.             i = i + 1
  20.         end
  21.         return i
  22.     end
  23.  
  24.     local TabSelected = nil
  25.     local EditOpened = false
  26.     local ColorElements = {}
  27.  
  28.     task.spawn(function()
  29.     while true do
  30.     if EditOpened and CheckTable(ColorElements) > 0 then
  31.     local hue = tick() % 7 / 7
  32.     local color = Color3.fromHSV(hue, 1, 1)
  33.  
  34.     for frame, v in pairs(ColorElements) do
  35.         if v.Enabled then
  36.             if frame.ClassName == "Frame" then
  37.             frame.BackgroundColor3 = color
  38.             else
  39.             frame.ImageColor3 = color
  40.             end
  41.         end
  42.     end
  43.     end
  44.     wait()
  45.     end
  46.     end)
  47.  
  48.     local library = {
  49.         Flags = {},
  50.         Discord = "8edyNK76re"
  51.     }
  52.  
  53.     local request = syn and syn.request or http and http.request or http_request or request or httprequest
  54.     local getcustomasset = getcustomasset or getsynasset
  55.     local isfolder = isfolder or syn_isfolder or is_folder
  56.     local makefolder = makefolder or make_folder or createfolder or create_folder
  57.  
  58.     if not isfolder("Shaman") then
  59.     local download = Instance.new("ScreenGui")
  60.     download.Name = "Download"
  61.     download.Enabled = true
  62.     download.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  63.     download.Parent = CoreGui
  64.  
  65.     local dMain = Instance.new("Frame")
  66.     dMain.Name = "DMain"
  67.     dMain.AnchorPoint = Vector2.new(0.5, 0.5)
  68.     dMain.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  69.     dMain.Position = UDim2.new(0.5, 0, 0.486, 0)
  70.     dMain.Size = UDim2.new(0, 285, 0, 77)
  71.     dMain.Parent = download
  72.  
  73.     local dUICorner = Instance.new("UICorner")
  74.     dUICorner.Name = "DUICorner"
  75.     dUICorner.CornerRadius = UDim.new(0, 5)
  76.     dUICorner.Parent = dMain
  77.  
  78.     local dUIStroke = Instance.new("UIStroke")
  79.     dUIStroke.Name = "DUIStroke"
  80.     dUIStroke.Color = Color3.fromRGB(45, 45, 45)
  81.     dUIStroke.Parent = dMain
  82.  
  83.     local dTopbar = Instance.new("Frame")
  84.     dTopbar.Name = "DTopbar"
  85.     dTopbar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  86.     dTopbar.Size = UDim2.new(0, 285, 0, 31)
  87.     dTopbar.Parent = dMain
  88.  
  89.     local dUICorner1 = Instance.new("UICorner")
  90.     dUICorner1.Name = "DUICorner"
  91.     dUICorner1.CornerRadius = UDim.new(0, 5)
  92.     dUICorner1.Parent = dTopbar
  93.  
  94.     local dFix = Instance.new("Frame")
  95.     dFix.Name = "DFix"
  96.     dFix.AnchorPoint = Vector2.new(0.5, 1)
  97.     dFix.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  98.     dFix.BorderSizePixel = 0
  99.     dFix.Position = UDim2.new(0.5, 0, 1.02, 0)
  100.     dFix.Size = UDim2.new(0, 284, 0, 1)
  101.     dFix.ZIndex = 2
  102.     dFix.Parent = dTopbar
  103.  
  104.     local dTitleText = Instance.new("TextLabel")
  105.     dTitleText.Name = "DTitleText"
  106.     dTitleText.Font = Enum.Font.GothamBold
  107.     dTitleText.Text = "Downloading Assets"
  108.     dTitleText.TextColor3 = Color3.fromRGB(255, 255, 255)
  109.     dTitleText.TextSize = 12
  110.     dTitleText.BackgroundColor3 = Color3.fromRGB(237, 237, 237)
  111.     dTitleText.BackgroundTransparency = 1
  112.     dTitleText.Position = UDim2.new(0.00132, 0, 0, 0)
  113.     dTitleText.Size = UDim2.new(0, 284, 0, 30)
  114.     dTitleText.ZIndex = 2
  115.     dTitleText.Parent = dTopbar
  116.  
  117.     local dText = Instance.new("TextLabel")
  118.     dText.Name = "DText"
  119.     dText.Font = Enum.Font.GothamBold
  120.     dText.Text = "Loading..."
  121.     dText.TextColor3 = Color3.fromRGB(237, 237, 237)
  122.     dText.TextSize = 11
  123.     dText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  124.     dText.BackgroundTransparency = 1
  125.     dText.Position = UDim2.new(0.00132, 0, 0.39, 0)
  126.     dText.Size = UDim2.new(0, 284, 0, 46)
  127.     dText.Parent = dMain
  128.        
  129.     makefolder("Shaman")
  130.        
  131.     local Circle = request({Url = "https://raw.githubusercontent.com/Rain-Design/Icons/main/Circle.png", Method = "GET"})
  132.     writefile("Shaman/Circle.png", Circle.Body)
  133.     dText.Text = "Downloaded: Circle.png"
  134.        
  135.     local ColorDropper = request({Url = "https://raw.githubusercontent.com/Rain-Design/Icons/main/ColorDropper.png", Method = "GET"})
  136.     writefile("Shaman/ColorDropper.png", ColorDropper.Body)
  137.     dText.Text = "Downloaded: ColorDropper.png"
  138.  
  139.     local Close = request({Url = "https://raw.githubusercontent.com/Rain-Design/Icons/main/Close.png", Method = "GET"})
  140.     writefile("Shaman/Close.png", Close.Body)
  141.     dText.Text = "Downloaded: Close.png"
  142.  
  143.     local CollapseArrow = request({Url = "https://raw.githubusercontent.com/Rain-Design/Icons/main/CollapseArrow.png", Method = "GET"})
  144.     writefile("Shaman/CollapseArrow.png", CollapseArrow.Body)
  145.     dText.Text = "Downloaded: CollapseArrow.png"
  146.        
  147.     local RadioButton = request({Url = "https://raw.githubusercontent.com/Rain-Design/Icons/main/RadioButton.png", Method = "GET"})
  148.     writefile("Shaman/RadioButton.png", RadioButton.Body)
  149.     dText.Text = "Downloaded: RadioButton.png"
  150.        
  151.     local RadioOuter = request({Url = "https://raw.githubusercontent.com/Rain-Design/Icons/main/RadioOuter.png", Method = "GET"})
  152.     writefile("Shaman/RadioOuter.png", RadioOuter.Body)
  153.     dText.Text = "Downloaded: RadioOuter.png"
  154.        
  155.     local RadioInner = request({Url = "https://raw.githubusercontent.com/Rain-Design/Icons/main/RadioInner.png", Method = "GET"})
  156.     writefile("Shaman/RadioInner.png", RadioInner.Body)
  157.     dText.Text = "Downloaded: RadioInner.png"
  158.  
  159.     download:Destroy()
  160.     end
  161.  
  162.     function library:GetXY(GuiObject)
  163.         local Max, May = GuiObject.AbsoluteSize.X, GuiObject.AbsoluteSize.Y
  164.         local Px, Py = math.clamp(Mouse.X - GuiObject.AbsolutePosition.X, 0, Max), math.clamp(Mouse.Y - GuiObject.AbsolutePosition.Y, 0, May)
  165.         return Px/Max, Py/May
  166.     end
  167.  
  168.     function library:Window(Info)
  169.     Info.Text = Info.Text or "Shaman"
  170.  
  171.     local window = {}
  172.  
  173.     local shamanScreenGui = Instance.new("ScreenGui")
  174.     shamanScreenGui.Name = "Shaman"
  175.     shamanScreenGui.Parent = CoreGui
  176.  
  177.     local tooltipScreenGui = Instance.new("ScreenGui")
  178.     tooltipScreenGui.Name = "Tooltips"
  179.     tooltipScreenGui.Parent = CoreGui
  180.  
  181.     local function Tooltip(text)
  182.     local tooltip = Instance.new("Frame")
  183.     tooltip.Name = "Tooltip"
  184.     tooltip.AnchorPoint = Vector2.new(0.5, 0)
  185.     tooltip.BackgroundColor3 = Color3.fromRGB(79, 79, 79)
  186.     tooltip.Visible = false
  187.     tooltip.Position = UDim2.new(0.352, 0, 0.0741, 0)
  188.     tooltip.Size = UDim2.new(0, 100, 0, 19)
  189.     tooltip.ZIndex = 5
  190.     tooltip.Parent = tooltipScreenGui
  191.  
  192.     local newuICorner = Instance.new("UICorner")
  193.     newuICorner.Name = "UICorner"
  194.     newuICorner.CornerRadius = UDim.new(0, 3)
  195.     newuICorner.Parent = tooltip
  196.  
  197.     local newuIStroke = Instance.new("UIStroke")
  198.     newuIStroke.Name = "UIStroke"
  199.     newuIStroke.Color = Color3.fromRGB(98, 98, 98)
  200.     newuIStroke.Parent = tooltip
  201.  
  202.     local tooltipText = Instance.new("TextLabel")
  203.     tooltipText.Name = "TooltipText"
  204.     tooltipText.Font = Enum.Font.GothamBold
  205.     tooltipText.Text = text
  206.     tooltipText.TextColor3 = Color3.fromRGB(217, 217, 217)
  207.     tooltipText.TextSize = 11
  208.     tooltipText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  209.     tooltipText.BackgroundTransparency = 1
  210.     tooltipText.Size = UDim2.new(0, 100, 0, 19)
  211.     tooltipText.Parent = tooltip
  212.     tooltipText.ZIndex = 6
  213.  
  214.     local TextBounds = tooltipText.TextBounds
  215.  
  216.     tooltip.Size = UDim2.new(0, TextBounds.X + 10, 0, 19)
  217.     tooltipText.Size = UDim2.new(0, TextBounds.X + 10, 0, 19)
  218.  
  219.     return tooltip
  220.     end
  221.  
  222.     local function AddTooltip(element, text)
  223.         local Tooltip = Tooltip(text)
  224.         local Hovered = false
  225.        
  226.         local function Update()
  227.         local MousePos = UserInputService:GetMouseLocation()
  228.         local Viewport = workspace.CurrentCamera.ViewportSize
  229.        
  230.         Tooltip.Position = UDim2.new(MousePos.X / Viewport.X, 0, MousePos.Y / Viewport.Y, 0) + UDim2.new(0,0,0,-43)
  231.         end
  232.  
  233.         element.MouseEnter:Connect(function()
  234.             Hovered = true
  235.             wait(.5)
  236.             if Hovered then
  237.             Tooltip.Visible = true
  238.             end
  239.         end)
  240.        
  241.         element.MouseLeave:Connect(function()
  242.             Hovered = false
  243.             Tooltip.Visible = false
  244.         end)
  245.        
  246.         element.MouseMoved:Connect(function()
  247.             Update()
  248.         end)
  249.     end
  250.  
  251.     local main = Instance.new("Frame")
  252.     main.Name = "Main"
  253.     main.BackgroundColor3 = Color3.fromRGB(27, 27, 27)
  254.     main.BorderSizePixel = 0
  255.     main.ClipsDescendants = true
  256.     main.Position = UDim2.new(0.361, 0, 0.308, 0)
  257.     main.Size = UDim2.new(0, 450, 0, 321)
  258.     main.Parent = shamanScreenGui
  259.  
  260.     local uICorner = Instance.new("UICorner")
  261.     uICorner.Name = "UICorner"
  262.     uICorner.CornerRadius = UDim.new(0, 5)
  263.     uICorner.Parent = main
  264.  
  265.     local topbar = Instance.new("Frame")
  266.     topbar.Name = "Topbar"
  267.     topbar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  268.     topbar.Size = UDim2.new(0, 450, 0, 31)
  269.     topbar.Parent = main
  270.     topbar.ZIndex = 2
  271.  
  272.     local dragging
  273.     local dragInput
  274.     local dragStart
  275.     local startPos
  276.  
  277.     local function update(input)
  278.         local delta = input.Position - dragStart
  279.         main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  280.     end
  281.  
  282.     topbar.InputBegan:Connect(function(input)
  283.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  284.             dragging = true
  285.             dragStart = input.Position
  286.             startPos = main.Position
  287.                    
  288.             input.Changed:Connect(function()
  289.                 if input.UserInputState == Enum.UserInputState.End then
  290.                     dragging = false
  291.                 end
  292.             end)
  293.         end
  294.     end)
  295.  
  296.     topbar.InputChanged:Connect(function(input)
  297.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  298.             dragInput = input
  299.         end
  300.     end)
  301.  
  302.     UserInputService.InputChanged:Connect(function(input)
  303.         if input == dragInput and dragging then
  304.             update(input)
  305.         end
  306.     end)
  307.  
  308.  
  309.     local uICorner1 = Instance.new("UICorner")
  310.     uICorner1.Name = "UICorner"
  311.     uICorner1.Parent = topbar
  312.  
  313.     local frame = Instance.new("Frame")
  314.     frame.Name = "Frame"
  315.     frame.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  316.     frame.BorderSizePixel = 0
  317.     frame.Position = UDim2.new(0, 0, 0.625, 0)
  318.     frame.Size = UDim2.new(0, 450, 0, 11)
  319.     frame.Parent = topbar
  320.  
  321.     local frame1 = Instance.new("Frame")
  322.     frame1.Name = "Frame"
  323.     frame1.AnchorPoint = Vector2.new(0.5, 1)
  324.     frame1.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  325.     frame1.BorderSizePixel = 0
  326.     frame1.Position = UDim2.new(0.5, 0, 1, 0)
  327.     frame1.Size = UDim2.new(0, 450, 0, 1)
  328.     frame1.ZIndex = 2
  329.     frame1.Parent = frame
  330.  
  331.     local uIGradient = Instance.new("UIGradient")
  332.     uIGradient.Name = "UIGradient"
  333.     uIGradient.Color = ColorSequence.new({
  334.     ColorSequenceKeypoint.new(0, Color3.fromRGB(183, 248, 219)),
  335.     ColorSequenceKeypoint.new(1, Color3.fromRGB(80, 167, 194)),
  336.     })
  337.     uIGradient.Enabled = false
  338.     uIGradient.Parent = frame1
  339.  
  340.     local textLabel = Instance.new("TextLabel")
  341.     textLabel.Name = "TextLabel"
  342.     textLabel.Font = Enum.Font.GothamBold
  343.     textLabel.Text = Info.Text
  344.     textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  345.     textLabel.TextSize = 12
  346.     textLabel.TextXAlignment = Enum.TextXAlignment.Left
  347.     textLabel.BackgroundColor3 = Color3.fromRGB(237, 237, 237)
  348.     textLabel.BackgroundTransparency = 1
  349.     textLabel.Position = UDim2.new(0.015, 0, 0, 0)
  350.     textLabel.Size = UDim2.new(0, 51, 0, 30)
  351.     textLabel.ZIndex = 2
  352.     textLabel.Parent = topbar
  353.  
  354.     local closeButton = Instance.new("ImageButton")
  355.     closeButton.Name = "CloseButton"
  356.     closeButton.Image = getcustomasset("Shaman/Close.png")
  357.     closeButton.ImageColor3 = Color3.fromRGB(237, 237, 237)
  358.     closeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  359.     closeButton.BackgroundTransparency = 1
  360.     closeButton.Position = UDim2.new(0.947, 0, 0.194, 0)
  361.     closeButton.Size = UDim2.new(0, 17, 0, 17)
  362.     closeButton.ZIndex = 2
  363.     closeButton.Parent = topbar
  364.  
  365.     closeButton.MouseButton1Click:Once(function()
  366.         shamanScreenGui:Destroy()
  367.         tooltipScreenGui:Destroy()
  368.     end)
  369.  
  370.     closeButton.MouseEnter:Connect(function()
  371.         TweenService:Create(closeButton, TweenInfo.new(.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(217, 97, 99)}):Play()
  372.     end)
  373.  
  374.     closeButton.MouseLeave:Connect(function()
  375.         TweenService:Create(closeButton, TweenInfo.new(.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(217, 217, 217)}):Play()
  376.     end)
  377.  
  378.     local minimizeButton = Instance.new("ImageButton")
  379.     minimizeButton.Name = "MinimizeButton"
  380.     minimizeButton.Image = "rbxassetid://10664064072"
  381.     minimizeButton.ImageColor3 = Color3.fromRGB(237, 237, 237)
  382.     minimizeButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  383.     minimizeButton.BackgroundTransparency = 1
  384.     minimizeButton.Position = UDim2.new(0.893, 0, 0.194, 0)
  385.     minimizeButton.Size = UDim2.new(0, 17, 0, 17)
  386.     minimizeButton.ZIndex = 2
  387.     minimizeButton.Parent = topbar
  388.  
  389.     minimizeButton.MouseEnter:Connect(function()
  390.         TweenService:Create(minimizeButton, TweenInfo.new(.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(194, 162, 76)}):Play()
  391.     end)
  392.  
  393.     minimizeButton.MouseLeave:Connect(function()
  394.         TweenService:Create(minimizeButton, TweenInfo.new(.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(217, 217, 217)}):Play()
  395.     end)
  396.  
  397.     local Opened = true
  398.  
  399.     minimizeButton.MouseButton1Click:Connect(function()
  400.         Opened = not Opened
  401.        
  402.         topbar.Frame.Visible = Opened
  403.         task.spawn(function()
  404.         if Opened then
  405.             wait(.15)
  406.         end
  407.         for _,v in pairs(main:GetChildren()) do
  408.             if v.Name == "TabContainer" then
  409.                 v.Visible = Opened
  410.             end
  411.         end
  412.         for _,v in pairs(main:GetChildren()) do
  413.         if v.Name == "LeftContainer" or v.Name == "RightContainer" and v.Visible then
  414.             v.Size = Opened and UDim2.new(0, 168,0, 287) or UDim2.new(0, 168,0, 0)
  415.         end
  416.         end
  417.         end)
  418.        
  419.         TweenService:Create(main, TweenInfo.new(.2, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = Opened and UDim2.new(0, 450,0, 321) or UDim2.new(0, 450,0, 30)}):Play()
  420.     end)
  421.  
  422.     local editButton = Instance.new("ImageButton")
  423.     editButton.Name = "EditButton"
  424.     editButton.Image = getcustomasset("Shaman/ColorDropper.png")
  425.     editButton.ImageColor3 = Color3.fromRGB(237, 237, 237)
  426.     editButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  427.     editButton.BackgroundTransparency = 1
  428.     editButton.Position = UDim2.new(0.841, 0, 0.226, 0)
  429.     editButton.Size = UDim2.new(0, 15, 0, 15)
  430.     editButton.ZIndex = 2
  431.     editButton.Parent = topbar
  432.  
  433.     local uiGradient = Instance.new("UIGradient")
  434.     uiGradient.Name = "UIGradient"
  435.     uiGradient.Enabled = false
  436.     uiGradient.Color = ColorSequence.new{
  437.         ColorSequenceKeypoint.new(0,Color3.fromRGB(255,0,0)),
  438.         ColorSequenceKeypoint.new(0.2,Color3.fromRGB(255,255,0)),
  439.         ColorSequenceKeypoint.new(0.4,Color3.fromRGB(0,255,0)),
  440.         ColorSequenceKeypoint.new(0.6,Color3.fromRGB(0,255,255)),
  441.         ColorSequenceKeypoint.new(0.8,Color3.fromRGB(0,0,255)),
  442.         ColorSequenceKeypoint.new(1,Color3.fromRGB(255,0,255)),
  443.     }
  444.     uiGradient.Parent = editButton
  445.  
  446.     task.spawn(function()
  447.         while wait() do -- skidded from devforum
  448.         if uiGradient.Enabled then
  449.         local loop = tick() % 2 / 2
  450.         colors = {}
  451.         for i = 1, 7 + 1, 1 do
  452.             z = Color3.fromHSV(loop - ((i - 1)/7), 1, 1)
  453.             if loop - ((i - 1) / 7) < 0 then
  454.                 z = Color3.fromHSV((loop - ((i - 1) / 7)) + 1, 1, 1)
  455.             end
  456.             local d = ColorSequenceKeypoint.new((i - 1) / 7, z)
  457.             table.insert(colors, #colors + 1, d)
  458.         end
  459.         uiGradient.Color = ColorSequence.new(colors)
  460.     end
  461.     end
  462.     end)
  463.  
  464.     editButton.MouseEnter:Connect(function()
  465.         if not EditOpened then
  466.             uiGradient.Enabled = true
  467.         end
  468.     end)
  469.  
  470.     editButton.MouseLeave:Connect(function()
  471.         if not EditOpened then
  472.             uiGradient.Enabled = false
  473.         end
  474.     end)
  475.  
  476.     editButton.MouseButton1Click:Connect(function()
  477.         EditOpened = not EditOpened
  478.        
  479.         uiGradient.Enabled = EditOpened and true or false
  480.        
  481.         if not EditOpened then
  482.             for frame, v in pairs(ColorElements) do
  483.                 if v.Enabled then
  484.                     if frame.ClassName == "Frame" then
  485.                     TweenService:Create(frame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = Color3.fromRGB(255, 105, 180)}):Play()
  486.                     else
  487.                     TweenService:Create(frame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(48, 207, 106)}):Play()
  488.                     end
  489.                 end
  490.             end
  491.         else
  492.             for _,v in pairs(ColorElements) do
  493.                 if v.Type ~= "Toggle" then
  494.                     v.Enabled = true
  495.                 end
  496.             end
  497.         end
  498.     end)
  499.  
  500.     local tabContainer = Instance.new("Frame")
  501.     tabContainer.Name = "TabContainer"
  502.     tabContainer.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  503.     tabContainer.Position = UDim2.new(0, 0, 0.0935, 0)
  504.     tabContainer.Size = UDim2.new(0, 114, 0, 291)
  505.     tabContainer.Parent = main
  506.  
  507.     local uICorner2 = Instance.new("UICorner")
  508.     uICorner2.Name = "UICorner"
  509.     uICorner2.CornerRadius = UDim.new(0, 5)
  510.     uICorner2.Parent = tabContainer
  511.  
  512.     local fix = Instance.new("Frame")
  513.     fix.Name = "Fix"
  514.     fix.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  515.     fix.BorderSizePixel = 0
  516.     fix.Position = UDim2.new(0.895, 0, 0, 0)
  517.     fix.Size = UDim2.new(0, 11, 0, 285)
  518.     fix.Parent = tabContainer
  519.  
  520.     local fix1 = Instance.new("Frame")
  521.     fix1.Name = "Fix"
  522.     fix1.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  523.     fix1.BorderSizePixel = 0
  524.     fix1.Position = UDim2.new(0, 0, -0.00351, 0)
  525.     fix1.Size = UDim2.new(0, 11, 0, 79)
  526.     fix1.Parent = tabContainer
  527.  
  528.     local scrollingContainer = Instance.new("ScrollingFrame")
  529.     scrollingContainer.Name = "ScrollingContainer"
  530.     scrollingContainer.AutomaticCanvasSize = Enum.AutomaticSize.Y
  531.     scrollingContainer.CanvasSize = UDim2.new()
  532.     scrollingContainer.ScrollBarImageColor3 = Color3.fromRGB(56, 56, 56)
  533.     scrollingContainer.ScrollBarThickness = 2
  534.     scrollingContainer.Active = true
  535.     scrollingContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  536.     scrollingContainer.BackgroundTransparency = 1
  537.     scrollingContainer.BorderSizePixel = 0
  538.     scrollingContainer.Size = UDim2.new(0, 114, 0, 285)
  539.     scrollingContainer.ZIndex = 2
  540.     scrollingContainer.Parent = tabContainer
  541.  
  542.     function window:Tab(Info)
  543.     Info.Text = Info.Text or "Tab"
  544.  
  545.     local tab = {}
  546.  
  547.     local tabButton = Instance.new("Frame")
  548.     tabButton.Name = "TabButton"
  549.     tabButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  550.     tabButton.BackgroundTransparency = 1
  551.     tabButton.Size = UDim2.new(0, 113, 0, 27)
  552.     tabButton.Parent = scrollingContainer
  553.  
  554.     local tabFrame = Instance.new("Frame")
  555.     tabFrame.Name = "TabFrame"
  556.     tabFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  557.     tabFrame.BackgroundTransparency = 0.96
  558.     tabFrame.BorderSizePixel = 0
  559.     tabFrame.Position = UDim2.new(0.067, -5, 0.013, 3)
  560.     tabFrame.Size = UDim2.new(0, 107, 0, 23)
  561.     tabFrame.ZIndex = 2
  562.     tabFrame.Parent = tabButton
  563.  
  564.     tabFrame.MouseEnter:Connect(function()
  565.         if TabSelected ~= tabFrame or TabSelected == nil then
  566.             TweenService:Create(tabFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = .93}):Play()
  567.         end
  568.     end)
  569.  
  570.     tabFrame.MouseLeave:Connect(function()
  571.         if TabSelected ~= tabFrame or TabSelected == nil then
  572.             TweenService:Create(tabFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = .96}):Play()
  573.         end
  574.     end)
  575.  
  576.     local tabTextButton = Instance.new("TextButton")
  577.     tabTextButton.Name = "TabTextButton"
  578.     tabTextButton.Font = Enum.Font.SourceSans
  579.     tabTextButton.Text = ""
  580.     tabTextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  581.     tabTextButton.TextSize = 14
  582.     tabTextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  583.     tabTextButton.BackgroundTransparency = 1
  584.     tabTextButton.Size = UDim2.new(0, 107, 0, 23)
  585.     tabTextButton.Parent = tabFrame
  586.  
  587.     local uICorner3 = Instance.new("UICorner")
  588.     uICorner3.Name = "UICorner"
  589.     uICorner3.CornerRadius = UDim.new(0, 3)
  590.     uICorner3.Parent = tabFrame
  591.  
  592.     local textLabel1 = Instance.new("TextLabel")
  593.     textLabel1.Name = "TextLabel"
  594.     textLabel1.Font = Enum.Font.GothamBold
  595.     textLabel1.Text = Info.Text
  596.     textLabel1.TextColor3 = Color3.fromRGB(237, 237, 237)
  597.     textLabel1.TextSize = 11
  598.     textLabel1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  599.     textLabel1.BackgroundTransparency = 1
  600.     textLabel1.Size = UDim2.new(0, 108, 0, 23)
  601.     textLabel1.ZIndex = 2
  602.     textLabel1.Parent = tabFrame
  603.  
  604.     local uIStroke = Instance.new("UIStroke")
  605.     uIStroke.Name = "UIStroke"
  606.     uIStroke.Color = Color3.fromRGB(68, 68, 68) -- 183, 248, 219
  607.     uIStroke.Transparency = 0.45
  608.     uIStroke.Parent = tabFrame
  609.  
  610.     local selected = Instance.new("Frame")
  611.     selected.Name = "Selected"
  612.     selected.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  613.     selected.BackgroundTransparency = 0.1
  614.     selected.Visible = false
  615.     selected.BorderSizePixel = 0
  616.     selected.Position = UDim2.new(0.067, -5, 0.013, 3)
  617.     selected.Size = UDim2.new(0, 108, 0, 23)
  618.     selected.Parent = tabButton
  619.  
  620.     local uICorner4 = Instance.new("UICorner")
  621.     uICorner4.Name = "UICorner"
  622.     uICorner4.CornerRadius = UDim.new(0, 3)
  623.     uICorner4.Parent = selected
  624.  
  625.     local uIGradient1 = Instance.new("UIGradient")
  626.     uIGradient1.Name = "UIGradient"
  627.     uIGradient1.Parent = selected
  628.     uIGradient1.Color = ColorSequence.new({
  629.     ColorSequenceKeypoint.new(0, Color3.fromRGB(183, 248, 219)),
  630.     ColorSequenceKeypoint.new(1, Color3.fromRGB(25, 25, 25)),
  631.     })
  632.     uIGradient1.Transparency = NumberSequence.new({
  633.     NumberSequenceKeypoint.new(0, 0.5),
  634.     NumberSequenceKeypoint.new(0.688, 0.725),
  635.     NumberSequenceKeypoint.new(1, 0.506),
  636.     })
  637.  
  638.     local leftContainer = Instance.new("ScrollingFrame")
  639.     leftContainer.Name = "LeftContainer"
  640.     leftContainer.AutomaticCanvasSize = Enum.AutomaticSize.Y
  641.     leftContainer.CanvasSize = UDim2.new()
  642.     leftContainer.ScrollBarThickness = 0
  643.     leftContainer.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
  644.     leftContainer.BorderSizePixel = 0
  645.     leftContainer.Position = UDim2.new(0.253, 0, 0.0935, 0)
  646.     leftContainer.Selectable = false
  647.     leftContainer.Size = UDim2.new(0, 168, 0, 287)
  648.     leftContainer.Parent = main
  649.     leftContainer.Visible = false
  650.  
  651.     local uIListLayout2 = Instance.new("UIListLayout")
  652.     uIListLayout2.Name = "UIListLayout"
  653.     uIListLayout2.SortOrder = Enum.SortOrder.LayoutOrder
  654.     uIListLayout2.Parent = leftContainer
  655.  
  656.     local uIPadding2 = Instance.new("UIPadding")
  657.     uIPadding2.Name = "UIPadding"
  658.     uIPadding2.PaddingLeft = UDim.new(0, 4)
  659.     uIPadding2.PaddingTop = UDim.new(0, 3)
  660.     uIPadding2.Parent = leftContainer
  661.  
  662.     local rightContainer = Instance.new("ScrollingFrame")
  663.     rightContainer.Name = "RightContainer"
  664.     rightContainer.AutomaticCanvasSize = Enum.AutomaticSize.Y
  665.     rightContainer.CanvasSize = UDim2.new()
  666.     rightContainer.ScrollBarThickness = 0
  667.     rightContainer.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
  668.     rightContainer.BorderSizePixel = 0
  669.     rightContainer.Position = UDim2.new(0.627, 0, 0.0935, 0)
  670.     rightContainer.Selectable = false
  671.     rightContainer.Size = UDim2.new(0, 168, 0, 287)
  672.     rightContainer.Parent = main
  673.     rightContainer.Visible = false
  674.  
  675.     local uIListLayout3 = Instance.new("UIListLayout")
  676.     uIListLayout3.Name = "UIListLayout"
  677.     uIListLayout3.SortOrder = Enum.SortOrder.LayoutOrder
  678.     uIListLayout3.Parent = rightContainer
  679.  
  680.     local uIPadding3 = Instance.new("UIPadding")
  681.     uIPadding3.Name = "UIPadding"
  682.     uIPadding3.PaddingLeft = UDim.new(0, 2)
  683.     uIPadding3.PaddingTop = UDim.new(0, 3)
  684.     uIPadding3.Parent = rightContainer
  685.  
  686.     local uICorner8 = Instance.new("UICorner")
  687.     uICorner8.Name = "UICorner"
  688.     uICorner8.CornerRadius = UDim.new(0, 3)
  689.     uICorner8.Parent = rightContainer
  690.  
  691.     function tab:Section(Info)
  692.     Info.Text = Info.Text or "Section"
  693.     Info.Side = Info.Side or "Left"
  694.  
  695.     local SizeY = 23
  696.  
  697.     local sectiontable = {}
  698.  
  699.     local Side
  700.        
  701.     if Info.Side == "Left" then
  702.         Side = leftContainer
  703.         else
  704.         Side = rightContainer
  705.     end
  706.        
  707.     local section = Instance.new("Frame")
  708.     section.Name = "Section"
  709.     section.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
  710.     section.BackgroundTransparency = 1
  711.     section.Size = UDim2.new(0, 162, 0, 27)
  712.     section.Parent = Side
  713.  
  714.     local Closed = Instance.new("BoolValue", section)
  715.     Closed.Value = false
  716.  
  717.     local sectionFrame = Instance.new("Frame")
  718.     sectionFrame.Name = "SectionFrame"
  719.     sectionFrame.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
  720.     sectionFrame.ClipsDescendants = true
  721.     sectionFrame.Size = UDim2.new(0, 162, 0, 23)
  722.     sectionFrame.Parent = section
  723.  
  724.     sectionFrame.ChildAdded:Connect(function(v)
  725.         if v.ClassName == "Frame" then
  726.             if v.Name == "Slider" then
  727.             SizeY = SizeY + 40
  728.             else
  729.             SizeY = SizeY + 27
  730.             end
  731.         end
  732.     end)
  733.  
  734.     local uIStroke3 = Instance.new("UIStroke")
  735.     uIStroke3.Name = "UIStroke"
  736.     uIStroke3.Color = Color3.fromRGB(52, 52, 52)
  737.     uIStroke3.Parent = sectionFrame
  738.  
  739.     local uICorner7 = Instance.new("UICorner")
  740.     uICorner7.Name = "UICorner"
  741.     uICorner7.CornerRadius = UDim.new(0, 3)
  742.     uICorner7.Parent = sectionFrame
  743.  
  744.     local uIListLayout1 = Instance.new("UIListLayout")
  745.     uIListLayout1.Name = "UIListLayout"
  746.     uIListLayout1.SortOrder = Enum.SortOrder.LayoutOrder
  747.     uIListLayout1.Parent = sectionFrame
  748.  
  749.     local uIPadding1 = Instance.new("UIPadding")
  750.     uIPadding1.Name = "UIPadding"
  751.     uIPadding1.PaddingTop = UDim.new(0, 23)
  752.     uIPadding1.Parent = sectionFrame
  753.  
  754.     local sectionName = Instance.new("TextLabel")
  755.     sectionName.Name = "SectionName"
  756.     sectionName.Font = Enum.Font.GothamBold
  757.     sectionName.Text = Info.Text
  758.     sectionName.TextColor3 = Color3.fromRGB(217, 217, 217)
  759.     sectionName.TextSize = 11
  760.     sectionName.TextXAlignment = Enum.TextXAlignment.Left
  761.     sectionName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  762.     sectionName.BackgroundTransparency = 1
  763.     sectionName.Position = UDim2.new(0.0488, 0, 0, 0)
  764.     sectionName.Size = UDim2.new(0, 128, 0, 23)
  765.     sectionName.Parent = section
  766.  
  767.     local sectionButton = Instance.new("TextButton")
  768.     sectionButton.Name = "SectionButton"
  769.     sectionButton.Font = Enum.Font.SourceSans
  770.     sectionButton.Text = ""
  771.     sectionButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  772.     sectionButton.TextSize = 14
  773.     sectionButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  774.     sectionButton.BackgroundTransparency = 1
  775.     sectionButton.Size = UDim2.new(0, 162, 0, 23)
  776.     sectionButton.ZIndex = 2
  777.     sectionButton.Parent = section
  778.  
  779.     local sectionIcon = Instance.new("ImageButton")
  780.     sectionIcon.Name = "SectionButton"
  781.     sectionIcon.Image = "rbxassetid://10664195729"
  782.     sectionIcon.ImageColor3 = Color3.fromRGB(217, 217, 217)
  783.     sectionIcon.AnchorPoint = Vector2.new(1, 0)
  784.     sectionIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  785.     sectionIcon.BackgroundTransparency = 1
  786.     sectionIcon.Position = UDim2.new(1, -5, 0, 5)
  787.     sectionIcon.Size = UDim2.new(0, 13, 0, 13)
  788.     sectionIcon.ZIndex = 1
  789.     sectionIcon.Parent = section
  790.  
  791.     sectionButton.MouseButton1Click:Connect(function()
  792.         Closed.Value = not Closed.Value
  793.         --#d96163
  794.        
  795.        
  796.         TweenService:Create(section, TweenInfo.new(.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = Closed.Value and UDim2.new(0, 162, 0, SizeY + 4) or UDim2.new(0, 162, 0, 27)}):Play()
  797.         TweenService:Create(sectionFrame, TweenInfo.new(.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = Closed.Value and UDim2.new(0, 162, 0, SizeY) or UDim2.new(0, 162, 0, 23)}):Play()
  798.         TweenService:Create(sectionIcon, TweenInfo.new(.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Closed.Value and Color3.fromRGB(217, 97, 99) or Color3.fromRGB(217, 217, 217)}):Play()
  799.         TweenService:Create(sectionIcon, TweenInfo.new(.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Rotation = Closed.Value and 45 or 0}):Play()
  800.     end)
  801.  
  802.     function sectiontable:Label(Info)
  803.     Info.Text = Info.Text or "Label"
  804.     Info.Color = Info.Color or Color3.fromRGB(217, 217, 217)
  805.     Info.Tooltip = Info.Tooltip or ""
  806.  
  807.     local insidelabel = {}
  808.  
  809.     local label = Instance.new("Frame")
  810.     label.Name = "Label"
  811.     label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  812.     label.BackgroundTransparency = 1
  813.     label.Size = UDim2.new(0, 162, 0, 27)
  814.     label.Parent = sectionFrame
  815.  
  816.     if Info.Tooltip ~= "" then
  817.         AddTooltip(label, Info.Tooltip)
  818.     end
  819.  
  820.     local labelText = Instance.new("TextLabel")
  821.     labelText.Name = "LabelText"
  822.     labelText.Font = Enum.Font.GothamBold
  823.     labelText.TextColor3 = Info.Color
  824.     labelText.Text = Info.Text
  825.     labelText.TextSize = 11
  826.     labelText.TextXAlignment = Enum.TextXAlignment.Left
  827.     labelText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  828.     labelText.BackgroundTransparency = 1
  829.     labelText.Position = UDim2.new(0.0488, 0, 0, 0)
  830.     labelText.Size = UDim2.new(0, 156, 0, 27)
  831.     labelText.Parent = label
  832.  
  833.     function insidelabel:Set(SetInfo)
  834.     SetInfo.Text = SetInfo.Text or labelText.Text
  835.     SetInfo.Color = SetInfo.Color or labelText.TextColor3
  836.  
  837.     labelText.Text = SetInfo.Text
  838.     labelText.TextColor3 = SetInfo.Color
  839.     end
  840.  
  841.     return insidelabel
  842.     end
  843.  
  844.     function sectiontable:Keybind(Info)
  845.     Info.Text = Info.Text or "Keybind"
  846.     Info.Default = Info.Default or Enum.KeyCode.F4
  847.     Info.Callback = Info.Callback or function() end
  848.     Info.Tooltip = Info.Tooltip or ""
  849.  
  850.     local PressKey = Info.Default
  851.     local keybind = Instance.new("Frame")
  852.     keybind.Name = "Keybind"
  853.     keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  854.     keybind.BackgroundTransparency = 1
  855.     keybind.Size = UDim2.new(0, 162, 0, 27)
  856.     keybind.Parent = sectionFrame
  857.  
  858.     if Info.Tooltip ~= "" then
  859.         AddTooltip(keybind, Info.Tooltip)
  860.     end
  861.  
  862.     local keybindText = Instance.new("TextLabel")
  863.     keybindText.Name = "KeybindText"
  864.     keybindText.Font = Enum.Font.GothamBold
  865.     keybindText.Text = Info.Text
  866.     keybindText.TextColor3 = Color3.fromRGB(217, 217, 217)
  867.     keybindText.TextSize = 11
  868.     keybindText.TextXAlignment = Enum.TextXAlignment.Left
  869.     keybindText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  870.     keybindText.BackgroundTransparency = 1
  871.     keybindText.Position = UDim2.new(0.0488, 0, 0, 0)
  872.     keybindText.Size = UDim2.new(0, 156, 0, 27)
  873.     keybindText.Parent = keybind
  874.  
  875.     local keybindFrame = Instance.new("Frame")
  876.     keybindFrame.Name = "KeybindFrame"
  877.     keybindFrame.BackgroundColor3 = Color3.fromRGB(68, 68, 68)
  878.     keybindFrame.AnchorPoint = Vector2.new(1, 0)
  879.     keybindFrame.BorderSizePixel = 0
  880.     keybindFrame.Position = UDim2.new(0, 158, 0.222, 0)
  881.     keybindFrame.Size = UDim2.new(0, 30, 0, 15)
  882.     keybindFrame.Parent = keybind
  883.  
  884.     local keybindUICorner = Instance.new("UICorner")
  885.     keybindUICorner.Name = "KeybindUICorner"
  886.     keybindUICorner.CornerRadius = UDim.new(0, 3)
  887.     keybindUICorner.Parent = keybindFrame
  888.  
  889.     local keybindFrameText = Instance.new("TextLabel")
  890.     keybindFrameText.Name = "KeybindFrameText"
  891.     keybindFrameText.Font = Enum.Font.GothamBold
  892.     keybindFrameText.Text = PressKey.Name
  893.     keybindFrameText.TextColor3 = Color3.fromRGB(217, 217, 217)
  894.     keybindFrameText.TextSize = 11
  895.     keybindFrameText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  896.     keybindFrameText.BackgroundTransparency = 1
  897.     keybindFrameText.Size = UDim2.new(1, 0, 0, 15)
  898.     keybindFrameText.Parent = keybindFrame
  899.  
  900.     local keybindButton = Instance.new("TextButton")
  901.     keybindButton.Name = "KeybindButton"
  902.     keybindButton.Font = Enum.Font.SourceSans
  903.     keybindButton.Text = ""
  904.     keybindButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  905.     keybindButton.TextSize = 14
  906.     keybindButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  907.     keybindButton.BackgroundTransparency = 1
  908.     keybindButton.Size = UDim2.new(1, 0, 0, 15)
  909.     keybindButton.Parent = keybindFrame
  910.  
  911.     local keybindUIStroke = Instance.new("UIStroke")
  912.     keybindUIStroke.Name = "KeybindUIStroke"
  913.     keybindUIStroke.Color = Color3.fromRGB(84, 84, 84)
  914.     keybindUIStroke.Parent = keybindFrame
  915.  
  916.     local TextBounds = keybindFrameText.TextBounds
  917.  
  918.     keybindFrame.Size = UDim2.new(0, TextBounds.X + 10, 0, 15)
  919.  
  920.     keybindFrameText:GetPropertyChangedSignal("Text"):Connect(function()
  921.         TextBounds = keybindFrameText.TextBounds
  922.        
  923.         keybindFrame.Size = UDim2.new(0, TextBounds.X + 10, 0, 15)
  924.     end)
  925.  
  926.     local KeybindConnection
  927.     local Changing = false
  928.  
  929.     keybindButton.MouseButton1Click:Connect(function()
  930.         if KeybindConnection then KeybindConnection:Disconnect() end
  931.         Changing = true
  932.         keybindFrameText.Text = "..."
  933.         KeybindConnection = UserInputService.InputBegan:Connect(function(Key, gameProcessed)
  934.             if not table.find(Blacklist, Key.KeyCode) and not gameProcessed then
  935.                 KeybindConnection:Disconnect()
  936.                 keybindFrameText.Text = Key.KeyCode.Name
  937.                 PressKey = Key.KeyCode
  938.                 wait(.1)
  939.                 Changing = false
  940.             end
  941.         end)
  942.     end)
  943.  
  944.     UserInputService.InputBegan:Connect(function(Key, gameProcessed)
  945.         if not Changing and Key.KeyCode == PressKey and not gameProcessed then
  946.             task.spawn(function()
  947.                 pcall(Info.Callback)
  948.             end)
  949.         end
  950.     end)
  951.  
  952.     end
  953.  
  954.     function sectiontable:Button(Info)
  955.     Info.Text = Info.Text or "Button"
  956.     Info.Callback = Info.Callback or function() end
  957.     Info.Tooltip = Info.Tooltip or ""
  958.  
  959.     local buttontable = {}
  960.        
  961.     local button = Instance.new("Frame")
  962.     button.Name = "Button"
  963.     button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  964.     button.BackgroundTransparency = 1
  965.     button.Size = UDim2.new(0, 162, 0, 27)
  966.     button.Parent = sectionFrame
  967.  
  968.     if Info.Tooltip ~= "" then
  969.         AddTooltip(button, Info.Tooltip)
  970.     end
  971.  
  972.     local buttonText = Instance.new("TextLabel")
  973.     buttonText.Name = "ButtonText"
  974.     buttonText.Font = Enum.Font.GothamBold
  975.     buttonText.Text = Info.Text
  976.     buttonText.TextColor3 = Color3.fromRGB(217, 217, 217)
  977.     buttonText.TextSize = 11
  978.     buttonText.TextXAlignment = Enum.TextXAlignment.Left
  979.     buttonText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  980.     buttonText.BackgroundTransparency = 1
  981.     buttonText.Position = UDim2.new(0.0488, 0, 0, 0)
  982.     buttonText.Size = UDim2.new(0, 156, 0, 27)
  983.     buttonText.Parent = button
  984.  
  985.     local textButton = Instance.new("TextButton")
  986.     textButton.Name = "TextButton"
  987.     textButton.Font = Enum.Font.SourceSans
  988.     textButton.Text = ""
  989.     textButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  990.     textButton.TextSize = 14
  991.     textButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  992.     textButton.BackgroundTransparency = 1
  993.     textButton.Size = UDim2.new(0, 162, 0, 27)
  994.     textButton.Parent = button
  995.  
  996.     textButton.MouseButton1Click:Connect(function()
  997.         task.spawn(function()
  998.             pcall(Info.Callback)
  999.         end)
  1000.     end)
  1001.     end
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.     -- [[ HOLD KEYBIND BEGIN]] --
  1049.     function sectiontable:HoldKeybind(Info)
  1050.         Info.Text = Info.Text or "Keybind"
  1051.         Info.Default = Info.Default or Enum.KeyCode.F4
  1052.         Info.Callback = Info.Callback or function() end
  1053.         Info.Tooltip = Info.Tooltip or ""
  1054.        
  1055.         local PressKey = Info.Default
  1056.         local keybind = Instance.new("Frame")
  1057.         keybind.Name = "Keybind"
  1058.         keybind.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1059.         keybind.BackgroundTransparency = 1
  1060.         keybind.Size = UDim2.new(0, 162, 0, 27)
  1061.         keybind.Parent = sectionFrame
  1062.        
  1063.         if Info.Tooltip ~= "" then
  1064.             AddTooltip(keybind, Info.Tooltip)
  1065.         end
  1066.        
  1067.         local keybindText = Instance.new("TextLabel")
  1068.         keybindText.Name = "KeybindText"
  1069.         keybindText.Font = Enum.Font.GothamBold
  1070.         keybindText.Text = Info.Text
  1071.         keybindText.TextColor3 = Color3.fromRGB(217, 217, 217)
  1072.         keybindText.TextSize = 11
  1073.         keybindText.TextXAlignment = Enum.TextXAlignment.Left
  1074.         keybindText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1075.         keybindText.BackgroundTransparency = 1
  1076.         keybindText.Position = UDim2.new(0.0488, 0, 0, 0)
  1077.         keybindText.Size = UDim2.new(0, 156, 0, 27)
  1078.         keybindText.Parent = keybind
  1079.        
  1080.         local keybindFrame = Instance.new("Frame")
  1081.         keybindFrame.Name = "KeybindFrame"
  1082.         keybindFrame.BackgroundColor3 = Color3.fromRGB(68, 68, 68)
  1083.         keybindFrame.AnchorPoint = Vector2.new(1, 0)
  1084.         keybindFrame.BorderSizePixel = 0
  1085.         keybindFrame.Position = UDim2.new(0, 158, 0.222, 0)
  1086.         keybindFrame.Size = UDim2.new(0, 30, 0, 15)
  1087.         keybindFrame.Parent = keybind
  1088.        
  1089.         local keybindUICorner = Instance.new("UICorner")
  1090.         keybindUICorner.Name = "KeybindUICorner"
  1091.         keybindUICorner.CornerRadius = UDim.new(0, 3)
  1092.         keybindUICorner.Parent = keybindFrame
  1093.        
  1094.         local keybindFrameText = Instance.new("TextLabel")
  1095.         keybindFrameText.Name = "KeybindFrameText"
  1096.         keybindFrameText.Font = Enum.Font.GothamBold
  1097.         keybindFrameText.Text = PrefixKey[PressKey.Name]
  1098.         keybindFrameText.TextColor3 = Color3.fromRGB(217, 217, 217)
  1099.         keybindFrameText.TextSize = 11
  1100.         keybindFrameText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1101.         keybindFrameText.BackgroundTransparency = 1
  1102.         keybindFrameText.Size = UDim2.new(1, 0, 0, 15)
  1103.         keybindFrameText.Parent = keybindFrame
  1104.        
  1105.         local keybindButton = Instance.new("TextButton")
  1106.         keybindButton.Name = "KeybindButton"
  1107.         keybindButton.Font = Enum.Font.SourceSans
  1108.         keybindButton.Text = ""
  1109.         keybindButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1110.         keybindButton.TextSize = 14
  1111.         keybindButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1112.         keybindButton.BackgroundTransparency = 1
  1113.         keybindButton.Size = UDim2.new(1, 0, 0, 15)
  1114.         keybindButton.Parent = keybindFrame
  1115.        
  1116.         local keybindUIStroke = Instance.new("UIStroke")
  1117.         keybindUIStroke.Name = "KeybindUIStroke"
  1118.         keybindUIStroke.Color = Color3.fromRGB(84, 84, 84)
  1119.         keybindUIStroke.Parent = keybindFrame
  1120.        
  1121.         local TextBounds = keybindFrameText.TextBounds
  1122.        
  1123.         keybindFrame.Size = UDim2.new(0, TextBounds.X + 10, 0, 15)
  1124.        
  1125.         keybindFrameText:GetPropertyChangedSignal("Text"):Connect(function()
  1126.             TextBounds = keybindFrameText.TextBounds
  1127.            
  1128.             keybindFrame.Size = UDim2.new(0, TextBounds.X + 10, 0, 15)
  1129.         end)
  1130.        
  1131.         local KeybindConnection
  1132.         local Changing = false
  1133.        
  1134.         keybindButton.MouseButton1Click:Connect(function()
  1135.             if KeybindConnection then KeybindConnection:Disconnect() end
  1136.             Changing = true
  1137.             keybindFrameText.Text = "..."
  1138.             KeybindConnection = UserInputService.InputBegan:Connect(function(Key, gameProcessed)
  1139.                 if (string.find(tostring(Key.UserInputType), "MouseButton") ~= nil) then
  1140.                     if not table.find(Blacklist, Key.UserInputType) and not gameProcessed then
  1141.                         KeybindConnection:Disconnect()
  1142.                         keybindFrameText.Text = PrefixKey[Key.UserInputType.Name]
  1143.                         PressKey = Key.UserInputType
  1144.                         wait(.1)
  1145.                         Changing = false
  1146.                     end
  1147.                 else if Key.UserInputType == Enum.UserInputType.Keyboard then
  1148.                     if not table.find(Blacklist, Key.KeyCode) and not gameProcessed then
  1149.                         KeybindConnection:Disconnect()
  1150.                         keybindFrameText.Text = Key.KeyCode.Name
  1151.                         PressKey = Key.KeyCode
  1152.                         wait(.1)
  1153.                         Changing = false
  1154.                     end
  1155.                 end
  1156.                 end
  1157.             end)
  1158.         end)
  1159.        
  1160.         local HOLDING = false
  1161.  
  1162.         UserInputService.InputBegan:Connect(function(Key, gameProcessed)
  1163.             if (Key.UserInputType == Enum.UserInputType.Keyboard) then
  1164.                 if not Changing and Key.KeyCode == PressKey and not gameProcessed then
  1165.                     HOLDING = true
  1166.                     task.spawn(function()
  1167.                         while HOLDING do
  1168.                             pcall(Info.Callback)
  1169.                             wait()
  1170.                         end
  1171.                     end)    
  1172.                 end
  1173.             else if (string.find(tostring(Key.UserInputType), "MouseButton") ~= nil) then
  1174.                 if not Changing and Key.UserInputType == PressKey and not gameProcessed then
  1175.                     HOLDING = true
  1176.                     task.spawn(function()
  1177.                         while HOLDING do
  1178.                             pcall(Info.Callback)
  1179.                             wait()
  1180.                         end
  1181.                     end)    
  1182.                 end
  1183.             end
  1184.             end
  1185.         end)
  1186.         UserInputService.InputEnded:Connect(function(Key, gameProcessed)
  1187.             if Key.UserInputType == Enum.UserInputType.Keyboard then
  1188.                 if not Changing and Key.KeyCode == PressKey and not gameProcessed then
  1189.                     HOLDING = false
  1190.                 end
  1191.             else if (string.find(tostring(Key.UserInputType), "MouseButton") ~= nil) then
  1192.                 if not Changing and Key.UserInputType == PressKey and not gameProcessed then
  1193.                     HOLDING = false
  1194.                 end
  1195.             end
  1196.             end
  1197.         end)
  1198.  
  1199.  
  1200.  
  1201.         end
  1202.        
  1203.         function sectiontable:Button(Info)
  1204.         Info.Text = Info.Text or "Button"
  1205.         Info.Callback = Info.Callback or function() end
  1206.         Info.Tooltip = Info.Tooltip or ""
  1207.        
  1208.         local buttontable = {}
  1209.            
  1210.         local button = Instance.new("Frame")
  1211.         button.Name = "Button"
  1212.         button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1213.         button.BackgroundTransparency = 1
  1214.         button.Size = UDim2.new(0, 162, 0, 27)
  1215.         button.Parent = sectionFrame
  1216.        
  1217.         if Info.Tooltip ~= "" then
  1218.             AddTooltip(button, Info.Tooltip)
  1219.         end
  1220.        
  1221.         local buttonText = Instance.new("TextLabel")
  1222.         buttonText.Name = "ButtonText"
  1223.         buttonText.Font = Enum.Font.GothamBold
  1224.         buttonText.Text = Info.Text
  1225.         buttonText.TextColor3 = Color3.fromRGB(217, 217, 217)
  1226.         buttonText.TextSize = 11
  1227.         buttonText.TextXAlignment = Enum.TextXAlignment.Left
  1228.         buttonText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1229.         buttonText.BackgroundTransparency = 1
  1230.         buttonText.BackgroundTransparency = 1
  1231.         buttonText.Position = UDim2.new(0.0488, 0, 0, 0)
  1232.         buttonText.Size = UDim2.new(0, 156, 0, 27)
  1233.         buttonText.Parent = button
  1234.        
  1235.         local textButton = Instance.new("TextButton")
  1236.         textButton.Name = "TextButton"
  1237.         textButton.Font = Enum.Font.SourceSans
  1238.         textButton.Text = ""
  1239.         textButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1240.         textButton.TextSize = 14
  1241.         textButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1242.         textButton.BackgroundTransparency = 1
  1243.         textButton.Size = UDim2.new(0, 162, 0, 27)
  1244.         textButton.Parent = button
  1245.        
  1246.         textButton.MouseButton1Click:Connect(function()
  1247.             task.spawn(function()
  1248.                 pcall(Info.Callback)
  1249.             end)
  1250.         end)
  1251.         end
  1252.     -- [[ HOLD KEYBIND END ]] --
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.     function sectiontable:Input(Info)
  1307.     Info.Placeholder = Info.Placeholder or "Input"
  1308.     Info.Flag = Info.Flag or nil
  1309.     Info.Callback = Info.Callback or function() end
  1310.     Info.Tooltip = Info.Tooltip or ""
  1311.  
  1312.     local input = Instance.new("Frame")
  1313.     input.Name = "Input"
  1314.     input.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1315.     input.BackgroundTransparency = 1
  1316.     input.Size = UDim2.new(0, 162, 0, 27)
  1317.     input.Parent = sectionFrame
  1318.  
  1319.     if Info.Tooltip ~= "" then
  1320.         AddTooltip(input, Info.Tooltip)
  1321.     end
  1322.  
  1323.     local inputFrame = Instance.new("Frame")
  1324.     inputFrame.Name = "InputFrame"
  1325.     inputFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1326.     inputFrame.BackgroundTransparency = 1
  1327.     inputFrame.Size = UDim2.new(0, 162, 0, 27)
  1328.     inputFrame.Parent = input
  1329.  
  1330.     local inputOuter = Instance.new("Frame")
  1331.     inputOuter.Name = "InputOuter"
  1332.     inputOuter.AnchorPoint = Vector2.new(0.5, 0.5)
  1333.     inputOuter.BackgroundColor3 = Color3.fromRGB(68, 68, 68)
  1334.     inputOuter.BorderSizePixel = 0
  1335.     inputOuter.ClipsDescendants = true
  1336.     inputOuter.Position = UDim2.new(0.5, 0, 0.5, 0)
  1337.     inputOuter.Size = UDim2.new(0, 154, 0, 21)
  1338.     inputOuter.Parent = inputFrame
  1339.  
  1340.     local inputUICorner = Instance.new("UICorner")
  1341.     inputUICorner.Name = "InputUICorner"
  1342.     inputUICorner.CornerRadius = UDim.new(0, 3)
  1343.     inputUICorner.Parent = inputOuter
  1344.  
  1345.     local inputUIStroke = Instance.new("UIStroke")
  1346.     inputUIStroke.Name = "InputUIStroke"
  1347.     inputUIStroke.Color = Color3.fromRGB(84, 84, 84)
  1348.     inputUIStroke.Parent = inputOuter
  1349.  
  1350.     local inputTextBox = Instance.new("TextBox")
  1351.     inputTextBox.Name = "InputTextBox"
  1352.     inputTextBox.CursorPosition = -1
  1353.     inputTextBox.Font = Enum.Font.GothamBold
  1354.     inputTextBox.PlaceholderColor3 = Color3.fromRGB(217, 217, 217)
  1355.     inputTextBox.PlaceholderText = Info.Placeholder
  1356.     inputTextBox.Text = ""
  1357.     inputTextBox.TextColor3 = Color3.fromRGB(237, 237, 237)
  1358.     inputTextBox.TextSize = 11
  1359.     inputTextBox.TextXAlignment = Enum.TextXAlignment.Left
  1360.     inputTextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1361.     inputTextBox.BackgroundTransparency = 1
  1362.     inputTextBox.Position = UDim2.new(0.0253, 0, 0, 0)
  1363.     inputTextBox.Size = UDim2.new(0, 150, 0, 21)
  1364.     inputTextBox.Parent = inputOuter
  1365.  
  1366.     inputTextBox.FocusLost:Connect(function()
  1367.         task.spawn(function()
  1368.             pcall(Info.Callback, inputTextBox.Text)
  1369.             if Info.Flag ~= nil then
  1370.                 library.Flags[Info.Flag] = inputTextBox.Text
  1371.             end
  1372.         end)
  1373.     end)
  1374.     end
  1375.  
  1376.     function sectiontable:Toggle(Info)
  1377.     Info.Text = Info.Text or "Toggle"
  1378.     Info.Flag = Info.Flag or nil
  1379.     Info.Default = Info.Default or false
  1380.     Info.Callback = Info.Callback or function() end
  1381.     Info.Tooltip = Info.Tooltip or ""
  1382.  
  1383.     if Info.Flag ~= nil then
  1384.         library.Flags[Info.Flag] = false
  1385.     end
  1386.  
  1387.     local insidetoggle = {}
  1388.  
  1389.     local Toggled = false
  1390.  
  1391.     local toggle = Instance.new("Frame")
  1392.     toggle.Name = "Toggle"
  1393.     toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1394.     toggle.BackgroundTransparency = 1
  1395.     toggle.Size = UDim2.new(0, 162, 0, 27)
  1396.     toggle.Parent = sectionFrame
  1397.  
  1398.     if Info.Tooltip ~= "" then
  1399.         AddTooltip(toggle, Info.Tooltip)
  1400.     end
  1401.  
  1402.     local toggleText = Instance.new("TextLabel")
  1403.     toggleText.Name = "ToggleText"
  1404.     toggleText.Font = Enum.Font.GothamBold
  1405.     toggleText.Text = Info.Text
  1406.     toggleText.TextColor3 = Color3.fromRGB(217, 217, 217)
  1407.     toggleText.TextSize = 11
  1408.     toggleText.TextXAlignment = Enum.TextXAlignment.Left
  1409.     toggleText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1410.     toggleText.BackgroundTransparency = 1
  1411.     toggleText.Position = UDim2.new(0.0488, 0, 0, 0)
  1412.     toggleText.Size = UDim2.new(0, 156, 0, 27)
  1413.     toggleText.Parent = toggle
  1414.  
  1415.     local toggleButton = Instance.new("TextButton")
  1416.     toggleButton.Name = "ToggleButton"
  1417.     toggleButton.Font = Enum.Font.SourceSans
  1418.     toggleButton.Text = ""
  1419.     toggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1420.     toggleButton.TextSize = 14
  1421.     toggleButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1422.     toggleButton.BackgroundTransparency = 1
  1423.     toggleButton.Size = UDim2.new(0, 162, 0, 27)
  1424.     toggleButton.Parent = toggle
  1425.  
  1426.     local toggleFrame = Instance.new("Frame")
  1427.     toggleFrame.Name = "ToggleFrame"
  1428.     toggleFrame.BackgroundColor3 = Color3.fromRGB(68, 68, 68)
  1429.     toggleFrame.BorderSizePixel = 0
  1430.     toggleFrame.Position = UDim2.new(0.783, 0, 0.222, 0)
  1431.     toggleFrame.Size = UDim2.new(0, 30, 0, 15)
  1432.     toggleFrame.Parent = toggle
  1433.  
  1434.     ColorElements[toggleFrame] = {Type = "Toggle", Enabled = false}
  1435.  
  1436.     local toggleUICorner = Instance.new("UICorner")
  1437.     toggleUICorner.Name = "ToggleUICorner"
  1438.     toggleUICorner.CornerRadius = UDim.new(0, 100)
  1439.     toggleUICorner.Parent = toggleFrame
  1440.  
  1441.     local circleIcon = Instance.new("ImageLabel")
  1442.     circleIcon.Name = "CheckIcon"
  1443.     circleIcon.Image = getcustomasset("Shaman/Circle.png")
  1444.     circleIcon.ImageColor3 = Color3.fromRGB(217, 217, 217)
  1445.     circleIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1446.     circleIcon.BackgroundTransparency = 1
  1447.     circleIcon.Position = UDim2.new(0, 1, 0.067, 0)
  1448.     circleIcon.Size = UDim2.new(0, 13, 0, 13)
  1449.     circleIcon.Parent = toggleFrame
  1450.  
  1451.     function insidetoggle:Set(bool)
  1452.         Toggled = bool
  1453.         if Info.Flag ~= nil then
  1454.             library.Flags[Info.Flag] = Toggled
  1455.         end
  1456.         ColorElements[toggleFrame].Enabled = Toggled
  1457.        
  1458.         TweenService:Create(circleIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Position = Toggled and UDim2.new(0, 16,0.067, 0) or UDim2.new(0, 1,0.067, 0)}):Play()
  1459.         if not Toggled then
  1460.             TweenService:Create(toggleFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = Color3.fromRGB(68, 68, 68)}):Play()
  1461.         elseif Toggled and not EditOpened then
  1462.             TweenService:Create(toggleFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundColor3 = Color3.fromRGB(48, 207, 106)}):Play()
  1463.         end
  1464.         pcall(Info.Callback, Toggled)
  1465.     end
  1466.  
  1467.     if Info.Default then
  1468.         task.spawn(function()
  1469.             insidetoggle:Set(true)
  1470.         end)
  1471.     end
  1472.  
  1473.     toggleButton.MouseButton1Click:Connect(function()
  1474.         Toggled = not Toggled
  1475.         insidetoggle:Set(Toggled)
  1476.     end)
  1477.  
  1478.     return insidetoggle
  1479.     end
  1480.  
  1481.     function sectiontable:Slider(Info)
  1482.     Info.Text = Info.Text or "Slider"
  1483.     Info.Default = Info.Default or 50
  1484.     Info.Minimum = Info.Minimum or 1
  1485.     Info.Flag = Info.Flag or nil
  1486.     Info.Maximum = Info.Maximum or 100
  1487.     Info.Postfix = Info.Postfix or ""
  1488.     Info.Callback = Info.Callback or function() end
  1489.     Info.Tooltip = Info.Tooltip or ""
  1490.  
  1491.     if Info.Minimum > Info.Maximum then
  1492.     local ValueBefore = Info.Minimum
  1493.     Info.Minimum, Info.Maximum = Info.Maximum, ValueBefore
  1494.     end
  1495.  
  1496.     Info.Default = math.clamp(Info.Default, Info.Minimum, Info.Maximum)
  1497.     local DefaultScale = (Info.Default - Info.Minimum) / (Info.Maximum - Info.Minimum)
  1498.  
  1499.     local slider = Instance.new("Frame")
  1500.     slider.Name = "Slider"
  1501.     slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1502.     slider.BackgroundTransparency = 1
  1503.     slider.Position = UDim2.new(0, 0, 0.825, 0)
  1504.     slider.Size = UDim2.new(0, 162, 0, 40)
  1505.     slider.Parent = sectionFrame
  1506.  
  1507.     if Info.Tooltip ~= "" then
  1508.         AddTooltip(slider, Info.Tooltip)
  1509.     end
  1510.  
  1511.     local sliderText = Instance.new("TextLabel")
  1512.     sliderText.Name = "SliderText"
  1513.     sliderText.Font = Enum.Font.GothamBold
  1514.     sliderText.Text = Info.Text
  1515.     sliderText.TextColor3 = Color3.fromRGB(217, 217, 217)
  1516.     sliderText.TextSize = 11
  1517.     sliderText.TextXAlignment = Enum.TextXAlignment.Left
  1518.     sliderText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1519.     sliderText.BackgroundTransparency = 1
  1520.     sliderText.Position = UDim2.new(0.0488, 0, 0, 0)
  1521.     sliderText.Size = UDim2.new(0, 156, 0, 27)
  1522.     sliderText.Parent = slider
  1523.  
  1524.     local outerSlider = Instance.new("Frame")
  1525.     outerSlider.Name = "OuterSlider"
  1526.     outerSlider.BackgroundColor3 = Color3.fromRGB(68, 68, 68)
  1527.     outerSlider.BorderSizePixel = 0
  1528.     outerSlider.Position = UDim2.new(0.049, -1, 0.664, 0)
  1529.     outerSlider.Size = UDim2.new(0, 149, 0, 4)
  1530.     outerSlider.Parent = slider
  1531.  
  1532.     local sliderCorner = Instance.new("UICorner")
  1533.     sliderCorner.Name = "SliderCorner"
  1534.     sliderCorner.CornerRadius = UDim.new(0, 100)
  1535.     sliderCorner.Parent = outerSlider
  1536.  
  1537.     local innerSlider = Instance.new("Frame")
  1538.     innerSlider.Name = "InnerSlider"
  1539.     innerSlider.BackgroundColor3 = Color3.fromRGB(255, 105, 180)
  1540.     innerSlider.BorderSizePixel = 0
  1541.     innerSlider.Size = UDim2.new(DefaultScale, 0, 0, 4)
  1542.     innerSlider.ZIndex = 2
  1543.     innerSlider.Parent = outerSlider
  1544.  
  1545.     ColorElements[innerSlider] = {Type = "Slider", Enabled = false}
  1546.  
  1547.     local innerSliderCorner = Instance.new("UICorner")
  1548.     innerSliderCorner.Name = "InnerSliderCorner"
  1549.     innerSliderCorner.CornerRadius = UDim.new(0, 100)
  1550.     innerSliderCorner.Parent = innerSlider
  1551.  
  1552.     local sliderValueText = Instance.new("TextLabel")
  1553.     sliderValueText.Name = "SliderValueText"
  1554.     sliderValueText.Font = Enum.Font.GothamBold
  1555.     sliderValueText.Text = tostring(Info.Default)..Info.Postfix
  1556.     sliderValueText.TextColor3 = Color3.fromRGB(217, 217, 217)
  1557.     sliderValueText.TextSize = 11
  1558.     sliderValueText.TextXAlignment = Enum.TextXAlignment.Right
  1559.     sliderValueText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1560.     sliderValueText.BackgroundTransparency = 1
  1561.     sliderValueText.Position = UDim2.new(0.0488, 0, 0, 0)
  1562.     sliderValueText.Size = UDim2.new(0, 149, 0, 27)
  1563.     sliderValueText.Parent = slider
  1564.  
  1565.     local sliderButton = Instance.new("TextButton")
  1566.     sliderButton.Name = "SliderButton"
  1567.     sliderButton.Font = Enum.Font.SourceSans
  1568.     sliderButton.Text = ""
  1569.     sliderButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1570.     sliderButton.TextSize = 14
  1571.     sliderButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1572.     sliderButton.BackgroundTransparency = 1
  1573.     sliderButton.Position = UDim2.new(0.049, 0, 0.664, 0)
  1574.     sliderButton.Size = UDim2.new(0, 149, 0, 4)
  1575.     sliderButton.Parent = slider
  1576.  
  1577.     task.spawn(function()
  1578.         pcall(Info.Callback, Info.Default)
  1579.         if Info.Flag ~= nil then
  1580.             library.Flags[Info.Flag] = Info.Default
  1581.         end
  1582.     end)
  1583.  
  1584.     local MinSize = 0
  1585.     local MaxSize = 1
  1586.  
  1587.     local SizeFromScale = (MinSize +  (MaxSize - MinSize)) * DefaultScale
  1588.     SizeFromScale = SizeFromScale - (SizeFromScale % 2)
  1589.  
  1590.     sliderButton.MouseButton1Down:Connect(function() -- Skidded from material ui hehe, sorry
  1591.         local MouseMove, MouseKill
  1592.         MouseMove = Mouse.Move:Connect(function()
  1593.             local Px = library:GetXY(outerSlider)
  1594.             local SizeFromScale = (MinSize +  (MaxSize - MinSize)) * Px
  1595.             local Value = math.floor(Info.Minimum + ((Info.Maximum - Info.Minimum) * Px))
  1596.             SizeFromScale = SizeFromScale - (SizeFromScale % 2)
  1597.             TweenService:Create(innerSlider, TweenInfo.new(0.1), {Size = UDim2.new(Px,0,0,4)}):Play()
  1598.             if Info.Flag ~= nil then
  1599.                 library.Flags[Info.Flag] = Value
  1600.             end
  1601.             sliderValueText.Text = tostring(Value)..Info.Postfix
  1602.             task.spawn(function()
  1603.                 pcall(Info.Callback, Value)
  1604.             end)
  1605.         end)
  1606.         MouseKill = UserInputService.InputEnded:Connect(function(UserInput)
  1607.             if UserInput.UserInputType == Enum.UserInputType.MouseButton1 then
  1608.                 MouseMove:Disconnect()
  1609.                 MouseKill:Disconnect()
  1610.             end
  1611.         end)
  1612.     end)
  1613.     end
  1614.  
  1615.     function sectiontable:Dropdown(Info)
  1616.     Info.Text = Info.Text or "Dropdown"
  1617.     Info.List = Info.List or {}
  1618.     Info.Flag = Info.Flag or nil
  1619.     Info.Callback = Info.Callback or function() end
  1620.     Info.Tooltip = Info.Tooltip or ""
  1621.     Info.Default = Info.Default or nil
  1622.  
  1623.     local DropdownYSize = 27
  1624.  
  1625.     if Info.Default ~= nil then
  1626.         task.spawn(function()
  1627.             pcall(Info.Callback, Info.Default)
  1628.         end)
  1629.         if Info.Flag ~= nil then
  1630.             library.Flags[Info.Flag] = Info.Default
  1631.         end
  1632.     end
  1633.  
  1634.     local insidedropdown = {}
  1635.  
  1636.     local dropdown = Instance.new("Frame")
  1637.     dropdown.Name = "Dropdown"
  1638.     dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1639.     dropdown.BackgroundTransparency = 1
  1640.     dropdown.Position = UDim2.new(0, 0, 0.638, 0)
  1641.     dropdown.Size = UDim2.new(0, 162, 0, 27)
  1642.     dropdown.Parent = sectionFrame
  1643.     dropdown.ClipsDescendants = true
  1644.  
  1645.     if Info.Tooltip ~= "" then
  1646.         AddTooltip(dropdown, Info.Tooltip)
  1647.     end
  1648.  
  1649.     local dropdownText = Instance.new("TextLabel")
  1650.     dropdownText.Name = "DropdownText"
  1651.     dropdownText.Font = Enum.Font.GothamBold
  1652.     dropdownText.Text = Info.Text
  1653.     dropdownText.TextColor3 = Color3.fromRGB(217, 217, 217)
  1654.     dropdownText.TextSize = 11
  1655.     dropdownText.TextXAlignment = Enum.TextXAlignment.Left
  1656.     dropdownText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1657.     dropdownText.BackgroundTransparency = 1
  1658.     dropdownText.Position = UDim2.new(0.0488, 0, 0, 0)
  1659.     dropdownText.Size = UDim2.new(0, 156, 0, 27)
  1660.     dropdownText.Parent = dropdown
  1661.  
  1662.     local dropdownIcon = Instance.new("ImageLabel")
  1663.     dropdownIcon.Name = "DropdownIcon"
  1664.     dropdownIcon.Image = getcustomasset("Shaman/CollapseArrow.png")
  1665.     dropdownIcon.ImageColor3 = Color3.fromRGB(191, 191, 191)
  1666.     dropdownIcon.AnchorPoint = Vector2.new(1, 0)
  1667.     dropdownIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1668.     dropdownIcon.BackgroundTransparency = 1
  1669.     dropdownIcon.Rotation = -90
  1670.     dropdownIcon.Position = UDim2.new(0, 155, 0, 7)
  1671.     dropdownIcon.Size = UDim2.new(0, 13, 0, 13)
  1672.     dropdownIcon.ZIndex = 2
  1673.     dropdownIcon.Parent = dropdown
  1674.  
  1675.     local dropdownButton = Instance.new("TextButton")
  1676.     dropdownButton.Name = "DropdownButton"
  1677.     dropdownButton.Font = Enum.Font.SourceSans
  1678.     dropdownButton.Text = ""
  1679.     dropdownButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1680.     dropdownButton.TextSize = 14
  1681.     dropdownButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1682.     dropdownButton.BackgroundTransparency = 1
  1683.     dropdownButton.Size = UDim2.new(0, 162, 0, 27)
  1684.     dropdownButton.Parent = dropdown
  1685.  
  1686.     local dropdownContainer = Instance.new("Frame")
  1687.     dropdownContainer.Name = "DropdownContainer"
  1688.     dropdownContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1689.     dropdownContainer.BackgroundTransparency = 1
  1690.     dropdownContainer.BorderSizePixel = 0
  1691.     dropdownContainer.Size = UDim2.new(0, 162, 0, 27)
  1692.     dropdownContainer.Parent = dropdown
  1693.     dropdownContainer.Visible = true
  1694.  
  1695.     local dropdownuIListLayout = Instance.new("UIListLayout")
  1696.     dropdownuIListLayout.Name = "UIListLayout"
  1697.     dropdownuIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1698.     dropdownuIListLayout.Parent = dropdownContainer
  1699.  
  1700.     local dropdownuIPadding = Instance.new("UIPadding")
  1701.     dropdownuIPadding.Name = "UIPadding"
  1702.     dropdownuIPadding.PaddingTop = UDim.new(0, 27)
  1703.     dropdownuIPadding.Parent = dropdownContainer
  1704.  
  1705.     local DropdownOpened = false
  1706.  
  1707.     function insidedropdown:Add(text)
  1708.     DropdownYSize = DropdownYSize + 27
  1709.  
  1710.     local dropdownContainerButton = Instance.new("Frame")
  1711.     dropdownContainerButton.Name = "DropdownContainerButton"
  1712.     dropdownContainerButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1713.     dropdownContainerButton.BackgroundTransparency = 1
  1714.     dropdownContainerButton.Size = UDim2.new(0, 162, 0, 27)
  1715.     dropdownContainerButton.Parent = dropdownContainer
  1716.  
  1717.     local dropdownbuttonText = Instance.new("TextLabel")
  1718.     dropdownbuttonText.Name = "ButtonText"
  1719.     dropdownbuttonText.Font = Enum.Font.GothamBold
  1720.     dropdownbuttonText.Text = text
  1721.     dropdownbuttonText.TextColor3 = Color3.fromRGB(191, 191, 191)
  1722.     dropdownbuttonText.TextSize = 11
  1723.     dropdownbuttonText.TextXAlignment = Enum.TextXAlignment.Left
  1724.     dropdownbuttonText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1725.     dropdownbuttonText.BackgroundTransparency = 1
  1726.     dropdownbuttonText.Position = UDim2.new(0.0488, 0, 0, 0)
  1727.     dropdownbuttonText.Size = UDim2.new(0, 156, 0, 28)
  1728.     dropdownbuttonText.Parent = dropdownContainerButton
  1729.  
  1730.     local dropdownContainerTextButton = Instance.new("TextButton")
  1731.     dropdownContainerTextButton.Name = "DropdownContainerButton"
  1732.     dropdownContainerTextButton.Font = Enum.Font.SourceSans
  1733.     dropdownContainerTextButton.Text = ""
  1734.     dropdownContainerTextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1735.     dropdownContainerTextButton.TextSize = 14
  1736.     dropdownContainerTextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1737.     dropdownContainerTextButton.BackgroundTransparency = 1
  1738.     dropdownContainerTextButton.Size = UDim2.new(0, 162, 0, 27)
  1739.     dropdownContainerTextButton.Parent = dropdownContainerButton
  1740.  
  1741.     dropdownContainerTextButton.MouseEnter:Connect(function()
  1742.         TweenService:Create(dropdownbuttonText, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  1743.     end)
  1744.  
  1745.     dropdownContainerTextButton.MouseLeave:Connect(function()
  1746.         TweenService:Create(dropdownbuttonText, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(191, 191, 191)}):Play()
  1747.     end)
  1748.  
  1749.     dropdownContainerTextButton.MouseButton1Click:Connect(function()
  1750.         DropdownOpened = false
  1751.        
  1752.         task.spawn(function()
  1753.             pcall(Info.Callback, dropdownbuttonText.Text)
  1754.         end)
  1755.         if Info.Flag ~= nil then
  1756.             library.Flags[Info.Flag] = dropdownbuttonText.Text
  1757.         end
  1758.         dropdownText.Text = dropdownbuttonText.Text
  1759.        
  1760.         TweenService:Create(dropdownIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Rotation = DropdownOpened and -180 or -90}):Play()
  1761.         TweenService:Create(dropdownIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = DropdownOpened and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(191, 191, 191)}):Play()
  1762.         TweenService:Create(dropdown, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, DropdownYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  1763.         TweenService:Create(dropdownContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, DropdownYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  1764.         TweenService:Create(dropdownContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = DropdownOpened and .96 or 1}):Play()
  1765.         TweenService:Create(sectionFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + DropdownYSize - 27) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - DropdownYSize + 27)}):Play()
  1766.         TweenService:Create(section, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + DropdownYSize - 27 + 4) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - DropdownYSize + 31)}):Play()
  1767.     end)
  1768.     end
  1769.  
  1770.     function insidedropdown:Refresh(RefreshInfo)
  1771.     RefreshInfo.Text = RefreshInfo.Text or dropdownText.Text
  1772.     RefreshInfo.List = RefreshInfo.List or Info.List
  1773.  
  1774.     for _,v in pairs(dropdownContainer:GetChildren()) do
  1775.         if v.ClassName == "Frame" then
  1776.             DropdownYSize = DropdownYSize - 27
  1777.             if DropdownOpened then
  1778.                 sectionFrame.Size = UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - 27)
  1779.                 section.Size = UDim2.new(0, 162, 0, section.Size.Y.Offset - 27)
  1780.             end
  1781.             v:Destroy()
  1782.         end
  1783.     end
  1784.  
  1785.     DropdownOpened = false
  1786.  
  1787.     for _,v in pairs(RefreshInfo.List) do
  1788.         insidedropdown:Add(v)
  1789.     end
  1790.  
  1791.     TweenService:Create(dropdownIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Rotation = DropdownOpened and -180 or -90}):Play()
  1792.     TweenService:Create(dropdownIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = DropdownOpened and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(191, 191, 191)}):Play()
  1793.     TweenService:Create(dropdown, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, DropdownYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  1794.     TweenService:Create(dropdownContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, DropdownYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  1795.     TweenService:Create(dropdownContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = DropdownOpened and .96 or 1}):Play()
  1796.     end
  1797.  
  1798.     for _,v in pairs(Info.List) do
  1799.     insidedropdown:Add(v)
  1800.     end
  1801.  
  1802.     Closed:GetPropertyChangedSignal("Value"):Connect(function()
  1803.         if not Closed.Value then
  1804.         DropdownOpened = false
  1805.        
  1806.         TweenService:Create(dropdownIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Rotation = DropdownOpened and -180 or -90}):Play()
  1807.         TweenService:Create(dropdownIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = DropdownOpened and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(191, 191, 191)}):Play()
  1808.         TweenService:Create(dropdown, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, DropdownYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  1809.         TweenService:Create(dropdownContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, DropdownYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  1810.         TweenService:Create(dropdownContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = DropdownOpened and .96 or 1}):Play()
  1811.         TweenService:Create(sectionFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + DropdownYSize - 27) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - DropdownYSize + 27)}):Play()
  1812.         TweenService:Create(section, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + DropdownYSize - 27 + 4) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - DropdownYSize + 31)}):Play()
  1813.         end
  1814.     end)
  1815.  
  1816.     dropdownButton.MouseButton1Click:Connect(function()
  1817.         DropdownOpened = not DropdownOpened
  1818.        
  1819.         TweenService:Create(dropdownIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Rotation = DropdownOpened and -180 or -90}):Play()
  1820.         TweenService:Create(dropdownIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = DropdownOpened and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(191, 191, 191)}):Play()
  1821.         TweenService:Create(dropdown, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, DropdownYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  1822.         TweenService:Create(dropdownContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, DropdownYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  1823.         TweenService:Create(dropdownContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = DropdownOpened and .96 or 1}):Play()
  1824.         TweenService:Create(sectionFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + DropdownYSize - 27) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - DropdownYSize + 27)}):Play()
  1825.         TweenService:Create(section, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = DropdownOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + DropdownYSize - 27 + 4) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - DropdownYSize + 31)}):Play()
  1826.     end)
  1827.  
  1828.     return insidedropdown
  1829.     end
  1830.  
  1831.     function sectiontable:RadioButton(Info)
  1832.     Info.Text = Info.Text or "Radio Button"
  1833.     Info.Options = Info.Options or {}
  1834.     Info.Flag = Info.Flag or nil
  1835.     Info.Callback = Info.Callback or function() end
  1836.     Info.Tooltip = Info.Tooltip or ""
  1837.     Info.Default = Info.Default or nil
  1838.  
  1839.     local RadioOpened = false
  1840.  
  1841.     RadioYSize = 27
  1842.  
  1843.     if Info.Default ~= nil then
  1844.         task.spawn(function()
  1845.             pcall(Info.Callback, Info.Default)
  1846.         end)
  1847.         if Info.Flag ~= nil then
  1848.             library.Flags[Info.Flag] = Info.Default
  1849.         end
  1850.     end
  1851.  
  1852.     local insideradio = {}
  1853.  
  1854.     local radioButton = Instance.new("Frame")
  1855.     radioButton.Name = "RadioButton"
  1856.     radioButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1857.     radioButton.BackgroundTransparency = 1
  1858.     radioButton.Size = UDim2.new(0, 162, 0, 27)
  1859.     radioButton.Parent = sectionFrame
  1860.  
  1861.     if Info.Tooltip ~= "" then
  1862.         AddTooltip(radioButton, Info.Tooltip)
  1863.     end
  1864.  
  1865.     local button = Instance.new("Frame")
  1866.     button.Name = "Button"
  1867.     button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1868.     button.BackgroundTransparency = 1
  1869.     button.Size = UDim2.new(0, 162, 0, 27)
  1870.     button.Parent = radioButton
  1871.  
  1872.     local radioButtonTextButton = Instance.new("TextButton")
  1873.     radioButtonTextButton.Name = "RadioButtonTextButton"
  1874.     radioButtonTextButton.Font = Enum.Font.SourceSans
  1875.     radioButtonTextButton.Text = ""
  1876.     radioButtonTextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1877.     radioButtonTextButton.TextSize = 14
  1878.     radioButtonTextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1879.     radioButtonTextButton.BackgroundTransparency = 1
  1880.     radioButtonTextButton.Size = UDim2.new(0, 162, 0, 27)
  1881.     radioButtonTextButton.Parent = button
  1882.  
  1883.     local radioButtonText = Instance.new("TextLabel")
  1884.     radioButtonText.Name = "RadioButtonText"
  1885.     radioButtonText.Font = Enum.Font.GothamBold
  1886.     radioButtonText.Text = Info.Text
  1887.     radioButtonText.TextColor3 = Color3.fromRGB(217, 217, 217)
  1888.     radioButtonText.TextSize = 11
  1889.     radioButtonText.TextXAlignment = Enum.TextXAlignment.Left
  1890.     radioButtonText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1891.     radioButtonText.BackgroundTransparency = 1
  1892.     radioButtonText.Position = UDim2.new(0.0488, 0, 0, 0)
  1893.     radioButtonText.Size = UDim2.new(0, 156, 0, 27)
  1894.     radioButtonText.Parent = button
  1895.  
  1896.     local radioButtonIcon = Instance.new("ImageLabel")
  1897.     radioButtonIcon.Name = "RadioButtonIcon"
  1898.     radioButtonIcon.Image = getcustomasset("Shaman/CollapseArrow.png")
  1899.     radioButtonIcon.AnchorPoint = Vector2.new(1, 0)
  1900.     radioButtonIcon.ImageColor3 = Color3.fromRGB(191, 191, 191)
  1901.     radioButtonIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1902.     radioButtonIcon.BackgroundTransparency = 1
  1903.     radioButtonIcon.Rotation = -90
  1904.     radioButtonIcon.BorderSizePixel = 0
  1905.     radioButtonIcon.Position = UDim2.new(0, 155, 0, 7)
  1906.     radioButtonIcon.Size = UDim2.new(0, 13, 0, 13)
  1907.     radioButtonIcon.Parent = button
  1908.  
  1909.     local radioButtonIcon2 = Instance.new("ImageLabel")
  1910.     radioButtonIcon2.Name = "RadioButtonIcon2"
  1911.     radioButtonIcon2.Image = getcustomasset("Shaman/RadioButton.png")
  1912.     radioButtonIcon2.AnchorPoint = Vector2.new(1, 0)
  1913.     radioButtonIcon2.ImageColor3 = Color3.fromRGB(191, 191, 191)
  1914.     radioButtonIcon2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1915.     radioButtonIcon2.BackgroundTransparency = 1
  1916.     radioButtonIcon2.BorderSizePixel = 0
  1917.     radioButtonIcon2.Position = UDim2.new(0, 138, 0, 7)
  1918.     radioButtonIcon2.Size = UDim2.new(0, 13, 0, 13)
  1919.     radioButtonIcon2.Parent = button
  1920.  
  1921.     local radioContainer = Instance.new("Frame")
  1922.     radioContainer.Name = "RadioContainer"
  1923.     radioContainer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1924.     radioContainer.BackgroundTransparency = 1
  1925.     radioContainer.Size = UDim2.new(0, 162, 0, 27)
  1926.     radioContainer.Parent = radioButton
  1927.     radioContainer.ClipsDescendants = true
  1928.  
  1929.     local radioUILayout = Instance.new("UIListLayout")
  1930.     radioUILayout.Name = "RadioUILayout"
  1931.     radioUILayout.SortOrder = Enum.SortOrder.LayoutOrder
  1932.     radioUILayout.Parent = radioContainer
  1933.  
  1934.     local radiouIPadding = Instance.new("UIPadding")
  1935.     radiouIPadding.Name = "UIPadding"
  1936.     radiouIPadding.PaddingTop = UDim.new(0, 27)
  1937.     radiouIPadding.Parent = radioContainer
  1938.  
  1939.     local RadioSelected = nil
  1940.  
  1941.     function insideradio:Button(text)
  1942.     RadioYSize = RadioYSize + 27
  1943.  
  1944.     local radio = Instance.new("Frame")
  1945.     radio.Name = "Radio"
  1946.     radio.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1947.     radio.BackgroundTransparency = 1
  1948.     radio.Size = UDim2.new(0, 162, 0, 27)
  1949.     radio.Parent = radioContainer
  1950.  
  1951.     local radioTextButton = Instance.new("TextButton")
  1952.     radioTextButton.Name = "RadioTextButton"
  1953.     radioTextButton.Font = Enum.Font.SourceSans
  1954.     radioTextButton.Text = ""
  1955.     radioTextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  1956.     radioTextButton.TextSize = 14
  1957.     radioTextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1958.     radioTextButton.BackgroundTransparency = 1
  1959.     radioTextButton.Size = UDim2.new(0, 162, 0, 27)
  1960.     radioTextButton.Parent = radio
  1961.  
  1962.     local radioOuter = Instance.new("ImageLabel")
  1963.     radioOuter.Name = "RadioOuter"
  1964.     radioOuter.Image = getcustomasset("Shaman/RadioOuter.png")
  1965.     radioOuter.ImageColor3 = Color3.fromRGB(191, 191, 191)
  1966.     radioOuter.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1967.     radioOuter.BackgroundTransparency = 1
  1968.     radioOuter.BorderSizePixel = 0
  1969.     radioOuter.Position = UDim2.new(0.865, 0, 0.185, 0)
  1970.     radioOuter.Size = UDim2.new(0, 17, 0, 17)
  1971.     radioOuter.Parent = radio
  1972.  
  1973.     local radioInner = Instance.new("ImageLabel")
  1974.     radioInner.Name = "RadioInner"
  1975.     radioInner.Image = getcustomasset("Shaman/RadioInner.png")
  1976.     radioInner.AnchorPoint = Vector2.new(0.5, 0.5)
  1977.     radioInner.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1978.     radioInner.BackgroundTransparency = 1
  1979.     radioInner.BorderSizePixel = 0
  1980.     radioInner.Position = UDim2.new(0.5, 0, 0.5, 0)
  1981.     radioInner.Size = UDim2.new(0, 7, 0, 7)
  1982.     radioInner.Parent = radioOuter
  1983.  
  1984.     ColorElements[radioInner] = {Type = "Toggle", Enabled = false}
  1985.     ColorElements[radioOuter] = {Type = "Toggle", Enabled = false}
  1986.  
  1987.     local radioText = Instance.new("TextLabel")
  1988.     radioText.Name = "RadioText"
  1989.     radioText.Font = Enum.Font.GothamBold
  1990.     radioText.Text = text
  1991.     radioText.TextColor3 = Color3.fromRGB(191, 191, 191)
  1992.     radioText.TextSize = 11
  1993.     radioText.TextXAlignment = Enum.TextXAlignment.Left
  1994.     radioText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1995.     radioText.BackgroundTransparency = 1
  1996.     radioText.Position = UDim2.new(0.0488, 0, 0, 0)
  1997.     radioText.Size = UDim2.new(0, 156, 0, 27)
  1998.     radioText.Parent = radio
  1999.  
  2000.     radio.MouseEnter:Connect(function()
  2001.         if RadioOpened and RadioSelected ~= radio or RadioSelected == nil then
  2002.         TweenService:Create(radioText, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(217, 217, 217)}):Play()
  2003.         TweenService:Create(radioInner, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(217, 217, 217)}):Play()
  2004.         TweenService:Create(radioOuter, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(217, 217, 217)}):Play()
  2005.         end
  2006.     end)
  2007.  
  2008.     radio.MouseLeave:Connect(function()
  2009.         if RadioOpened and RadioSelected ~= radio or RadioSelected == nil then
  2010.         TweenService:Create(radioText, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(191, 191, 191)}):Play()
  2011.         TweenService:Create(radioInner, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(191, 191, 191)}):Play()
  2012.         TweenService:Create(radioOuter, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(191, 191, 191)}):Play()
  2013.         end
  2014.     end)
  2015.  
  2016.     radioTextButton.MouseButton1Click:Connect(function()
  2017.         task.spawn(function()
  2018.             pcall(Info.Callback, radioText.Text)
  2019.         end)
  2020.         if Info.Flag ~= nil then
  2021.             library.Flags[Info.Flag] = radioText.Text
  2022.         end
  2023.        
  2024.         ColorElements[radioInner].Enabled = true
  2025.         ColorElements[radioOuter].Enabled = true
  2026.        
  2027.         RadioSelected = radio
  2028.        
  2029.         for _,v in pairs(radioContainer:GetChildren()) do
  2030.             if v.ClassName == "Frame" and v ~= radio then
  2031.                 ColorElements[v.RadioOuter].Enabled = false
  2032.                 ColorElements[v.RadioOuter.RadioInner].Enabled = false
  2033.                 TweenService:Create(v.RadioOuter, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(191, 191, 191)}):Play()
  2034.                 TweenService:Create(v.RadioOuter.RadioInner, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = Color3.fromRGB(191, 191, 191)}):Play()
  2035.                 TweenService:Create(v.RadioText, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(191, 191, 191)}):Play()
  2036.             end
  2037.         end
  2038.        
  2039.         TweenService:Create(radioText, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  2040.        
  2041.         if not EditOpened then
  2042.             TweenService:Create(radioInner, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = RadioOpened and Color3.fromRGB(255, 105, 180) or Color3.fromRGB(191, 191, 191)}):Play()
  2043.             TweenService:Create(radioOuter, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = RadioOpened and Color3.fromRGB(255, 105, 180) or Color3.fromRGB(191, 191, 191)}):Play()
  2044.         end
  2045.     end)
  2046.  
  2047.     end
  2048.  
  2049.     radioButtonTextButton.MouseButton1Click:Connect(function()
  2050.         RadioOpened = not RadioOpened
  2051.        
  2052.         TweenService:Create(radioButtonIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = RadioOpened and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(191, 191, 191)}):Play()
  2053.         TweenService:Create(radioButtonIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Rotation = RadioOpened and -180 or -90}):Play()
  2054.         TweenService:Create(radioButtonIcon2, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = RadioOpened and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(191, 191, 191)}):Play()
  2055.         TweenService:Create(radioButton, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = RadioOpened and UDim2.new(0, 162, 0, RadioYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  2056.         TweenService:Create(radioContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = RadioOpened and UDim2.new(0, 162, 0, RadioYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  2057.         TweenService:Create(radioContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = RadioOpened and .96 or 1}):Play()
  2058.         TweenService:Create(sectionFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = RadioOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + RadioYSize - 27) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - RadioYSize + 27)}):Play()
  2059.         TweenService:Create(section, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = RadioOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + RadioYSize - 27 + 4) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - RadioYSize + 31)}):Play()
  2060.     end)
  2061.  
  2062.     for _,v in pairs(Info.Options) do
  2063.         insideradio:Button(v)
  2064.     end
  2065.  
  2066.     Closed:GetPropertyChangedSignal("Value"):Connect(function()
  2067.         if not Closed.Value then
  2068.         RadioOpened = false
  2069.        
  2070.         TweenService:Create(radioButtonIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = RadioOpened and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(191, 191, 191)}):Play()
  2071.         TweenService:Create(radioButtonIcon, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Rotation = RadioOpened and -180 or -90}):Play()
  2072.         TweenService:Create(radioButtonIcon2, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageColor3 = RadioOpened and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(191, 191, 191)}):Play()
  2073.         TweenService:Create(radioButton, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = RadioOpened and UDim2.new(0, 162, 0, RadioYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  2074.         TweenService:Create(radioContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = RadioOpened and UDim2.new(0, 162, 0, RadioYSize) or UDim2.new(0, 162, 0, 27)}):Play()
  2075.         TweenService:Create(radioContainer, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = RadioOpened and .96 or 1}):Play()
  2076.         TweenService:Create(sectionFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = RadioOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + RadioYSize - 27) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - RadioYSize + 27)}):Play()
  2077.         TweenService:Create(section, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = RadioOpened and UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset + RadioYSize - 27 + 4) or UDim2.new(0, 162, 0, sectionFrame.Size.Y.Offset - RadioYSize + 31)}):Play()
  2078.         end
  2079.     end)
  2080.  
  2081.     return insideradio
  2082.     end
  2083.  
  2084.     return sectiontable
  2085.     end
  2086.  
  2087.     tabTextButton.MouseButton1Click:Connect(function()
  2088.         TabSelected = tabFrame
  2089.         task.spawn(function()
  2090.         for _,v in pairs(main:GetChildren()) do
  2091.             if v.Name == "LeftContainer" or v.Name == "RightContainer" then
  2092.                 v.Visible = false
  2093.             end
  2094.         end
  2095.         end)
  2096.         for _,v in pairs(scrollingContainer:GetChildren()) do
  2097.             if v ~= tabButton and v.Name == "TabButton" then
  2098.                 TweenService:Create(v.TabFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = .96}):Play()
  2099.             end
  2100.         end
  2101.         TweenService:Create(tabFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = .85}):Play()
  2102.         leftContainer.Visible = true
  2103.         rightContainer.Visible = true
  2104.     end)
  2105.  
  2106.     function tab:Select()
  2107.         TabSelected = tabFrame
  2108.         task.spawn(function()
  2109.         for _,v in pairs(main:GetChildren()) do
  2110.             if v.Name == "LeftContainer" or v.Name == "RightContainer" then
  2111.                 v.Visible = false
  2112.             end
  2113.         end
  2114.         end)
  2115.         for _,v in pairs(scrollingContainer:GetChildren()) do
  2116.             if v ~= tabButton and v.Name == "TabButton" then
  2117.                 TweenService:Create(v.TabFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = .96}):Play()
  2118.             end
  2119.         end
  2120.         TweenService:Create(tabFrame, TweenInfo.new(.15, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = .85}):Play()
  2121.         leftContainer.Visible = true
  2122.         rightContainer.Visible = true
  2123.     end
  2124.  
  2125.     return tab
  2126.     end
  2127.  
  2128.     local uIListLayout = Instance.new("UIListLayout")
  2129.     uIListLayout.Name = "UIListLayout"
  2130.     uIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  2131.     uIListLayout.Parent = scrollingContainer
  2132.  
  2133.     local uIPadding = Instance.new("UIPadding")
  2134.     uIPadding.Name = "UIPadding"
  2135.     uIPadding.Parent = scrollingContainer
  2136.  
  2137.     local frame2 = Instance.new("Frame")
  2138.     frame2.Name = "Frame"
  2139.     frame2.AnchorPoint = Vector2.new(1, 0.5)
  2140.     frame2.BackgroundColor3 = Color3.fromRGB(34, 34, 34)
  2141.     frame2.BorderSizePixel = 0
  2142.     frame2.Position = UDim2.new(1, 0, 0.501, 0)
  2143.     frame2.Size = UDim2.new(0, 1, 0, 284)
  2144.     frame2.Parent = tabContainer
  2145.  
  2146.     local uIStroke2 = Instance.new("UIStroke")
  2147.     uIStroke2.Name = "UIStroke"
  2148.     uIStroke2.Color = Color3.fromRGB(61, 61, 61)
  2149.     uIStroke2.Parent = main
  2150.  
  2151.     return window
  2152.     end
  2153.  
  2154.     return library
Add Comment
Please, Sign In to add comment