Advertisement
Pyaguti

asdfawef

Jun 8th, 2022
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 227.58 KB | None | 0 0
  1. repeat
  2.    wait()
  3. until game:IsLoaded()
  4.  
  5. local library
  6. do
  7.    local folder = "specter"
  8.  
  9.    local services = setmetatable({}, {
  10.        __index = function(_, service)
  11.            if service == "InputService" then
  12.                return game:GetService("UserInputService")
  13.            end
  14.  
  15.            return game:GetService(service)
  16.        end
  17.    })
  18.  
  19.    local utility = {}
  20.  
  21.    function utility.randomstring(length)
  22.        local str = ""
  23.        local chars = string.split("abcdefghijklmnopqrstuvwxyz1234567890", "")
  24.  
  25.        for i = 1, length do
  26.            local i = math.random(1, #chars)
  27.  
  28.            if not tonumber(chars[i]) then
  29.                local uppercase = math.random(1, 2) == 2 and true or false
  30.                str = str .. (uppercase and chars[i]:upper() or chars[i])
  31.            else
  32.                str = str .. chars[i]
  33.            end
  34.        end
  35.  
  36.        return str
  37.    end
  38.  
  39.    function utility.create(class, properties)
  40.        local obj = Instance.new(class)
  41.  
  42.        local forced = {
  43.            AutoButtonColor = false
  44.        }
  45.  
  46.        for prop, v in next, properties do
  47.            obj[prop] = v
  48.        end
  49.  
  50.        for prop, v in next, forced do
  51.            pcall(function()
  52.                obj[prop] = v
  53.            end)
  54.        end
  55.  
  56.        obj.Name = utility.randomstring(16)
  57.  
  58.        return obj
  59.    end
  60.  
  61.    function utility.dragify(object, speed)
  62.        local start, objectPosition, dragging
  63.  
  64.        speed = speed or 0
  65.  
  66.        object.InputBegan:Connect(function(input)
  67.            if input.UserInputType == Enum.UserInputType.MouseButton1 then
  68.                dragging = true
  69.                start = input.Position
  70.                objectPosition = object.Position
  71.            end
  72.        end)
  73.  
  74.        object.InputEnded:Connect(function(input)
  75.            if input.UserInputType == Enum.UserInputType.MouseButton1 then
  76.                dragging = false
  77.            end
  78.        end)
  79.  
  80.        services.InputService.InputChanged:Connect(function(input)
  81.            if input.UserInputType == Enum.UserInputType.MouseMovement and dragging then
  82.                utility.tween(object, { speed }, { Position = UDim2.new(objectPosition.X.Scale, objectPosition.X.Offset + (input.Position - start).X, objectPosition.Y.Scale, objectPosition.Y.Offset + (input.Position - start).Y) })
  83.            end
  84.        end)
  85.    end
  86.  
  87.    function utility.getrgb(color)
  88.        local r = math.floor(color.r * 255)
  89.        local g = math.floor(color.g * 255)
  90.        local b = math.floor(color.b * 255)
  91.  
  92.        return r, g, b
  93.    end
  94.  
  95.    function utility.getcenter(sizeX, sizeY)
  96.        return UDim2.new(0.5, -(sizeX / 2), 0.5, -(sizeY / 2))
  97.    end
  98.  
  99.    function utility.table(tbl)
  100.        tbl = tbl or {}
  101.  
  102.        local newtbl = {}
  103.  
  104.        for i, v in next, tbl do
  105.            if type(i) == "string" then
  106.                newtbl[i:lower()] = v
  107.            end
  108.        end
  109.  
  110.        return setmetatable({}, {
  111.            __newindex = function(_, k, v)
  112.                rawset(newtbl, k:lower(), v)
  113.            end,
  114.  
  115.            __index = function(_, k)
  116.                return newtbl[k:lower()]
  117.            end
  118.        })
  119.    end
  120.  
  121.    function utility.tween(obj, info, properties, callback)
  122.        local anim = services.TweenService:Create(obj, TweenInfo.new(unpack(info)), properties)
  123.        anim:Play()
  124.  
  125.        if callback then
  126.            anim.Completed:Connect(callback)
  127.        end
  128.  
  129.        return anim
  130.    end
  131.  
  132.    function utility.makevisible(obj, bool)
  133.        if bool == false then
  134.            local tween
  135.  
  136.            if not obj.ClassName:find("UI") then
  137.                if obj.ClassName:find("Text") then
  138.                    tween = utility.tween(obj, { 0.2 }, { BackgroundTransparency = obj.BackgroundTransparency + 1, TextTransparency = obj.TextTransparency + 1, TextStrokeTransparency = obj.TextStrokeTransparency + 1 })
  139.                elseif obj.ClassName:find("Image") then
  140.                    tween = utility.tween(obj, { 0.2 }, { BackgroundTransparency = obj.BackgroundTransparency + 1, ImageTransparency = obj.ImageTransparency + 1 })
  141.                elseif obj.ClassName:find("Scrolling") then
  142.                    tween = utility.tween(obj, { 0.2 }, { BackgroundTransparency = obj.BackgroundTransparency + 1, ScrollBarImageTransparency = obj.ScrollBarImageTransparency + 1 })
  143.                else
  144.                    tween = utility.tween(obj, { 0.2 }, { BackgroundTransparency = obj.BackgroundTransparency + 1 })
  145.                end
  146.            end
  147.  
  148.            tween.Completed:Connect(function()
  149.                obj.Visible = false
  150.            end)
  151.  
  152.            for _, descendant in next, obj:GetDescendants() do
  153.                if not descendant.ClassName:find("UI") then
  154.                    if descendant.ClassName:find("Text") then
  155.                        utility.tween(descendant, { 0.2 }, { BackgroundTransparency = descendant.BackgroundTransparency + 1, TextTransparency = descendant.TextTransparency + 1, TextStrokeTransparency = descendant.TextStrokeTransparency + 1 })
  156.                    elseif descendant.ClassName:find("Image") then
  157.                        utility.tween(descendant, { 0.2 }, { BackgroundTransparency = descendant.BackgroundTransparency + 1, ImageTransparency = descendant.ImageTransparency + 1 })
  158.                    elseif descendant.ClassName:find("Scrolling") then
  159.                        utility.tween(descendant, { 0.2 }, { BackgroundTransparency = descendant.BackgroundTransparency + 1, ScrollBarImageTransparency = descendant.ScrollBarImageTransparency + 1 })
  160.                    else
  161.                        utility.tween(descendant, { 0.2 }, { BackgroundTransparency = descendant.BackgroundTransparency + 1 })
  162.                    end
  163.                end
  164.            end
  165.  
  166.            return tween
  167.        elseif bool == true then
  168.            local tween
  169.  
  170.            if not obj.ClassName:find("UI") then
  171.                obj.Visible = true
  172.  
  173.                if obj.ClassName:find("Text") then
  174.                    tween = utility.tween(obj, { 0.2 }, { BackgroundTransparency = obj.BackgroundTransparency - 1, TextTransparency = obj.TextTransparency - 1, TextStrokeTransparency = obj.TextStrokeTransparency - 1 })
  175.                elseif obj.ClassName:find("Image") then
  176.                    tween = utility.tween(obj, { 0.2 }, { BackgroundTransparency = obj.BackgroundTransparency - 1, ImageTransparency = obj.ImageTransparency - 1 })
  177.                elseif obj.ClassName:find("Scrolling") then
  178.                    tween = utility.tween(obj, { 0.2 }, { BackgroundTransparency = obj.BackgroundTransparency - 1, ScrollBarImageTransparency = obj.ScrollBarImageTransparency - 1 })
  179.                else
  180.                    tween = utility.tween(obj, { 0.2 }, { BackgroundTransparency = obj.BackgroundTransparency - 1 })
  181.                end
  182.            end
  183.  
  184.            for _, descendant in next, obj:GetDescendants() do
  185.                if not descendant.ClassName:find("UI") then
  186.                    if descendant.ClassName:find("Text") then
  187.                        utility.tween(descendant, { 0.2 }, { BackgroundTransparency = descendant.BackgroundTransparency - 1, TextTransparency = descendant.TextTransparency - 1, TextStrokeTransparency = descendant.TextStrokeTransparency - 1 })
  188.                    elseif descendant.ClassName:find("Image") then
  189.                        utility.tween(descendant, { 0.2 }, { BackgroundTransparency = descendant.BackgroundTransparency - 1, ImageTransparency = descendant.ImageTransparency - 1 })
  190.                    elseif descendant.ClassName:find("Scrolling") then
  191.                        utility.tween(descendant, { 0.2 }, { BackgroundTransparency = descendant.BackgroundTransparency - 1, ScrollBarImageTransparency = descendant.ScrollBarImageTransparency - 1 })
  192.                    else
  193.                        utility.tween(descendant, { 0.2 }, { BackgroundTransparency = descendant.BackgroundTransparency - 1 })
  194.                    end
  195.                end
  196.            end
  197.  
  198.            return tween
  199.        end
  200.    end
  201.  
  202.    function utility.updatescrolling(scrolling, list)
  203.        return list:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  204.            scrolling.CanvasSize = UDim2.new(0, 0, 0, list.AbsoluteContentSize.Y)
  205.        end)
  206.    end
  207.  
  208.    function utility.changecolor(color, amount)
  209.        local r, g, b = utility.getrgb(color)
  210.        r = math.clamp(r + amount, 0, 255)
  211.        g = math.clamp(g + amount, 0, 255)
  212.        b = math.clamp(b + amount, 0, 255)
  213.  
  214.        return Color3.fromRGB(r, g, b)
  215.    end
  216.  
  217.    function utility.gradient(colors)
  218.        local colortbl = {}
  219.  
  220.        for i, color in next, colors do
  221.            table.insert(colortbl, ColorSequenceKeypoint.new((i - 1) / (#colors - 1), color))
  222.        end
  223.  
  224.        return ColorSequence.new(colortbl)
  225.    end
  226.  
  227.    library = utility.table {
  228.        flags = {},
  229.        toggled = true,
  230.        accent = Color3.fromRGB(162, 109, 184),
  231.        outline = { Color3.fromRGB(121, 66, 254), Color3.fromRGB(223, 57, 137) },
  232.        keybind = Enum.KeyCode.RightShift
  233.    }
  234.  
  235.    local accentobjects = { gradient = {}, bg = {}, text = {} }
  236.  
  237.    function library:ChangeAccent(accent)
  238.        library.accent = accent
  239.  
  240.        for obj, color in next, accentobjects.gradient do
  241.            obj.Color = color(accent)
  242.        end
  243.  
  244.        for _, obj in next, accentobjects.bg do
  245.            obj.BackgroundColor3 = accent
  246.        end
  247.  
  248.        for _, obj in next, accentobjects.text do
  249.            obj.TextColor3 = accent
  250.        end
  251.    end
  252.  
  253.    local outlineobjs = {}
  254.  
  255.    function library:ChangeOutline(colors)
  256.        for _, obj in next, outlineobjs do
  257.            obj.Color = utility.gradient(colors)
  258.        end
  259.    end
  260.  
  261.    local gui = utility.create("ScreenGui", {})
  262.  
  263.    local flags = {}
  264.  
  265.    function library:SaveConfig(name, universal)
  266.        local configtbl = {}
  267.        local placeid = universal and "universal" or game.PlaceId
  268.  
  269.        for flag, _ in next, flags do
  270.            local value = library.flags[flag]
  271.            if typeof(value) == "EnumItem" then
  272.                configtbl[flag] = tostring(value)
  273.            elseif typeof(value) == "Color3" then
  274.                configtbl[flag] = { math.floor(value.R * 255), math.floor(value.G * 255), math.floor(value.B * 255) }
  275.            else
  276.                configtbl[flag] = value
  277.            end
  278.        end
  279.  
  280.        local config = services.HttpService:JSONEncode(configtbl)
  281.        local folderpath = string.format("%s//%s", folder, placeid)
  282.  
  283.        if not isfolder(folderpath) then
  284.            makefolder(folderpath)
  285.        end
  286.  
  287.        local filepath = string.format("%s//%s.json", folderpath, name)
  288.        writefile(filepath, config)
  289.    end
  290.  
  291.    function library:DeleteConfig(name, universal)
  292.        local placeid = universal and "universal" or game.PlaceId
  293.  
  294.        local folderpath = string.format("%s//%s", folder, placeid)
  295.  
  296.        if isfolder(folderpath) then
  297.            local folderpath = string.format("%s//%s", folder, placeid)
  298.            local filepath = string.format("%s//%s.json", folderpath, name)
  299.  
  300.            delfile(filepath)
  301.        end
  302.    end
  303.  
  304.    function library:LoadConfig(name)
  305.        local placeidfolder = string.format("%s//%s", folder, game.PlaceId)
  306.        local placeidfile = string.format("%s//%s.json", placeidfolder, name)
  307.  
  308.        local filepath
  309.        do
  310.            if isfolder(placeidfolder) and isfile(placeidfile) then
  311.                filepath = placeidfile
  312.            else
  313.                filepath = string.format("%s//universal//%s.json", folder, name)
  314.            end
  315.        end
  316.  
  317.        local file = readfile(filepath)
  318.        local config = services.HttpService:JSONDecode(file)
  319.  
  320.        for flag, v in next, config do
  321.            local func = flags[flag]
  322.            func(v)
  323.        end
  324.    end
  325.  
  326.    function library:ListConfigs(universal)
  327.        local configs = {}
  328.        local placeidfolder = string.format("%s//%s", folder, game.PlaceId)
  329.        local universalfolder = folder .. "//universal"
  330.  
  331.        for _, config in next, (isfolder(placeidfolder) and listfiles(placeidfolder) or {}) do
  332.            local name = config:gsub(placeidfolder .. "\\", ""):gsub(".json", "")
  333.            table.insert(configs, name)
  334.        end
  335.  
  336.        if universal and isfolder(universalfolder) then
  337.            for _, config in next, (isfolder(placeidfolder) and listfiles(placeidfolder) or {}) do
  338.                configs[config:gsub(universalfolder .. "\\", "")] = readfile(config)
  339.            end
  340.        end
  341.        return configs
  342.    end
  343.  
  344.    function library:Watermark(options)
  345.        local text = table.concat(options, " <font color=\"#D2D2D2\">|</font> ")
  346.  
  347.        local watermarksize = services.TextService:GetTextSize(text:gsub("<font color=\"#D2D2D2\">", ""):gsub("</font>", ""), 14, Enum.Font.Code, Vector2.new(1000, 1000)).X + 16
  348.  
  349.        local watermark = utility.create("TextLabel", {
  350.            ZIndex = 2,
  351.            Size = UDim2.new(0, watermarksize, 0, 20),
  352.            BorderColor3 = Color3.fromRGB(50, 50, 50),
  353.            Position = UDim2.new(0, 10, 0, 10),
  354.            BorderSizePixel = 0,
  355.            BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  356.            FontSize = Enum.FontSize.Size14,
  357.            TextStrokeTransparency = 0,
  358.            TextSize = 14,
  359.            RichText = true,
  360.            TextColor3 = library.accent,
  361.            Text = text,
  362.            Font = Enum.Font.Code,
  363.            Parent = gui
  364.        })
  365.  
  366.        table.insert(accentobjects.text, watermark)
  367.  
  368.        utility.create("UIPadding", {
  369.            PaddingBottom = UDim.new(0, 2),
  370.            Parent = watermark
  371.        })
  372.  
  373.        local outline = utility.create("Frame", {
  374.            Size = UDim2.new(1, 2, 1, 4),
  375.            BorderColor3 = Color3.fromRGB(45, 45, 45),
  376.            Position = UDim2.new(0, -1, 0, -1),
  377.            BorderSizePixel = 0,
  378.            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  379.            Parent = watermark
  380.        })
  381.  
  382.        utility.create("Frame", {
  383.            ZIndex = 0,
  384.            Size = UDim2.new(1, 2, 1, 2),
  385.            Position = UDim2.new(0, -1, 0, -1),
  386.            BorderSizePixel = 0,
  387.            BackgroundColor3 = Color3.fromRGB(45, 45, 45),
  388.            Parent = outline
  389.        })
  390.  
  391.        local outlinegradient = utility.create("UIGradient", {
  392.            Rotation = 45,
  393.            Color = utility.gradient(library.outline),
  394.            Parent = outline
  395.        })
  396.  
  397.        table.insert(outlineobjs, outlinegradient)
  398.  
  399.        local watermarktypes = utility.table()
  400.  
  401.        function watermarktypes:Update(options)
  402.            local text = table.concat(options, " <font color=\"#D2D2D2\">|</font> ")
  403.            local watermarksize = services.TextService:GetTextSize(text:gsub("<font color=\"#D2D2D2\">", ""):gsub("</font>", ""), 14, Enum.Font.Code, Vector2.new(1000, 1000)).X + 16
  404.  
  405.            watermark.Size = UDim2.new(0, watermarksize, 0, 20)
  406.            watermark.Text = text
  407.        end
  408.  
  409.        local toggling = false
  410.        local toggled = true
  411.  
  412.        function watermarktypes:Toggle()
  413.            if not toggling then
  414.                toggling = true
  415.  
  416.                toggled = not toggled
  417.                local tween = utility.makevisible(watermark, toggled)
  418.                tween.Completed:Wait()
  419.  
  420.                toggling = false
  421.            end
  422.        end
  423.  
  424.        return watermarktypes
  425.    end
  426.  
  427.    function library:New(options)
  428.        options = utility.table(options)
  429.        local name = options.name
  430.        local accent = options.accent or library.accent
  431.        local outlinecolor = options.outline or { accent, utility.changecolor(accent, -100) }
  432.        local sizeX = options.sizeX or 550
  433.        local sizeY = options.sizeY or 350
  434.  
  435.        library.accent = accent
  436.        library.outline = outlinecolor
  437.  
  438.        local holder = utility.create("Frame", {
  439.            Size = UDim2.new(0, sizeX, 0, 24),
  440.            BackgroundTransparency = 1,
  441.            Position = utility.getcenter(sizeX, sizeY),
  442.            Parent = gui
  443.        })
  444.  
  445.        local toggling = false
  446.  
  447.        function library:Toggle()
  448.            if not toggling then
  449.                toggling = true
  450.  
  451.                library.toggled = not library.toggled
  452.                local tween = utility.makevisible(holder, library.toggled)
  453.                tween.Completed:Wait()
  454.  
  455.                toggling = false
  456.            end
  457.        end
  458.  
  459.        utility.dragify(holder)
  460.  
  461.        local title = utility.create("TextLabel", {
  462.            ZIndex = 5,
  463.            Size = UDim2.new(0, 0, 1, -2),
  464.            BorderColor3 = Color3.fromRGB(50, 50, 50),
  465.            BackgroundTransparency = 1,
  466.            Position = UDim2.new(0, 12, 0, 0),
  467.            BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  468.            FontSize = Enum.FontSize.Size14,
  469.            TextStrokeTransparency = 0,
  470.            TextSize = 14,
  471.            TextColor3 = library.accent,
  472.            Text = name,
  473.            Font = Enum.Font.Code,
  474.            TextXAlignment = Enum.TextXAlignment.Left,
  475.            Parent = holder
  476.        })
  477.  
  478.        table.insert(accentobjects.text, title)
  479.  
  480.        local main = utility.create("Frame", {
  481.            ZIndex = 2,
  482.            Size = UDim2.new(1, 0, 0, sizeY),
  483.            BorderColor3 = Color3.fromRGB(27, 42, 53),
  484.            BorderSizePixel = 0,
  485.            BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  486.            Parent = holder
  487.        })
  488.  
  489.        local outline = utility.create("Frame", {
  490.            Size = UDim2.new(1, 2, 1, 2),
  491.            BorderColor3 = Color3.fromRGB(45, 45, 45),
  492.            Position = UDim2.new(0, -1, 0, -1),
  493.            BorderSizePixel = 0,
  494.            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  495.            Parent = main
  496.        })
  497.  
  498.        local outlinegradient = utility.create("UIGradient", {
  499.            Rotation = 45,
  500.            Color = utility.gradient(library.outline),
  501.            Parent = outline
  502.        })
  503.  
  504.        table.insert(outlineobjs, outlinegradient)
  505.  
  506.        local border = utility.create("Frame", {
  507.            ZIndex = 0,
  508.            Size = UDim2.new(1, 2, 1, 2),
  509.            Position = UDim2.new(0, -1, 0, -1),
  510.            BorderSizePixel = 0,
  511.            BackgroundColor3 = Color3.fromRGB(45, 45, 45),
  512.            Parent = outline
  513.        })
  514.  
  515.        local tabs = utility.create("Frame", {
  516.            ZIndex = 4,
  517.            Size = UDim2.new(1, -16, 1, -30),
  518.            BorderColor3 = Color3.fromRGB(50, 50, 50),
  519.            Position = UDim2.new(0, 8, 0, 22),
  520.            BorderSizePixel = 0,
  521.            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  522.            Parent = main
  523.        })
  524.  
  525.        utility.create("UIGradient", {
  526.            Rotation = 90,
  527.            Color = ColorSequence.new(Color3.fromRGB(25, 25, 25), Color3.fromRGB(20, 20, 20)),
  528.            Parent = tabs
  529.        })
  530.  
  531.        utility.create("Frame", {
  532.            ZIndex = 3,
  533.            Size = UDim2.new(1, 2, 1, 2),
  534.            Position = UDim2.new(0, -1, 0, -1),
  535.            BorderSizePixel = 0,
  536.            BackgroundColor3 = Color3.fromRGB(20, 20, 20),
  537.            Parent = tabs
  538.        })
  539.  
  540.        local tabtoggles = utility.create("Frame", {
  541.            Size = UDim2.new(0, 395, 0, 22),
  542.            BackgroundTransparency = 1,
  543.            Position = UDim2.new(0, 6, 0, 6),
  544.            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  545.            Parent = tabs
  546.        })
  547.  
  548.        utility.create("UIListLayout", {
  549.            FillDirection = Enum.FillDirection.Horizontal,
  550.            SortOrder = Enum.SortOrder.LayoutOrder,
  551.            Padding = UDim.new(0, 4),
  552.            Parent = tabtoggles
  553.        })
  554.  
  555.        local tabframes = utility.create("Frame", {
  556.            ZIndex = 5,
  557.            Size = UDim2.new(1, -12, 1, -35),
  558.            BorderColor3 = Color3.fromRGB(50, 50, 50),
  559.            Position = UDim2.new(0, 6, 0, 29),
  560.            BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  561.            Parent = tabs
  562.        })
  563.  
  564.        local tabholder = utility.create("Frame", {
  565.            Size = UDim2.new(1, -16, 1, -16),
  566.            BackgroundTransparency = 1,
  567.            Position = UDim2.new(0, 8, 0, 8),
  568.            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  569.            Parent = tabframes
  570.        })
  571.  
  572.        local windowtypes = utility.table()
  573.  
  574.        local pagetoggles = {}
  575.  
  576.        local switchingtabs = false
  577.  
  578.        local firsttab
  579.        local currenttab
  580.  
  581.        function windowtypes:Page(options)
  582.            options = utility.table(options)
  583.            local name = options.name
  584.  
  585.            local first = #tabtoggles:GetChildren() == 1
  586.  
  587.            local togglesizeX = math.clamp(services.TextService:GetTextSize(name, 14, Enum.Font.Code, Vector2.new(1000, 1000)).X, 25, math.huge)
  588.  
  589.            local tabtoggle = utility.create("TextButton", {
  590.                Size = UDim2.new(0, togglesizeX + 18, 1, 0),
  591.                BackgroundTransparency = 1,
  592.                FontSize = Enum.FontSize.Size14,
  593.                TextSize = 14,
  594.                Parent = tabtoggles
  595.            })
  596.  
  597.            local antiborder = utility.create("Frame", {
  598.                ZIndex = 6,
  599.                Visible = first,
  600.                Size = UDim2.new(1, 0, 0, 1),
  601.                Position = UDim2.new(0, 0, 1, 0),
  602.                BorderSizePixel = 0,
  603.                BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  604.                Parent = tabtoggle
  605.            })
  606.  
  607.            local selectedglow = utility.create("Frame", {
  608.                ZIndex = 6,
  609.                Size = UDim2.new(1, 0, 0, 1),
  610.                Visible = first,
  611.                BorderColor3 = Color3.fromRGB(50, 50, 50),
  612.                BorderSizePixel = 0,
  613.                BackgroundColor3 = library.accent,
  614.                Parent = tabtoggle
  615.            })
  616.  
  617.            table.insert(accentobjects.bg, selectedglow)
  618.  
  619.            utility.create("Frame", {
  620.                ZIndex = 7,
  621.                Size = UDim2.new(1, 0, 0, 1),
  622.                Position = UDim2.new(0, 0, 1, 0),
  623.                BorderSizePixel = 0,
  624.                BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  625.                Parent = selectedglow
  626.            })
  627.  
  628.            local titleholder = utility.create("Frame", {
  629.                ZIndex = 6,
  630.                Size = UDim2.new(1, 0, 1, first and -1 or -4),
  631.                BorderColor3 = Color3.fromRGB(50, 50, 50),
  632.                Position = UDim2.new(0, 0, 0, first and 1 or 4),
  633.                BorderSizePixel = 0,
  634.                BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  635.                Parent = tabtoggle
  636.            })
  637.  
  638.            local title = utility.create("TextLabel", {
  639.                ZIndex = 7,
  640.                Size = UDim2.new(1, 0, 1, 0),
  641.                BackgroundTransparency = 1,
  642.                FontSize = Enum.FontSize.Size14,
  643.                TextStrokeTransparency = 0,
  644.                TextSize = 14,
  645.                TextColor3 = first and library.accent or Color3.fromRGB(110, 110, 110),
  646.                Text = name,
  647.                Font = Enum.Font.Code,
  648.                Parent = titleholder
  649.            })
  650.  
  651.            if first then
  652.                table.insert(accentobjects.text, title)
  653.            end
  654.  
  655.            local tabglowgradient = utility.create("UIGradient", {
  656.                Rotation = 90,
  657.                Color = first and utility.gradient { utility.changecolor(library.accent, -30), Color3.fromRGB(30, 30, 30) } or utility.gradient { Color3.fromRGB(22, 22, 22), Color3.fromRGB(22, 22, 22) },
  658.                Offset = Vector2.new(0, -0.55),
  659.                Parent = titleholder
  660.            })
  661.  
  662.            if first then
  663.                accentobjects.gradient[tabglowgradient] = function(color)
  664.                    return utility.gradient { utility.changecolor(color, -30), Color3.fromRGB(30, 30, 30) }
  665.                end
  666.            end
  667.  
  668.            local tabtoggleborder = utility.create("Frame", {
  669.                ZIndex = 5,
  670.                Size = UDim2.new(1, 2, 1, 2),
  671.                Position = UDim2.new(0, -1, 0, -1),
  672.                BorderSizePixel = 0,
  673.                BackgroundColor3 = Color3.fromRGB(50, 50, 50),
  674.                Parent = title
  675.            })
  676.  
  677.            pagetoggles[tabtoggle] = {}
  678.            pagetoggles[tabtoggle] = function()
  679.                utility.tween(antiborder, { 0.2 }, { BackgroundTransparency = 1 }, function()
  680.                    antiborder.Visible = false
  681.                end)
  682.  
  683.                utility.tween(selectedglow, { 0.2 }, { BackgroundTransparency = 1 }, function()
  684.                    selectedglow.Visible = false
  685.                end)
  686.  
  687.                utility.tween(titleholder, { 0.2 }, { Size = UDim2.new(1, 0, 1, -4), Position = UDim2.new(0, 0, 0, 4) })
  688.  
  689.                utility.tween(title, { 0.2 }, { TextColor3 = Color3.fromRGB(110, 110, 110) })
  690.                if table.find(accentobjects.text, title) then
  691.                    table.remove(accentobjects.text, table.find(accentobjects.text, title))
  692.                end
  693.  
  694.                tabglowgradient.Color = utility.gradient { Color3.fromRGB(22, 22, 22), Color3.fromRGB(22, 22, 22) }
  695.  
  696.                if accentobjects.gradient[tabglowgradient] then
  697.                    accentobjects.gradient[tabglowgradient] = function() end
  698.                end
  699.            end
  700.  
  701.            local tab = utility.create("Frame", {
  702.                Size = UDim2.new(1, 0, 1, 0),
  703.                BackgroundTransparency = first and 1 or 2,
  704.                Visible = first,
  705.                Parent = tabholder
  706.            })
  707.  
  708.            if first then
  709.                currenttab = tab
  710.                firsttab = tab
  711.            end
  712.  
  713.            tab.DescendantAdded:Connect(function(descendant)
  714.                if tab ~= currenttab then
  715.                    task.wait()
  716.                    if not descendant.ClassName:find("UI") then
  717.                        if descendant.ClassName:find("Text") then
  718.                            descendant.TextTransparency = descendant.TextTransparency + 1
  719.                            descendant.TextStrokeTransparency = descendant.TextStrokeTransparency + 1
  720.                        end
  721.  
  722.                        if descendant.ClassName:find("Scrolling") then
  723.                            descendant.ScrollBarImageTransparency = descendant.ScrollBarImageTransparency + 1
  724.                        end
  725.  
  726.                        descendant.BackgroundTransparency = descendant.BackgroundTransparency + 1
  727.                    end
  728.                end
  729.            end)
  730.  
  731.            local column1 = utility.create("ScrollingFrame", {
  732.                Size = UDim2.new(0.5, -5, 1, 0),
  733.                BackgroundTransparency = 1,
  734.                Active = true,
  735.                BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  736.                AutomaticCanvasSize = Enum.AutomaticSize.Y,
  737.                CanvasSize = UDim2.new(0, 0, 0, 123),
  738.                ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0),
  739.                ScrollBarThickness = 0,
  740.                Parent = tab
  741.            })
  742.  
  743.            local column1list = utility.create("UIListLayout", {
  744.                SortOrder = Enum.SortOrder.LayoutOrder,
  745.                Padding = UDim.new(0, 10),
  746.                Parent = column1
  747.            })
  748.  
  749.            utility.updatescrolling(column1, column1list)
  750.  
  751.            local column2 = utility.create("ScrollingFrame", {
  752.                Size = UDim2.new(0.5, -5, 1, 0),
  753.                BackgroundTransparency = 1,
  754.                Position = UDim2.new(0.5, 7, 0, 0),
  755.                Active = true,
  756.                BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  757.                AutomaticCanvasSize = Enum.AutomaticSize.Y,
  758.                CanvasSize = UDim2.new(0, 0, 0, 0),
  759.                ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0),
  760.                ScrollBarThickness = 0,
  761.                Parent = tab
  762.            })
  763.  
  764.            local column2list = utility.create("UIListLayout", {
  765.                SortOrder = Enum.SortOrder.LayoutOrder,
  766.                Padding = UDim.new(0, 10),
  767.                Parent = column2
  768.            })
  769.  
  770.            utility.updatescrolling(column2, column2list)
  771.  
  772.            local function opentab()
  773.                if not switchingtabs then
  774.                    switchingtabs = true
  775.  
  776.                    currenttab = tab
  777.  
  778.                    for toggle, close in next, pagetoggles do
  779.                        if toggle ~= tabtoggle then
  780.                            close()
  781.                        end
  782.                    end
  783.  
  784.                    for _, obj in next, tabholder:GetChildren() do
  785.                        if obj ~= tab and obj.BackgroundTransparency <= 1 then
  786.                            utility.makevisible(obj, false)
  787.                        end
  788.                    end
  789.  
  790.                    antiborder.Visible = true
  791.                    utility.tween(antiborder, { 0.2 }, { BackgroundTransparency = 0 })
  792.  
  793.                    selectedglow.Visible = true
  794.                    utility.tween(selectedglow, { 0.2 }, { BackgroundTransparency = 0 })
  795.  
  796.                    utility.tween(titleholder, { 0.2 }, { Size = UDim2.new(1, 0, 1, -1), Position = UDim2.new(0, 0, 0, 1) })
  797.  
  798.                    utility.tween(title, { 0.2 }, { TextColor3 = library.accent })
  799.  
  800.                    table.insert(accentobjects.text, title)
  801.  
  802.                    tabglowgradient.Color = utility.gradient { utility.changecolor(library.accent, -30), Color3.fromRGB(30, 30, 30) }
  803.  
  804.                    accentobjects.gradient[tabglowgradient] = function(color)
  805.                        return utility.gradient { utility.changecolor(color, -30), Color3.fromRGB(30, 30, 30) }
  806.                    end
  807.  
  808.                    tab.Visible = true
  809.                    if tab.BackgroundTransparency > 1 then
  810.                        task.wait(0.2)
  811.  
  812.                        local tween = utility.makevisible(tab, true)
  813.                        tween.Completed:Wait()
  814.                    end
  815.  
  816.                    switchingtabs = false
  817.                end
  818.            end
  819.  
  820.            tabtoggle.MouseButton1Click:Connect(opentab)
  821.  
  822.            local pagetypes = utility.table()
  823.  
  824.            function pagetypes:Section(options)
  825.                options = utility.table(options)
  826.                local name = options.name
  827.                local side = options.side or "left"
  828.                local max = options.max or math.huge
  829.                local column = (side:lower() == "left" and column1) or (side:lower() == "right" and column2)
  830.  
  831.                local sectionholder = utility.create("Frame", {
  832.                    Size = UDim2.new(1, -1, 0, 28),
  833.                    BackgroundTransparency = 1,
  834.                    BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  835.                    Parent = column
  836.                })
  837.  
  838.                local section = utility.create("Frame", {
  839.                    ZIndex = 6,
  840.                    Size = UDim2.new(1, -2, 1, -2),
  841.                    BorderColor3 = Color3.fromRGB(50, 50, 50),
  842.                    Position = UDim2.new(0, 1, 0, 1),
  843.                    BackgroundColor3 = Color3.fromRGB(22, 22, 22),
  844.                    Parent = sectionholder
  845.                })
  846.  
  847.                local title = utility.create("TextLabel", {
  848.                    ZIndex = 8,
  849.                    Size = UDim2.new(0, 0, 0, 14),
  850.                    BorderColor3 = Color3.fromRGB(50, 50, 50),
  851.                    BackgroundTransparency = 1,
  852.                    Position = UDim2.new(0, 6, 0, 3),
  853.                    BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  854.                    FontSize = Enum.FontSize.Size14,
  855.                    TextStrokeTransparency = 0,
  856.                    TextSize = 14,
  857.                    TextColor3 = library.accent,
  858.                    Text = name,
  859.                    Font = Enum.Font.Code,
  860.                    TextXAlignment = Enum.TextXAlignment.Left,
  861.                    Parent = section
  862.                })
  863.  
  864.                table.insert(accentobjects.text, title)
  865.  
  866.                local glow = utility.create("Frame", {
  867.                    ZIndex = 8,
  868.                    Size = UDim2.new(1, 0, 0, 1),
  869.                    BorderColor3 = Color3.fromRGB(50, 50, 50),
  870.                    BorderSizePixel = 0,
  871.                    BackgroundColor3 = library.accent,
  872.                    Parent = section
  873.                })
  874.  
  875.                table.insert(accentobjects.bg, glow)
  876.  
  877.                utility.create("Frame", {
  878.                    ZIndex = 9,
  879.                    Size = UDim2.new(1, 0, 0, 1),
  880.                    Position = UDim2.new(0, 0, 1, 0),
  881.                    BorderSizePixel = 0,
  882.                    BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  883.                    Parent = glow
  884.                })
  885.  
  886.                local fade = utility.create("Frame", {
  887.                    ZIndex = 7,
  888.                    Size = UDim2.new(1, 0, 0, 20),
  889.                    BorderSizePixel = 0,
  890.                    BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  891.                    Parent = glow
  892.                })
  893.  
  894.                local fadegradient = utility.create("UIGradient", {
  895.                    Rotation = 90,
  896.                    Color = utility.gradient { utility.changecolor(library.accent, -30), Color3.fromRGB(22, 22, 22) },
  897.                    Offset = Vector2.new(0, -0.55),
  898.                    Parent = fade
  899.                })
  900.  
  901.                accentobjects.gradient[fadegradient] = function(color)
  902.                    return utility.gradient { utility.changecolor(color, -30), Color3.fromRGB(22, 22, 22) }
  903.                end
  904.  
  905.                local sectioncontent = utility.create("ScrollingFrame", {
  906.                    ZIndex = 7,
  907.                    Size = UDim2.new(1, -7, 1, -26),
  908.                    BorderColor3 = Color3.fromRGB(27, 42, 53),
  909.                    BackgroundTransparency = 1,
  910.                    Position = UDim2.new(0, 6, 0, 20),
  911.                    Active = true,
  912.                    BorderSizePixel = 0,
  913.                    BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  914.                    CanvasSize = UDim2.new(0, 0, 0, 1),
  915.                    ScrollBarThickness = 2,
  916.                    Parent = section
  917.                })
  918.  
  919.                local sectionlist = utility.create("UIListLayout", {
  920.                    SortOrder = Enum.SortOrder.LayoutOrder,
  921.                    Padding = UDim.new(0, 2),
  922.                    Parent = sectioncontent
  923.                })
  924.  
  925.                utility.updatescrolling(sectioncontent, sectionlist)
  926.  
  927.                local sectiontypes = utility.table()
  928.  
  929.                function sectiontypes:Label(options)
  930.                    options = utility.table(options)
  931.                    local name = options.name
  932.  
  933.                    utility.create("TextLabel", {
  934.                        ZIndex = 8,
  935.                        Size = UDim2.new(1, 0, 0, 13),
  936.                        BorderColor3 = Color3.fromRGB(50, 50, 50),
  937.                        BackgroundTransparency = 1,
  938.                        Position = UDim2.new(0, 6, 0, 3),
  939.                        BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  940.                        FontSize = Enum.FontSize.Size14,
  941.                        TextStrokeTransparency = 0,
  942.                        TextSize = 13,
  943.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  944.                        Text = name,
  945.                        Font = Enum.Font.Code,
  946.                        TextXAlignment = Enum.TextXAlignment.Left,
  947.                        Parent = sectioncontent
  948.                    })
  949.  
  950.                    if #sectioncontent:GetChildren() - 1 <= max then
  951.                        sectionholder.Size = UDim2.new(1, -1, 0, sectionlist.AbsoluteContentSize.Y + 28)
  952.                    end
  953.                end
  954.  
  955.                function sectiontypes:Button(options)
  956.                    options = utility.table(options)
  957.                    local name = options.name
  958.                    local callback = options.callback
  959.  
  960.                    local buttonholder = utility.create("Frame", {
  961.                        Size = UDim2.new(1, -5, 0, 17),
  962.                        BackgroundTransparency = 1,
  963.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  964.                        Parent = sectioncontent
  965.                    })
  966.  
  967.                    local button = utility.create("TextButton", {
  968.                        ZIndex = 10,
  969.                        Size = UDim2.new(1, -4, 1, -4),
  970.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  971.                        BackgroundTransparency = 1,
  972.                        Position = UDim2.new(0, 2, 0, 2),
  973.                        BackgroundColor3 = Color3.fromRGB(25, 25, 25),
  974.                        AutoButtonColor = false,
  975.                        FontSize = Enum.FontSize.Size14,
  976.                        TextStrokeTransparency = 0,
  977.                        TextSize = 13,
  978.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  979.                        Text = name,
  980.                        Font = Enum.Font.Code,
  981.                        Parent = buttonholder
  982.                    })
  983.  
  984.                    local bg = utility.create("Frame", {
  985.                        ZIndex = 9,
  986.                        Size = UDim2.new(1, 0, 1, 0),
  987.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  988.                        BorderSizePixel = 0,
  989.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  990.                        Parent = button
  991.                    })
  992.  
  993.                    local bggradient = utility.create("UIGradient", {
  994.                        Rotation = 90,
  995.                        Color = utility.gradient { Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25) },
  996.                        Parent = bg
  997.                    })
  998.  
  999.                    local grayborder = utility.create("Frame", {
  1000.                        ZIndex = 8,
  1001.                        Size = UDim2.new(1, 2, 1, 2),
  1002.                        Position = UDim2.new(0, -1, 0, -1),
  1003.                        BorderSizePixel = 0,
  1004.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1005.                        Parent = button
  1006.                    })
  1007.  
  1008.                    local blackborder = utility.create("Frame", {
  1009.                        ZIndex = 7,
  1010.                        Size = UDim2.new(1, 2, 1, 2),
  1011.                        Position = UDim2.new(0, -1, 0, -1),
  1012.                        BorderSizePixel = 0,
  1013.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1014.                        Parent = grayborder
  1015.                    })
  1016.  
  1017.                    button.MouseButton1Click:Connect(callback)
  1018.  
  1019.                    button.InputBegan:Connect(function(input)
  1020.                        if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1021.                            bggradient.Color = utility.gradient { Color3.fromRGB(45, 45, 45), Color3.fromRGB(35, 35, 35) }
  1022.                        end
  1023.                    end)
  1024.  
  1025.                    button.InputEnded:Connect(function(input)
  1026.                        if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1027.                            bggradient.Color = utility.gradient { Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25) }
  1028.                        end
  1029.                    end)
  1030.  
  1031.                    if #sectioncontent:GetChildren() - 1 <= max then
  1032.                        sectionholder.Size = UDim2.new(1, -1, 0, sectionlist.AbsoluteContentSize.Y + 28)
  1033.                    end
  1034.                end
  1035.  
  1036.                function sectiontypes:Toggle(options)
  1037.                    options = utility.table(options)
  1038.                    local name = options.name
  1039.                    local default = options.default
  1040.                    local flag = options.pointer
  1041.                    local callback = options.callback or function() end
  1042.  
  1043.                    local toggleholder = utility.create("TextButton", {
  1044.                        Size = UDim2.new(1, -5, 0, 14),
  1045.                        BackgroundTransparency = 1,
  1046.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1047.                        FontSize = Enum.FontSize.Size14,
  1048.                        TextSize = 14,
  1049.                        TextColor3 = Color3.fromRGB(0, 0, 0),
  1050.                        Font = Enum.Font.SourceSans,
  1051.                        Parent = sectioncontent
  1052.                    })
  1053.  
  1054.                    local togglething = utility.create("TextButton", {
  1055.                        ZIndex = 9,
  1056.                        Size = UDim2.new(1, 0, 0, 14),
  1057.                        BorderSizePixel = 0,
  1058.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1059.                        BackgroundTransparency = 1,
  1060.                        TextTransparency = 1,
  1061.                        Parent = toggleholder
  1062.                    })
  1063.  
  1064.                    local icon = utility.create("Frame", {
  1065.                        ZIndex = 9,
  1066.                        Size = UDim2.new(0, 10, 0, 10),
  1067.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  1068.                        Position = UDim2.new(0, 2, 0, 2),
  1069.                        BorderSizePixel = 0,
  1070.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1071.                        Parent = toggleholder
  1072.                    })
  1073.  
  1074.                    local grayborder = utility.create("Frame", {
  1075.                        ZIndex = 8,
  1076.                        Size = UDim2.new(1, 2, 1, 2),
  1077.                        Position = UDim2.new(0, -1, 0, -1),
  1078.                        BorderSizePixel = 0,
  1079.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1080.                        Parent = icon
  1081.                    })
  1082.  
  1083.                    utility.create("Frame", {
  1084.                        ZIndex = 7,
  1085.                        Size = UDim2.new(1, 2, 1, 2),
  1086.                        Position = UDim2.new(0, -1, 0, -1),
  1087.                        BorderSizePixel = 0,
  1088.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1089.                        Parent = grayborder
  1090.                    })
  1091.  
  1092.                    local icongradient = utility.create("UIGradient", {
  1093.                        Rotation = 90,
  1094.                        Color = utility.gradient { Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25) },
  1095.                        Parent = icon
  1096.                    })
  1097.  
  1098.                    local enablediconholder = utility.create("Frame", {
  1099.                        ZIndex = 10,
  1100.                        Size = UDim2.new(1, 0, 1, 0),
  1101.                        BackgroundTransparency = 1,
  1102.                        BorderSizePixel = 0,
  1103.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1104.                        Parent = icon
  1105.                    })
  1106.  
  1107.                    local enabledicongradient = utility.create("UIGradient", {
  1108.                        Rotation = 90,
  1109.                        Color = utility.gradient { library.accent, Color3.fromRGB(25, 25, 25) },
  1110.                        Parent = enablediconholder
  1111.                    })
  1112.  
  1113.                    accentobjects.gradient[enabledicongradient] = function(color)
  1114.                        return utility.gradient { color, Color3.fromRGB(25, 25, 25) }
  1115.                    end
  1116.  
  1117.                    local title = utility.create("TextLabel", {
  1118.                        ZIndex = 7,
  1119.                        Size = UDim2.new(0, 0, 0, 14),
  1120.                        BackgroundTransparency = 1,
  1121.                        Position = UDim2.new(0, 20, 0, 0),
  1122.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1123.                        FontSize = Enum.FontSize.Size14,
  1124.                        TextStrokeTransparency = 0,
  1125.                        TextSize = 13,
  1126.                        TextColor3 = Color3.fromRGB(180, 180, 180),
  1127.                        Text = name,
  1128.                        Font = Enum.Font.Code,
  1129.                        TextXAlignment = Enum.TextXAlignment.Left,
  1130.                        Parent = toggleholder
  1131.                    })
  1132.  
  1133.                    local toggled = false
  1134.  
  1135.                    if flag then
  1136.                        library.flags[flag] = toggled
  1137.                    end
  1138.  
  1139.                    local function toggle()
  1140.                        if not switchingtabs then
  1141.                            toggled = not toggled
  1142.  
  1143.                            if flag then
  1144.                                library.flags[flag] = toggled
  1145.                            end
  1146.  
  1147.                            callback(toggled)
  1148.  
  1149.                            local enabledtransparency = toggled and 0 or 1
  1150.                            utility.tween(enablediconholder, { 0.2 }, { Transparency = enabledtransparency })
  1151.  
  1152.                            local textcolor = toggled and library.accent or Color3.fromRGB(180, 180, 180)
  1153.                            utility.tween(title, { 0.2 }, { TextColor3 = textcolor })
  1154.  
  1155.                            if toggled then
  1156.                                table.insert(accentobjects.text, title)
  1157.                            elseif table.find(accentobjects.text, title) then
  1158.                                table.remove(accentobjects.text, table.find(accentobjects.text, title))
  1159.                            end
  1160.                        end
  1161.                    end
  1162.  
  1163.                    togglething.MouseButton1Click:Connect(toggle)
  1164.  
  1165.                    local function set(bool)
  1166.                        if type(bool) == "boolean" and toggled ~= bool then
  1167.                            toggle()
  1168.                        end
  1169.                    end
  1170.  
  1171.                    if default then
  1172.                        set(default)
  1173.                    end
  1174.  
  1175.                    if flag then
  1176.                        flags[flag] = set
  1177.                    end
  1178.  
  1179.                    local toggletypes = utility.table()
  1180.  
  1181.                    function toggletypes:Toggle(bool)
  1182.                        set(bool)
  1183.                    end
  1184.  
  1185.                    function toggletypes:Colorpicker(newoptions)
  1186.                        newoptions = utility.table(newoptions)
  1187.                        local name = newoptions.name
  1188.                        local default = newoptions.default or Color3.fromRGB(255, 255, 255)
  1189.                        local colorpickertype = newoptions.mode
  1190.                        local toggleflag = colorpickertype and colorpickertype:lower() == "toggle" and newoptions.togglepointer
  1191.                        local togglecallback = colorpickertype and colorpickertype:lower() == "toggle" and newoptions.togglecallback or function() end
  1192.                        local flag = newoptions.pointer
  1193.                        local callback = newoptions.callback or function() end
  1194.  
  1195.                        local colorpickerframe = utility.create("Frame", {
  1196.                            ZIndex = 9,
  1197.                            Size = UDim2.new(1, -70, 0, 148),
  1198.                            Position = UDim2.new(1, -168, 0, 18),
  1199.                            BorderSizePixel = 0,
  1200.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1201.                            Visible = false,
  1202.                            Parent = toggleholder
  1203.                        })
  1204.  
  1205.                        colorpickerframe.DescendantAdded:Connect(function(descendant)
  1206.                            if not opened then
  1207.                                task.wait()
  1208.                                if not descendant.ClassName:find("UI") then
  1209.                                    if descendant.ClassName:find("Text") then
  1210.                                        descendant.TextTransparency = descendant.TextTransparency + 1
  1211.                                        descendant.TextStrokeTransparency = descendant.TextStrokeTransparency + 1
  1212.                                    end
  1213.  
  1214.                                    if descendant.ClassName:find("Image") then
  1215.                                        descendant.ImageTransparency = descendant.ImageTransparency + 1
  1216.                                    end
  1217.  
  1218.                                    descendant.BackgroundTransparency = descendant.BackgroundTransparency + 1
  1219.                                end
  1220.                            end
  1221.                        end)
  1222.  
  1223.                        local bggradient = utility.create("UIGradient", {
  1224.                            Rotation = 90,
  1225.                            Color = utility.gradient { Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25) },
  1226.                            Parent = colorpickerframe
  1227.                        })
  1228.  
  1229.                        local grayborder = utility.create("Frame", {
  1230.                            ZIndex = 8,
  1231.                            Size = UDim2.new(1, 2, 1, 2),
  1232.                            Position = UDim2.new(0, -1, 0, -1),
  1233.                            BorderSizePixel = 0,
  1234.                            BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1235.                            Parent = colorpickerframe
  1236.                        })
  1237.  
  1238.                        local blackborder = utility.create("Frame", {
  1239.                            ZIndex = 7,
  1240.                            Size = UDim2.new(1, 2, 1, 2),
  1241.                            Position = UDim2.new(0, -1, 0, -1),
  1242.                            BorderSizePixel = 0,
  1243.                            BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1244.                            Parent = grayborder
  1245.                        })
  1246.  
  1247.                        local saturationframe = utility.create("ImageLabel", {
  1248.                            ZIndex = 12,
  1249.                            Size = UDim2.new(0, 128, 0, 100),
  1250.                            BorderColor3 = Color3.fromRGB(50, 50, 50),
  1251.                            Position = UDim2.new(0, 6, 0, 6),
  1252.                            BorderSizePixel = 0,
  1253.                            BackgroundColor3 = default,
  1254.                            Image = "http://www.roblox.com/asset/?id=8630797271",
  1255.                            Parent = colorpickerframe
  1256.                        })
  1257.  
  1258.                        local grayborder = utility.create("Frame", {
  1259.                            ZIndex = 11,
  1260.                            Size = UDim2.new(1, 2, 1, 2),
  1261.                            Position = UDim2.new(0, -1, 0, -1),
  1262.                            BorderSizePixel = 0,
  1263.                            BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1264.                            Parent = saturationframe
  1265.                        })
  1266.  
  1267.                        utility.create("Frame", {
  1268.                            ZIndex = 10,
  1269.                            Size = UDim2.new(1, 2, 1, 2),
  1270.                            Position = UDim2.new(0, -1, 0, -1),
  1271.                            BorderSizePixel = 0,
  1272.                            BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1273.                            Parent = grayborder
  1274.                        })
  1275.  
  1276.                        local saturationpicker = utility.create("Frame", {
  1277.                            ZIndex = 13,
  1278.                            Size = UDim2.new(0, 2, 0, 2),
  1279.                            BorderColor3 = Color3.fromRGB(10, 10, 10),
  1280.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1281.                            Parent = saturationframe
  1282.                        })
  1283.  
  1284.                        local hueframe = utility.create("ImageLabel", {
  1285.                            ZIndex = 12,
  1286.                            Size = UDim2.new(0, 14, 0, 100),
  1287.                            Position = UDim2.new(1, -20, 0, 6),
  1288.                            BorderSizePixel = 0,
  1289.                            BackgroundColor3 = Color3.fromRGB(255, 193, 49),
  1290.                            ScaleType = Enum.ScaleType.Crop,
  1291.                            Image = "http://www.roblox.com/asset/?id=8630799159",
  1292.                            Parent = colorpickerframe
  1293.                        })
  1294.  
  1295.                        local grayborder = utility.create("Frame", {
  1296.                            ZIndex = 11,
  1297.                            Size = UDim2.new(1, 2, 1, 2),
  1298.                            Position = UDim2.new(0, -1, 0, -1),
  1299.                            BorderSizePixel = 0,
  1300.                            BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1301.                            Parent = hueframe
  1302.                        })
  1303.  
  1304.                        utility.create("Frame", {
  1305.                            ZIndex = 10,
  1306.                            Size = UDim2.new(1, 2, 1, 2),
  1307.                            Position = UDim2.new(0, -1, 0, -1),
  1308.                            BorderSizePixel = 0,
  1309.                            BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1310.                            Parent = grayborder
  1311.                        })
  1312.  
  1313.                        local huepicker = utility.create("Frame", {
  1314.                            ZIndex = 13,
  1315.                            Size = UDim2.new(1, 0, 0, 1),
  1316.                            BorderColor3 = Color3.fromRGB(10, 10, 10),
  1317.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1318.                            Parent = hueframe
  1319.                        })
  1320.  
  1321.                        local boxholder = utility.create("Frame", {
  1322.                            Size = UDim2.new(1, -8, 0, 17),
  1323.                            ClipsDescendants = true,
  1324.                            Position = UDim2.new(0, 4, 0, 110),
  1325.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1326.                            Parent = colorpickerframe
  1327.                        })
  1328.  
  1329.                        local box = utility.create("TextBox", {
  1330.                            ZIndex = 13,
  1331.                            Size = UDim2.new(1, -4, 1, -4),
  1332.                            BackgroundTransparency = 1,
  1333.                            Position = UDim2.new(0, 2, 0, 2),
  1334.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1335.                            FontSize = Enum.FontSize.Size14,
  1336.                            TextStrokeTransparency = 0,
  1337.                            TextSize = 13,
  1338.                            TextColor3 = Color3.fromRGB(210, 210, 210),
  1339.                            Text = table.concat({ utility.getrgb(default) }, ", "),
  1340.                            PlaceholderText = "R, G, B",
  1341.                            Font = Enum.Font.Code,
  1342.                            Parent = boxholder
  1343.                        })
  1344.  
  1345.                        local grayborder = utility.create("Frame", {
  1346.                            ZIndex = 11,
  1347.                            Size = UDim2.new(1, 2, 1, 2),
  1348.                            Position = UDim2.new(0, -1, 0, -1),
  1349.                            BorderSizePixel = 0,
  1350.                            BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1351.                            Parent = box
  1352.                        })
  1353.  
  1354.                        utility.create("Frame", {
  1355.                            ZIndex = 10,
  1356.                            Size = UDim2.new(1, 2, 1, 2),
  1357.                            Position = UDim2.new(0, -1, 0, -1),
  1358.                            BorderSizePixel = 0,
  1359.                            BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1360.                            Parent = grayborder
  1361.                        })
  1362.  
  1363.                        local bg = utility.create("Frame", {
  1364.                            ZIndex = 12,
  1365.                            Size = UDim2.new(1, 0, 1, 0),
  1366.                            BorderColor3 = Color3.fromRGB(40, 40, 40),
  1367.                            BorderSizePixel = 0,
  1368.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1369.                            Parent = box
  1370.                        })
  1371.  
  1372.                        utility.create("UIGradient", {
  1373.                            Rotation = 90,
  1374.                            Color = utility.gradient { Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25) },
  1375.                            Parent = bg
  1376.                        })
  1377.  
  1378.                        local rainbowtoggleholder = utility.create("TextButton", {
  1379.                            Size = UDim2.new(1, -8, 0, 14),
  1380.                            BackgroundTransparency = 1,
  1381.                            Position = UDim2.new(0, 4, 0, 130),
  1382.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1383.                            FontSize = Enum.FontSize.Size14,
  1384.                            TextSize = 14,
  1385.                            TextColor3 = Color3.fromRGB(0, 0, 0),
  1386.                            Font = Enum.Font.SourceSans,
  1387.                            Parent = colorpickerframe
  1388.                        })
  1389.  
  1390.                        local toggleicon = utility.create("Frame", {
  1391.                            ZIndex = 12,
  1392.                            Size = UDim2.new(0, 10, 0, 10),
  1393.                            BorderColor3 = Color3.fromRGB(40, 40, 40),
  1394.                            Position = UDim2.new(0, 2, 0, 2),
  1395.                            BorderSizePixel = 0,
  1396.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1397.                            Parent = rainbowtoggleholder
  1398.                        })
  1399.  
  1400.                        local enablediconholder = utility.create("Frame", {
  1401.                            ZIndex = 13,
  1402.                            Size = UDim2.new(1, 0, 1, 0),
  1403.                            BackgroundTransparency = 1,
  1404.                            BorderSizePixel = 0,
  1405.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1406.                            Parent = toggleicon
  1407.                        })
  1408.  
  1409.                        local enabledicongradient = utility.create("UIGradient", {
  1410.                            Rotation = 90,
  1411.                            Color = utility.gradient { library.accent, Color3.fromRGB(25, 25, 25) },
  1412.                            Parent = enablediconholder
  1413.                        })
  1414.  
  1415.                        accentobjects.gradient[enabledicongradient] = function(color)
  1416.                            return utility.gradient { color, Color3.fromRGB(25, 25, 25) }
  1417.                        end
  1418.  
  1419.                        local grayborder = utility.create("Frame", {
  1420.                            ZIndex = 11,
  1421.                            Size = UDim2.new(1, 2, 1, 2),
  1422.                            Position = UDim2.new(0, -1, 0, -1),
  1423.                            BorderSizePixel = 0,
  1424.                            BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1425.                            Parent = toggleicon
  1426.                        })
  1427.  
  1428.                        utility.create("Frame", {
  1429.                            ZIndex = 10,
  1430.                            Size = UDim2.new(1, 2, 1, 2),
  1431.                            Position = UDim2.new(0, -1, 0, -1),
  1432.                            BorderSizePixel = 0,
  1433.                            BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1434.                            Parent = grayborder
  1435.                        })
  1436.  
  1437.                        utility.create("UIGradient", {
  1438.                            Rotation = 90,
  1439.                            Color = utility.gradient { Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25) },
  1440.                            Parent = toggleicon
  1441.                        })
  1442.  
  1443.                        local rainbowtxt = utility.create("TextLabel", {
  1444.                            ZIndex = 10,
  1445.                            Size = UDim2.new(0, 0, 1, 0),
  1446.                            BackgroundTransparency = 1,
  1447.                            Position = UDim2.new(0, 20, 0, 0),
  1448.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1449.                            FontSize = Enum.FontSize.Size14,
  1450.                            TextStrokeTransparency = 0,
  1451.                            TextSize = 13,
  1452.                            TextColor3 = Color3.fromRGB(180, 180, 180),
  1453.                            Text = "Rainbow",
  1454.                            Font = Enum.Font.Code,
  1455.                            TextXAlignment = Enum.TextXAlignment.Left,
  1456.                            Parent = rainbowtoggleholder
  1457.                        })
  1458.  
  1459.                        local colorpicker = utility.create("TextButton", {
  1460.                            Size = UDim2.new(1, 0, 0, 14),
  1461.                            BackgroundTransparency = 1,
  1462.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1463.                            FontSize = Enum.FontSize.Size14,
  1464.                            TextSize = 14,
  1465.                            TextColor3 = Color3.fromRGB(0, 0, 0),
  1466.                            Font = Enum.Font.SourceSans,
  1467.                            Parent = toggleholder
  1468.                        })
  1469.  
  1470.                        local icon = utility.create("TextButton", {
  1471.                            ZIndex = 9,
  1472.                            Size = UDim2.new(0, 18, 0, 10),
  1473.                            BorderColor3 = Color3.fromRGB(40, 40, 40),
  1474.                            Position = UDim2.new(1, -20, 0, 2),
  1475.                            BorderSizePixel = 0,
  1476.                            BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1477.                            Parent = colorpicker,
  1478.                            Text = ""
  1479.                        })
  1480.  
  1481.                        local grayborder = utility.create("Frame", {
  1482.                            ZIndex = 8,
  1483.                            Size = UDim2.new(1, 2, 1, 2),
  1484.                            Position = UDim2.new(0, -1, 0, -1),
  1485.                            BorderSizePixel = 0,
  1486.                            BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1487.                            Parent = icon
  1488.                        })
  1489.  
  1490.                        utility.create("Frame", {
  1491.                            ZIndex = 7,
  1492.                            Size = UDim2.new(1, 2, 1, 2),
  1493.                            Position = UDim2.new(0, -1, 0, -1),
  1494.                            BorderSizePixel = 0,
  1495.                            BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1496.                            Parent = grayborder
  1497.                        })
  1498.  
  1499.                        local icongradient = utility.create("UIGradient", {
  1500.                            Rotation = 90,
  1501.                            Color = utility.gradient { default, utility.changecolor(default, -200) },
  1502.                            Parent = icon
  1503.                        })
  1504.  
  1505.                        if #sectioncontent:GetChildren() - 1 <= max then
  1506.                            sectionholder.Size = UDim2.new(1, -1, 0, sectionlist.AbsoluteContentSize.Y + 28)
  1507.                        end
  1508.  
  1509.                        local colorpickertypes = utility.table()
  1510.  
  1511.                        local opened = false
  1512.                        local opening = false
  1513.  
  1514.                        local function opencolorpicker()
  1515.                            if not opening then
  1516.                                opening = true
  1517.  
  1518.                                opened = not opened
  1519.  
  1520.                                if opened then
  1521.                                    utility.tween(toggleholder, { 0.2 }, { Size = UDim2.new(1, -5, 0, 168) })
  1522.                                end
  1523.  
  1524.                                local tween = utility.makevisible(colorpickerframe, opened)
  1525.  
  1526.                                tween.Completed:Wait()
  1527.  
  1528.                                if not opened then
  1529.                                    local tween = utility.tween(toggleholder, { 0.2 }, { Size = UDim2.new(1, -5, 0, 16) })
  1530.                                    tween.Completed:Wait()
  1531.                                end
  1532.  
  1533.                                opening = false
  1534.                            end
  1535.                        end
  1536.  
  1537.                        icon.MouseButton1Click:Connect(opencolorpicker)
  1538.  
  1539.                        local hue, sat, val = default:ToHSV()
  1540.  
  1541.                        local slidinghue = false
  1542.                        local slidingsaturation = false
  1543.  
  1544.                        local hsv = Color3.fromHSV(hue, sat, val)
  1545.  
  1546.                        if flag then
  1547.                            library.flags[flag] = default
  1548.                        end
  1549.  
  1550.                        local function updatehue(input)
  1551.                            local sizeY = 1 - math.clamp((input.Position.Y - hueframe.AbsolutePosition.Y) / hueframe.AbsoluteSize.Y, 0, 1)
  1552.                            local posY = math.clamp(((input.Position.Y - hueframe.AbsolutePosition.Y) / hueframe.AbsoluteSize.Y) * hueframe.AbsoluteSize.Y, 0, hueframe.AbsoluteSize.Y - 2)
  1553.                            huepicker.Position = UDim2.new(0, 0, 0, posY)
  1554.  
  1555.                            hue = sizeY
  1556.                            hsv = Color3.fromHSV(sizeY, sat, val)
  1557.  
  1558.                            box.Text = math.clamp(math.floor((hsv.R * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.B * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.G * 255) + 0.5), 0, 255)
  1559.  
  1560.                            saturationframe.BackgroundColor3 = hsv
  1561.                            icon.BackgroundColor3 = hsv
  1562.  
  1563.                            if flag then
  1564.                                library.flags[flag] = Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255)
  1565.                            end
  1566.  
  1567.                            callback(Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255))
  1568.                        end
  1569.  
  1570.                        hueframe.InputBegan:Connect(function(input)
  1571.                            if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1572.                                slidinghue = true
  1573.                                updatehue(input)
  1574.                            end
  1575.                        end)
  1576.  
  1577.                        hueframe.InputEnded:Connect(function(input)
  1578.                            if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1579.                                slidinghue = false
  1580.                            end
  1581.                        end)
  1582.  
  1583.                        services.InputService.InputChanged:Connect(function(input)
  1584.                            if input.UserInputType == Enum.UserInputType.MouseMovement then
  1585.                                if slidinghue then
  1586.                                    updatehue(input)
  1587.                                end
  1588.                            end
  1589.                        end)
  1590.  
  1591.                        local function updatesatval(input)
  1592.                            local sizeX = math.clamp((input.Position.X - saturationframe.AbsolutePosition.X) / saturationframe.AbsoluteSize.X, 0, 1)
  1593.                            local sizeY = 1 - math.clamp((input.Position.Y - saturationframe.AbsolutePosition.Y) / saturationframe.AbsoluteSize.Y, 0, 1)
  1594.                            local posY = math.clamp(((input.Position.Y - saturationframe.AbsolutePosition.Y) / saturationframe.AbsoluteSize.Y) * saturationframe.AbsoluteSize.Y, 0, saturationframe.AbsoluteSize.Y - 4)
  1595.                            local posX = math.clamp(((input.Position.X - saturationframe.AbsolutePosition.X) / saturationframe.AbsoluteSize.X) * saturationframe.AbsoluteSize.X, 0, saturationframe.AbsoluteSize.X - 4)
  1596.  
  1597.                            saturationpicker.Position = UDim2.new(0, posX, 0, posY)
  1598.  
  1599.                            sat = sizeX
  1600.                            val = sizeY
  1601.                            hsv = Color3.fromHSV(hue, sizeX, sizeY)
  1602.  
  1603.                            box.Text = math.clamp(math.floor((hsv.R * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.B * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.G * 255) + 0.5), 0, 255)
  1604.  
  1605.                            saturationframe.BackgroundColor3 = hsv
  1606.                            icon.BackgroundColor3 = hsv
  1607.  
  1608.                            if flag then
  1609.                                library.flags[flag] = Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255)
  1610.                            end
  1611.  
  1612.                            callback(Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255))
  1613.                        end
  1614.  
  1615.                        saturationframe.InputBegan:Connect(function(input)
  1616.                            if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1617.                                slidingsaturation = true
  1618.                                updatesatval(input)
  1619.                            end
  1620.                        end)
  1621.  
  1622.                        saturationframe.InputEnded:Connect(function(input)
  1623.                            if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1624.                                slidingsaturation = false
  1625.                            end
  1626.                        end)
  1627.  
  1628.                        services.InputService.InputChanged:Connect(function(input)
  1629.                            if input.UserInputType == Enum.UserInputType.MouseMovement then
  1630.                                if slidingsaturation then
  1631.                                    updatesatval(input)
  1632.                                end
  1633.                            end
  1634.                        end)
  1635.  
  1636.                        local function set(color)
  1637.                            if type(color) == "table" then
  1638.                                color = Color3.fromRGB(unpack(color))
  1639.                            end
  1640.  
  1641.                            hue, sat, val = color:ToHSV()
  1642.                            hsv = Color3.fromHSV(hue, sat, val)
  1643.  
  1644.                            saturationframe.BackgroundColor3 = hsv
  1645.                            icon.BackgroundColor3 = hsv
  1646.                            saturationpicker.Position = UDim2.new(0, (math.clamp(sat * saturationframe.AbsoluteSize.X, 0, saturationframe.AbsoluteSize.X - 4)), 0, (math.clamp((1 - val) * saturationframe.AbsoluteSize.Y, 0, saturationframe.AbsoluteSize.Y - 4)))
  1647.                            huepicker.Position = UDim2.new(0, 0, 0, math.clamp((1 - hue) * saturationframe.AbsoluteSize.Y, 0, saturationframe.AbsoluteSize.Y - 4))
  1648.  
  1649.                            box.Text = math.clamp(math.floor((hsv.R * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.B * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.G * 255) + 0.5), 0, 255)
  1650.  
  1651.                            if flag then
  1652.                                library.flags[flag] = Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255)
  1653.                            end
  1654.  
  1655.                            callback(Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255))
  1656.                        end
  1657.  
  1658.                        local toggled = false
  1659.  
  1660.                        local function toggle()
  1661.                            if not switchingtabs then
  1662.                                toggled = not toggled
  1663.  
  1664.                                if toggled then
  1665.                                    task.spawn(function()
  1666.                                        while toggled do
  1667.                                            for i = 0, 1, 0.0015 do
  1668.                                                if not toggled then
  1669.                                                    return
  1670.                                                end
  1671.  
  1672.                                                local color = Color3.fromHSV(i, 1, 1)
  1673.                                                set(color)
  1674.  
  1675.                                                task.wait()
  1676.                                            end
  1677.                                        end
  1678.                                    end)
  1679.                                end
  1680.  
  1681.                                local enabledtransparency = toggled and 0 or 1
  1682.                                utility.tween(enablediconholder, { 0.2 }, { BackgroundTransparency = enabledtransparency })
  1683.  
  1684.                                local textcolor = toggled and library.accent or Color3.fromRGB(180, 180, 180)
  1685.                                utility.tween(rainbowtxt, { 0.2 }, { TextColor3 = textcolor })
  1686.  
  1687.                                if toggled then
  1688.                                    table.insert(accentobjects.text, title)
  1689.                                elseif table.find(accentobjects.text, title) then
  1690.                                    table.remove(accentobjects.text, table.find(accentobjects.text, title))
  1691.                                end
  1692.                            end
  1693.                        end
  1694.  
  1695.                        rainbowtoggleholder.MouseButton1Click:Connect(toggle)
  1696.  
  1697.                        box.FocusLost:Connect(function()
  1698.                            local _, amount = box.Text:gsub(", ", "")
  1699.  
  1700.                            if amount == 2 then
  1701.                                local values = box.Text:split(", ")
  1702.                                local r, g, b = math.clamp(values[1], 0, 255), math.clamp(values[2], 0, 255), math.clamp(values[3], 0, 255)
  1703.                                set(Color3.fromRGB(r, g, b))
  1704.                            else
  1705.                                rgb.Text = math.floor((hsv.r * 255) + 0.5) .. ", " .. math.floor((hsv.g * 255) + 0.5) .. ", " .. math.floor((hsv.b * 255) + 0.5)
  1706.                            end
  1707.                        end)
  1708.  
  1709.                        if default then
  1710.                            set(default)
  1711.                        end
  1712.  
  1713.                        if flag then
  1714.                            flags[flag] = set
  1715.                        end
  1716.  
  1717.                        local colorpickertypes = utility.table()
  1718.  
  1719.                        function colorpickertypes:Set(color)
  1720.                            set(color)
  1721.                        end
  1722.                    end
  1723.  
  1724.                    if #sectioncontent:GetChildren() - 1 <= max then
  1725.                        sectionholder.Size = UDim2.new(1, -1, 0, sectionlist.AbsoluteContentSize.Y + 28)
  1726.                    end
  1727.  
  1728.                    return toggletypes
  1729.                end
  1730.  
  1731.                function sectiontypes:Box(options)
  1732.                    options = utility.table(options)
  1733.                    local name = options.name
  1734.                    local placeholder = options.placeholder or ""
  1735.                    local default = options.default
  1736.                    local boxtype = options.type or "string"
  1737.                    local flag = options.pointer
  1738.                    local callback = options.callback or function() end
  1739.  
  1740.                    local boxholder = utility.create("Frame", {
  1741.                        Size = UDim2.new(1, -5, 0, 32),
  1742.                        ClipsDescendants = true,
  1743.                        BorderColor3 = Color3.fromRGB(27, 42, 53),
  1744.                        BackgroundTransparency = 1,
  1745.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1746.                        Parent = sectioncontent
  1747.                    })
  1748.  
  1749.                    utility.create("TextLabel", {
  1750.                        ZIndex = 7,
  1751.                        Size = UDim2.new(0, 0, 0, 13),
  1752.                        BackgroundTransparency = 1,
  1753.                        Position = UDim2.new(0, 1, 0, 0),
  1754.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1755.                        FontSize = Enum.FontSize.Size14,
  1756.                        TextStrokeTransparency = 0,
  1757.                        TextSize = 13,
  1758.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  1759.                        Text = name,
  1760.                        Font = Enum.Font.Code,
  1761.                        TextXAlignment = Enum.TextXAlignment.Left,
  1762.                        Parent = boxholder
  1763.                    })
  1764.  
  1765.                    local box = utility.create("TextBox", {
  1766.                        ZIndex = 10,
  1767.                        Size = UDim2.new(1, -4, 0, 13),
  1768.                        BackgroundTransparency = 1,
  1769.                        Position = UDim2.new(0, 2, 0, 17),
  1770.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1771.                        FontSize = Enum.FontSize.Size14,
  1772.                        TextStrokeTransparency = 0,
  1773.                        PlaceholderColor3 = Color3.fromRGB(120, 120, 120),
  1774.                        TextSize = 13,
  1775.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  1776.                        Text = "",
  1777.                        PlaceholderText = placeholder,
  1778.                        Font = Enum.Font.Code,
  1779.                        Parent = boxholder
  1780.                    })
  1781.  
  1782.                    local bg = utility.create("Frame", {
  1783.                        ZIndex = 9,
  1784.                        Size = UDim2.new(1, 0, 1, 0),
  1785.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  1786.                        BorderSizePixel = 0,
  1787.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1788.                        Parent = box
  1789.                    })
  1790.  
  1791.                    local bggradient = utility.create("UIGradient", {
  1792.                        Rotation = 90,
  1793.                        Color = ColorSequence.new(Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25)),
  1794.                        Parent = bg
  1795.                    })
  1796.  
  1797.                    local grayborder = utility.create("Frame", {
  1798.                        ZIndex = 8,
  1799.                        Size = UDim2.new(1, 2, 1, 2),
  1800.                        Position = UDim2.new(0, -1, 0, -1),
  1801.                        BorderSizePixel = 0,
  1802.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1803.                        Parent = box
  1804.                    })
  1805.  
  1806.                    local blackborder = utility.create("Frame", {
  1807.                        ZIndex = 7,
  1808.                        Size = UDim2.new(1, 2, 1, 2),
  1809.                        Position = UDim2.new(0, -1, 0, -1),
  1810.                        BorderSizePixel = 0,
  1811.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1812.                        Parent = grayborder
  1813.                    })
  1814.  
  1815.                    if #sectioncontent:GetChildren() - 1 <= max then
  1816.                        sectionholder.Size = UDim2.new(1, -1, 0, sectionlist.AbsoluteContentSize.Y + 28)
  1817.                    end
  1818.  
  1819.                    if flag then
  1820.                        library.flags[flag] = default or ""
  1821.                    end
  1822.  
  1823.                    local function set(str)
  1824.                        if boxtype:lower() == "number" then
  1825.                            str = str:gsub("%D+", "")
  1826.                        end
  1827.  
  1828.                        box.Text = str
  1829.  
  1830.                        if flag then
  1831.                            library.flags[flag] = str
  1832.                        end
  1833.  
  1834.                        callback(str)
  1835.                    end
  1836.  
  1837.                    if default then
  1838.                        set(default)
  1839.                    end
  1840.  
  1841.                    if boxtype:lower() == "number" then
  1842.                        box:GetPropertyChangedSignal("Text"):Connect(function()
  1843.                            box.Text = box.Text:gsub("%D+", "")
  1844.                        end)
  1845.                    end
  1846.  
  1847.                    box.FocusLost:Connect(function()
  1848.                        set(box.Text)
  1849.                    end)
  1850.  
  1851.                    if flag then
  1852.                        flags[flag] = set
  1853.                    end
  1854.  
  1855.                    local boxtypes = utility.table()
  1856.  
  1857.                    function boxtypes:Set(str)
  1858.                        set(str)
  1859.                    end
  1860.  
  1861.                    return boxtypes
  1862.                end
  1863.  
  1864.                function sectiontypes:Slider(options)
  1865.                    options = utility.table(options)
  1866.                    local name = options.name
  1867.                    local min = options.minimum or 0
  1868.                    local slidermax = options.maximum or 100
  1869.                    local valuetext = options.value or "[value]/" .. slidermax
  1870.                    local increment = options.decimals or 0.5
  1871.                    local default = options.default and math.clamp(options.default, min, slidermax) or min
  1872.                    local flag = options.pointer
  1873.                    local callback = options.callback or function() end
  1874.  
  1875.                    local sliderholder = utility.create("Frame", {
  1876.                        Size = UDim2.new(1, -5, 0, 28),
  1877.                        BackgroundTransparency = 1,
  1878.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1879.                        Parent = sectioncontent
  1880.                    })
  1881.  
  1882.                    local slider = utility.create("Frame", {
  1883.                        ZIndex = 10,
  1884.                        Size = UDim2.new(1, -4, 0, 9),
  1885.                        BackgroundTransparency = 1,
  1886.                        Position = UDim2.new(0, 2, 1, -11),
  1887.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1888.                        Parent = sliderholder
  1889.                    })
  1890.  
  1891.                    local grayborder = utility.create("Frame", {
  1892.                        ZIndex = 8,
  1893.                        Size = UDim2.new(1, 2, 1, 2),
  1894.                        Position = UDim2.new(0, -1, 0, -1),
  1895.                        BorderSizePixel = 0,
  1896.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1897.                        Parent = slider
  1898.                    })
  1899.  
  1900.                    utility.create("Frame", {
  1901.                        ZIndex = 7,
  1902.                        Size = UDim2.new(1, 2, 1, 2),
  1903.                        Position = UDim2.new(0, -1, 0, -1),
  1904.                        BorderSizePixel = 0,
  1905.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  1906.                        Parent = grayborder
  1907.                    })
  1908.  
  1909.                    local bg = utility.create("Frame", {
  1910.                        ZIndex = 9,
  1911.                        Size = UDim2.new(1, 0, 1, 0),
  1912.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  1913.                        BorderSizePixel = 0,
  1914.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1915.                        Parent = slider
  1916.                    })
  1917.  
  1918.                    utility.create("UIGradient", {
  1919.                        Rotation = 90,
  1920.                        Color = ColorSequence.new(Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25)),
  1921.                        Parent = bg
  1922.                    })
  1923.  
  1924.                    local fill = utility.create("Frame", {
  1925.                        ZIndex = 11,
  1926.                        Size = UDim2.new((default - min) / (slidermax - min), 0, 1, 0),
  1927.                        BorderSizePixel = 0,
  1928.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1929.                        Parent = slider
  1930.                    })
  1931.  
  1932.                    local fillgradient = utility.create("UIGradient", {
  1933.                        Rotation = 90,
  1934.                        Color = utility.gradient { library.accent, Color3.fromRGB(25, 25, 25) },
  1935.                        Parent = fill
  1936.                    })
  1937.  
  1938.                    accentobjects.gradient[fillgradient] = function(color)
  1939.                        return utility.gradient { color, Color3.fromRGB(25, 25, 25) }
  1940.                    end
  1941.  
  1942.                    local valuelabel = utility.create("TextLabel", {
  1943.                        ZIndex = 12,
  1944.                        Size = UDim2.new(1, 0, 1, 0),
  1945.                        BackgroundTransparency = 1,
  1946.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1947.                        FontSize = Enum.FontSize.Size14,
  1948.                        TextStrokeTransparency = 0,
  1949.                        TextSize = 13,
  1950.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  1951.                        Text = valuetext:gsub("%[value%]", tostring(default)),
  1952.                        Font = Enum.Font.Code,
  1953.                        Parent = slider
  1954.                    })
  1955.  
  1956.                    utility.create("TextLabel", {
  1957.                        ZIndex = 7,
  1958.                        Size = UDim2.new(0, 0, 0, 13),
  1959.                        BackgroundTransparency = 1,
  1960.                        Position = UDim2.new(0, 1, 0, 0),
  1961.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1962.                        FontSize = Enum.FontSize.Size14,
  1963.                        TextStrokeTransparency = 0,
  1964.                        TextSize = 13,
  1965.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  1966.                        Text = name,
  1967.                        Font = Enum.Font.Code,
  1968.                        TextXAlignment = Enum.TextXAlignment.Left,
  1969.                        Parent = sliderholder
  1970.                    })
  1971.  
  1972.                    if #sectioncontent:GetChildren() - 1 <= max then
  1973.                        sectionholder.Size = UDim2.new(1, -1, 0, sectionlist.AbsoluteContentSize.Y + 28)
  1974.                    end
  1975.  
  1976.                    local sliding = false
  1977.  
  1978.                    local function slide(input)
  1979.                        local sizeX = math.clamp((input.Position.X - slider.AbsolutePosition.X) / slider.AbsoluteSize.X, 0, 1)
  1980.                        local newincrement = (slidermax / ((slidermax - min) / (increment * 4)))
  1981.                        local newsizeX = math.floor(sizeX * (((slidermax - min) / newincrement) * 4)) / (((slidermax - min) / newincrement) * 4)
  1982.  
  1983.                        utility.tween(fill, { newincrement / 80 }, { Size = UDim2.new(newsizeX, 0, 1, 0) })
  1984.  
  1985.                        local value = math.floor((newsizeX * (slidermax - min) + min) * 20) / 20
  1986.                        valuelabel.Text = valuetext:gsub("%[value%]", tostring(value))
  1987.  
  1988.                        if flag then
  1989.                            library.flags[flag] = value
  1990.                        end
  1991.  
  1992.                        callback(value)
  1993.                    end
  1994.  
  1995.                    slider.InputBegan:Connect(function(input)
  1996.                        if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1997.                            sliding = true
  1998.                            slide(input)
  1999.                        end
  2000.                    end)
  2001.  
  2002.                    slider.InputEnded:Connect(function(input)
  2003.                        if input.UserInputType == Enum.UserInputType.MouseButton1 then
  2004.                            sliding = false
  2005.                        end
  2006.                    end)
  2007.  
  2008.                    services.InputService.InputChanged:Connect(function(input)
  2009.                        if input.UserInputType == Enum.UserInputType.MouseMovement then
  2010.                            if sliding then
  2011.                                slide(input)
  2012.                            end
  2013.                        end
  2014.                    end)
  2015.  
  2016.                    local function set(value)
  2017.                        value = math.clamp(value, min, slidermax)
  2018.  
  2019.                        local sizeX = ((value - min)) / (slidermax - min)
  2020.                        local newincrement = (slidermax / ((slidermax - min) / (increment * 4)))
  2021.  
  2022.                        local newsizeX = math.floor(sizeX * (((slidermax - min) / newincrement) * 4)) / (((slidermax - min) / newincrement) * 4)
  2023.                        value = math.floor((newsizeX * (slidermax - min) + min) * 20) / 20
  2024.  
  2025.                        fill.Size = UDim2.new(newsizeX, 0, 1, 0)
  2026.                        valuelabel.Text = valuetext:gsub("%[value%]", tostring(value))
  2027.  
  2028.                        if flag then
  2029.                            library.flags[flag] = value
  2030.                        end
  2031.  
  2032.                        callback(value)
  2033.                    end
  2034.  
  2035.                    if default then
  2036.                        set(default)
  2037.                    end
  2038.  
  2039.                    if flag then
  2040.                        flags[flag] = set
  2041.                    end
  2042.  
  2043.                    local slidertypes = utility.table()
  2044.  
  2045.                    function slidertypes:Set(value)
  2046.                        set(value)
  2047.                    end
  2048.  
  2049.                    return slidertypes
  2050.                end
  2051.  
  2052.                function sectiontypes:Dropdown(options)
  2053.                    options = utility.table(options)
  2054.                    local name = options.name
  2055.                    local content = options["options"]
  2056.                    local maxoptions = options.maximum and (options.maximum > 1 and options.maximum)
  2057.                    local default = options.default or maxoptions and {}
  2058.                    local flag = options.pointer
  2059.                    local callback = options.callback or function() end
  2060.  
  2061.                    if maxoptions then
  2062.                        for i, def in next, default do
  2063.                            if not table.find(content, def) then
  2064.                                table.remove(default, i)
  2065.                            end
  2066.                        end
  2067.                    else
  2068.                        if not table.find(content, default) then
  2069.                            default = nil
  2070.                        end
  2071.                    end
  2072.  
  2073.                    local defaulttext = default and ((type(default) == "table" and table.concat(default, ", ")) or default)
  2074.  
  2075.                    local opened = false
  2076.  
  2077.                    local dropdownholder = utility.create("Frame", {
  2078.                        Size = UDim2.new(1, -5, 0, 32),
  2079.                        BackgroundTransparency = 1,
  2080.                        Position = UDim2.new(0, 0, 0, 0),
  2081.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2082.                        Parent = sectioncontent
  2083.                    })
  2084.  
  2085.                    local dropdown = utility.create("TextButton", {
  2086.                        ZIndex = 10,
  2087.                        Size = UDim2.new(1, -4, 0, 13),
  2088.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  2089.                        BackgroundTransparency = 1,
  2090.                        Position = UDim2.new(0, 2, 0, 17),
  2091.                        BackgroundColor3 = Color3.fromRGB(25, 25, 25),
  2092.                        AutoButtonColor = false,
  2093.                        FontSize = Enum.FontSize.Size14,
  2094.                        TextStrokeTransparency = 0,
  2095.                        TextSize = 13,
  2096.                        TextColor3 = default and (defaulttext ~= "" and Color3.fromRGB(210, 210, 210) or Color3.fromRGB(120, 120, 120)) or Color3.fromRGB(120, 120, 120),
  2097.                        Text = default and (defaulttext ~= "" and defaulttext or "NONE") or "NONE",
  2098.                        Font = Enum.Font.Code,
  2099.                        TextXAlignment = Enum.TextXAlignment.Left,
  2100.                        Parent = dropdownholder
  2101.                    })
  2102.  
  2103.                    local bg = utility.create("Frame", {
  2104.                        ZIndex = 9,
  2105.                        Size = UDim2.new(1, 6, 1, 0),
  2106.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  2107.                        Position = UDim2.new(0, -6, 0, 0),
  2108.                        BorderSizePixel = 0,
  2109.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2110.                        Parent = dropdown
  2111.                    })
  2112.  
  2113.                    local bggradient = utility.create("UIGradient", {
  2114.                        Rotation = 90,
  2115.                        Color = ColorSequence.new(Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25)),
  2116.                        Parent = bg
  2117.                    })
  2118.  
  2119.                    local textpadding = utility.create("UIPadding", {
  2120.                        PaddingLeft = UDim.new(0, 6),
  2121.                        Parent = dropdown
  2122.                    })
  2123.  
  2124.                    local grayborder = utility.create("Frame", {
  2125.                        ZIndex = 8,
  2126.                        Size = UDim2.new(1, 8, 1, 2),
  2127.                        Position = UDim2.new(0, -7, 0, -1),
  2128.                        BorderSizePixel = 0,
  2129.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  2130.                        Parent = dropdown
  2131.                    })
  2132.  
  2133.                    utility.create("Frame", {
  2134.                        ZIndex = 7,
  2135.                        Size = UDim2.new(1, 2, 1, 2),
  2136.                        Position = UDim2.new(0, -1, 0, -1),
  2137.                        BorderSizePixel = 0,
  2138.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  2139.                        Parent = grayborder
  2140.                    })
  2141.  
  2142.                    local icon = utility.create("TextLabel", {
  2143.                        ZIndex = 11,
  2144.                        Size = UDim2.new(0, 13, 1, 0),
  2145.                        BackgroundTransparency = 1,
  2146.                        Position = UDim2.new(1, -13, 0, 0),
  2147.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2148.                        FontSize = Enum.FontSize.Size12,
  2149.                        TextStrokeTransparency = 0,
  2150.                        TextSize = 12,
  2151.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  2152.                        Text = "+",
  2153.                        Font = Enum.Font.Gotham,
  2154.                        Parent = dropdown
  2155.                    })
  2156.  
  2157.                    utility.create("TextLabel", {
  2158.                        ZIndex = 7,
  2159.                        Size = UDim2.new(0, 0, 0, 13),
  2160.                        BackgroundTransparency = 1,
  2161.                        Position = UDim2.new(0, 1, 0, 0),
  2162.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2163.                        FontSize = Enum.FontSize.Size14,
  2164.                        TextStrokeTransparency = 0,
  2165.                        TextSize = 13,
  2166.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  2167.                        Text = name,
  2168.                        Font = Enum.Font.Code,
  2169.                        TextXAlignment = Enum.TextXAlignment.Left,
  2170.                        Parent = dropdownholder
  2171.                    })
  2172.  
  2173.                    local contentframe = utility.create("Frame", {
  2174.                        ZIndex = 9,
  2175.                        Size = UDim2.new(1, -4, 1, -38),
  2176.                        Position = UDim2.new(0, 2, 0, 36),
  2177.                        BorderSizePixel = 0,
  2178.                        Visible = false,
  2179.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2180.                        Parent = dropdownholder
  2181.                    })
  2182.  
  2183.                    local opened = false
  2184.                    contentframe.DescendantAdded:Connect(function(descendant)
  2185.                        if not opened then
  2186.                            task.wait()
  2187.                            if not descendant.ClassName:find("UI") then
  2188.                                if descendant.ClassName:find("Text") then
  2189.                                    descendant.TextTransparency = descendant.TextTransparency + 1
  2190.                                    descendant.TextStrokeTransparency = descendant.TextStrokeTransparency + 1
  2191.                                end
  2192.  
  2193.                                descendant.BackgroundTransparency = descendant.BackgroundTransparency + 1
  2194.                            end
  2195.                        end
  2196.                    end)
  2197.  
  2198.                    local contentframegradient = utility.create("UIGradient", {
  2199.                        Rotation = 90,
  2200.                        Color = ColorSequence.new(Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25)),
  2201.                        Parent = contentframe
  2202.                    })
  2203.  
  2204.                    local grayborder = utility.create("Frame", {
  2205.                        ZIndex = 8,
  2206.                        Size = UDim2.new(1, 2, 1, 2),
  2207.                        Position = UDim2.new(0, -1, 0, -1),
  2208.                        BorderSizePixel = 0,
  2209.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  2210.                        Parent = contentframe
  2211.                    })
  2212.  
  2213.                    utility.create("Frame", {
  2214.                        ZIndex = 7,
  2215.                        Size = UDim2.new(1, 2, 1, 2),
  2216.                        Position = UDim2.new(0, -1, 0, -1),
  2217.                        BorderSizePixel = 0,
  2218.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  2219.                        Parent = grayborder
  2220.                    })
  2221.  
  2222.                    local dropdowncontent = utility.create("Frame", {
  2223.                        Size = UDim2.new(1, -2, 1, -2),
  2224.                        Position = UDim2.new(0, 1, 0, 1),
  2225.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2226.                        Parent = contentframe
  2227.                    })
  2228.  
  2229.                    local dropdowncontentlist = utility.create("UIListLayout", {
  2230.                        SortOrder = Enum.SortOrder.LayoutOrder,
  2231.                        Padding = UDim.new(0, 2),
  2232.                        Parent = dropdowncontent
  2233.                    })
  2234.  
  2235.                    local option = utility.create("TextButton", {
  2236.                        ZIndex = 12,
  2237.                        Size = UDim2.new(1, 0, 0, 16),
  2238.                        BorderColor3 = Color3.fromRGB(50, 50, 50),
  2239.                        BackgroundTransparency = 1,
  2240.                        Position = UDim2.new(0, 2, 0, 2),
  2241.                        BorderSizePixel = 0,
  2242.                        BackgroundColor3 = Color3.fromRGB(22, 22, 22),
  2243.                        AutoButtonColor = false,
  2244.                        FontSize = Enum.FontSize.Size14,
  2245.                        TextStrokeTransparency = 0,
  2246.                        TextSize = 13,
  2247.                        TextColor3 = Color3.fromRGB(150, 150, 150),
  2248.                        Text = "",
  2249.                        Font = Enum.Font.Code,
  2250.                        TextXAlignment = Enum.TextXAlignment.Left
  2251.                    })
  2252.  
  2253.                    utility.create("UIPadding", {
  2254.                        PaddingLeft = UDim.new(0, 10),
  2255.                        Parent = option
  2256.                    })
  2257.  
  2258.                    if #sectioncontent:GetChildren() - 1 <= max then
  2259.                        sectionholder.Size = UDim2.new(1, -1, 0, sectionlist.AbsoluteContentSize.Y + 28)
  2260.                    end
  2261.  
  2262.                    local opening = false
  2263.  
  2264.                    local function opendropdown()
  2265.                        if not opening then
  2266.                            opening = true
  2267.  
  2268.                            opened = not opened
  2269.  
  2270.                            utility.tween(icon, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2271.                                icon.Text = opened and "-" or "+"
  2272.                            end)
  2273.  
  2274.                            if opened then
  2275.                                utility.tween(dropdownholder, { 0.2 }, { Size = UDim2.new(1, -5, 0, dropdowncontentlist.AbsoluteContentSize.Y + 40) })
  2276.                            end
  2277.  
  2278.                            local tween = utility.makevisible(contentframe, opened)
  2279.  
  2280.                            tween.Completed:Wait()
  2281.  
  2282.                            if not opened then
  2283.                                local tween = utility.tween(dropdownholder, { 0.2 }, { Size = UDim2.new(1, -5, 0, 32) })
  2284.                                tween.Completed:Wait()
  2285.                            end
  2286.  
  2287.                            utility.tween(icon, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0 })
  2288.  
  2289.                            opening = false
  2290.                        end
  2291.                    end
  2292.  
  2293.                    dropdown.MouseButton1Click:Connect(opendropdown)
  2294.  
  2295.                    local chosen = maxoptions and {}
  2296.                    local choseninstances = {}
  2297.                    local optioninstances = {}
  2298.  
  2299.                    if flag then
  2300.                        library.flags[flag] = default
  2301.                    end
  2302.  
  2303.                    for _, opt in next, content do
  2304.                        if not maxoptions then
  2305.                            local optionbtn = option:Clone()
  2306.                            optionbtn.Parent = dropdowncontent
  2307.                            optionbtn.Text = opt
  2308.  
  2309.                            optioninstances[opt] = optionbtn
  2310.  
  2311.                            if default == opt then
  2312.                                chosen = opt
  2313.                                optionbtn.BackgroundTransparency = 0
  2314.                                optionbtn.TextColor3 = Color3.fromRGB(210, 210, 210)
  2315.                            end
  2316.  
  2317.                            optionbtn.MouseButton1Click:Connect(function()
  2318.                                if chosen ~= opt then
  2319.                                    for _, optbtn in next, dropdowncontent:GetChildren() do
  2320.                                        if optbtn ~= optionbtn and optbtn:IsA("TextButton") then
  2321.                                            utility.tween(optbtn, { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2322.                                        end
  2323.                                    end
  2324.  
  2325.                                    utility.tween(optionbtn, { 0.2 }, { BackgroundTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2326.  
  2327.                                    local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2328.                                        dropdown.Text = opt
  2329.                                    end)
  2330.  
  2331.                                    chosen = opt
  2332.  
  2333.                                    tween.Completed:Wait()
  2334.  
  2335.                                    utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2336.  
  2337.                                    if flag then
  2338.                                        library.flags[flag] = opt
  2339.                                    end
  2340.  
  2341.                                    callback(opt)
  2342.                                else
  2343.                                    utility.tween(optionbtn, { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2344.  
  2345.                                    local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2346.                                        dropdown.Text = "NONE"
  2347.                                    end)
  2348.  
  2349.                                    tween.Completed:Wait()
  2350.  
  2351.                                    utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2352.                                    chosen = nil
  2353.  
  2354.                                    if flag then
  2355.                                        library.flags[flag] = nil
  2356.                                    end
  2357.  
  2358.                                    callback(nil)
  2359.                                end
  2360.                            end)
  2361.                        else
  2362.                            local optionbtn = option:Clone()
  2363.                            optionbtn.Parent = dropdowncontent
  2364.                            optionbtn.Text = opt
  2365.  
  2366.                            optioninstances[opt] = optionbtn
  2367.  
  2368.                            if table.find(default, opt) then
  2369.                                chosen = opt
  2370.                                optionbtn.BackgroundTransparency = 0
  2371.                                optionbtn.TextColor3 = Color3.fromRGB(210, 210, 210)
  2372.                            end
  2373.  
  2374.                            optionbtn.MouseButton1Click:Connect(function()
  2375.                                if not table.find(chosen, opt) then
  2376.                                    if #chosen >= maxoptions then
  2377.                                        table.remove(chosen, 1)
  2378.                                        utility.tween(choseninstances[1], { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2379.                                        table.remove(choseninstances, 1)
  2380.                                    end
  2381.  
  2382.                                    utility.tween(optionbtn, { 0.2 }, { BackgroundTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2383.  
  2384.                                    table.insert(chosen, opt)
  2385.                                    table.insert(choseninstances, optionbtn)
  2386.  
  2387.                                    local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2388.                                        dropdown.Text = table.concat(chosen, ", ")
  2389.                                    end)
  2390.  
  2391.                                    tween.Completed:Wait()
  2392.  
  2393.                                    utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2394.  
  2395.                                    if flag then
  2396.                                        library.flags[flag] = chosen
  2397.                                    end
  2398.  
  2399.                                    callback(chosen)
  2400.                                else
  2401.                                    utility.tween(optionbtn, { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2402.  
  2403.                                    table.remove(chosen, table.find(chosen, opt))
  2404.                                    table.remove(choseninstances, table.find(choseninstances, optionbtn))
  2405.  
  2406.                                    local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2407.                                        dropdown.Text = table.concat(chosen, ", ") ~= "" and table.concat(chosen, ", ") or "NONE"
  2408.                                    end)
  2409.  
  2410.                                    tween.Completed:Wait()
  2411.  
  2412.                                    utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = table.concat(chosen, ", ") ~= "" and Color3.fromRGB(210, 210, 210) or Color3.fromRGB(150, 150, 150) })
  2413.  
  2414.                                    if flag then
  2415.                                        library.flags[flag] = chosen
  2416.                                    end
  2417.  
  2418.                                    callback(chosen)
  2419.                                end
  2420.                            end)
  2421.                        end
  2422.                    end
  2423.  
  2424.                    local function set(opt)
  2425.                        if not maxoptions then
  2426.                            if optioninstances[opt] then
  2427.                                for _, optbtn in next, dropdowncontent:GetChildren() do
  2428.                                    if optbtn ~= optioninstances[opt] and optbtn:IsA("TextButton") then
  2429.                                        utility.tween(optbtn, { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2430.                                    end
  2431.                                end
  2432.  
  2433.                                utility.tween(optioninstances[opt], { 0.2 }, { BackgroundTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2434.  
  2435.                                local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2436.                                    dropdown.Text = opt
  2437.                                end)
  2438.  
  2439.                                chosen = opt
  2440.  
  2441.                                tween.Completed:Wait()
  2442.  
  2443.                                utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2444.  
  2445.                                if flag then
  2446.                                    library.flags[flag] = opt
  2447.                                end
  2448.  
  2449.                                callback(opt)
  2450.                            else
  2451.                                for _, optbtn in next, dropdowncontent:GetChildren() do
  2452.                                    if optbtn:IsA("TextButton") then
  2453.                                        utility.tween(optbtn, { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2454.                                    end
  2455.                                end
  2456.  
  2457.                                local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2458.                                    dropdown.Text = "NONE"
  2459.                                end)
  2460.  
  2461.                                tween.Completed:Wait()
  2462.  
  2463.                                utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2464.                                chosen = nil
  2465.  
  2466.                                if flag then
  2467.                                    library.flags[flag] = nil
  2468.                                end
  2469.  
  2470.                                callback(nil)
  2471.                            end
  2472.                        else
  2473.                            table.clear(chosen)
  2474.                            table.clear(choseninstances)
  2475.  
  2476.                            if not opt then
  2477.                                local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2478.                                    dropdown.Text = table.concat(chosen, ", ") ~= "" and table.concat(chosen, ", ") or "NONE"
  2479.                                end)
  2480.  
  2481.                                tween.Completed:Wait()
  2482.  
  2483.                                utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = table.concat(chosen, ", ") ~= "" and Color3.fromRGB(210, 210, 210) or Color3.fromRGB(150, 150, 150) })
  2484.  
  2485.                                if flag then
  2486.                                    library.flags[flag] = chosen
  2487.                                end
  2488.  
  2489.                                callback(chosen)
  2490.                            else
  2491.                                for _, opti in next, opt do
  2492.                                    if optioninstances[opti] then
  2493.                                        if #chosen >= maxoptions then
  2494.                                            table.remove(chosen, 1)
  2495.                                            utility.tween(choseninstances[1], { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2496.                                            table.remove(choseninstances, 1)
  2497.                                        end
  2498.  
  2499.                                        utility.tween(optioninstances[opti], { 0.2 }, { BackgroundTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2500.  
  2501.                                        if not table.find(chosen, opti) then
  2502.                                            table.insert(chosen, opti)
  2503.                                        end
  2504.  
  2505.                                        if not table.find(choseninstances, opti) then
  2506.                                            table.insert(choseninstances, optioninstances[opti])
  2507.                                        end
  2508.  
  2509.                                        local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2510.                                            dropdown.Text = table.concat(chosen, ", ")
  2511.                                        end)
  2512.  
  2513.                                        tween.Completed:Wait()
  2514.  
  2515.                                        utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2516.  
  2517.                                        if flag then
  2518.                                            library.flags[flag] = chosen
  2519.                                        end
  2520.  
  2521.                                        callback(chosen)
  2522.                                    end
  2523.                                end
  2524.                            end
  2525.                        end
  2526.                    end
  2527.  
  2528.                    if flag then
  2529.                        flags[flag] = set
  2530.                    end
  2531.  
  2532.                    local dropdowntypes = utility.table()
  2533.  
  2534.                    function dropdowntypes:Set(option)
  2535.                        set(option)
  2536.                    end
  2537.  
  2538.                    function dropdowntypes:Refresh(content)
  2539.                        if maxoptions then
  2540.                            table.clear(chosen)
  2541.                        end
  2542.  
  2543.                        table.clear(choseninstances)
  2544.                        table.clear(optioninstances)
  2545.  
  2546.                        for _, optbtn in next, dropdowncontent:GetChildren() do
  2547.                            if optbtn:IsA("TextButton") then
  2548.                                optbtn:Destroy()
  2549.                            end
  2550.                        end
  2551.  
  2552.                        set()
  2553.  
  2554.                        for _, opt in next, content do
  2555.                            if not maxoptions then
  2556.                                local optionbtn = option:Clone()
  2557.                                optionbtn.Parent = dropdowncontent
  2558.                                optionbtn.BackgroundTransparency = 2
  2559.                                optionbtn.Text = opt
  2560.                                optionbtn.TextTransparency = 1
  2561.                                optionbtn.TextStrokeTransparency = 1
  2562.  
  2563.                                optioninstances[opt] = optionbtn
  2564.  
  2565.                                optionbtn.MouseButton1Click:Connect(function()
  2566.                                    if chosen ~= opt then
  2567.                                        for _, optbtn in next, dropdowncontent:GetChildren() do
  2568.                                            if optbtn ~= optionbtn and optbtn:IsA("TextButton") then
  2569.                                                utility.tween(optbtn, { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2570.                                            end
  2571.                                        end
  2572.  
  2573.                                        utility.tween(optionbtn, { 0.2 }, { BackgroundTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2574.  
  2575.                                        local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2576.                                            dropdown.Text = opt
  2577.                                        end)
  2578.  
  2579.                                        chosen = opt
  2580.  
  2581.                                        tween.Completed:Wait()
  2582.  
  2583.                                        utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2584.  
  2585.                                        if flag then
  2586.                                            library.flags[flag] = opt
  2587.                                        end
  2588.  
  2589.                                        callback(opt)
  2590.                                    else
  2591.                                        utility.tween(optionbtn, { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2592.  
  2593.                                        local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2594.                                            dropdown.Text = "NONE"
  2595.                                        end)
  2596.  
  2597.                                        tween.Completed:Wait()
  2598.  
  2599.                                        utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2600.                                        chosen = nil
  2601.  
  2602.                                        if flag then
  2603.                                            library.flags[flag] = nil
  2604.                                        end
  2605.  
  2606.                                        callback(nil)
  2607.                                    end
  2608.                                end)
  2609.                            else
  2610.                                local optionbtn = option:Clone()
  2611.                                optionbtn.Parent = dropdowncontent
  2612.                                optionbtn.Text = opt
  2613.  
  2614.                                optioninstances[opt] = optionbtn
  2615.  
  2616.                                if table.find(default, opt) then
  2617.                                    chosen = opt
  2618.                                    optionbtn.BackgroundTransparency = 0
  2619.                                    optionbtn.TextColor3 = Color3.fromRGB(210, 210, 210)
  2620.                                end
  2621.  
  2622.                                optionbtn.MouseButton1Click:Connect(function()
  2623.                                    if not table.find(chosen, opt) then
  2624.                                        if #chosen >= maxoptions then
  2625.                                            table.remove(chosen, 1)
  2626.                                            utility.tween(choseninstances[1], { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2627.                                            table.remove(choseninstances, 1)
  2628.                                        end
  2629.  
  2630.                                        utility.tween(optionbtn, { 0.2 }, { BackgroundTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2631.  
  2632.                                        table.insert(chosen, opt)
  2633.                                        table.insert(choseninstances, optionbtn)
  2634.  
  2635.                                        local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2636.                                            dropdown.Text = table.concat(chosen, ", ")
  2637.                                        end)
  2638.  
  2639.                                        tween.Completed:Wait()
  2640.  
  2641.                                        utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = Color3.fromRGB(210, 210, 210) })
  2642.  
  2643.                                        if flag then
  2644.                                            library.flags[flag] = chosen
  2645.                                        end
  2646.  
  2647.                                        callback(chosen)
  2648.                                    else
  2649.                                        utility.tween(optionbtn, { 0.2 }, { BackgroundTransparency = 1, TextColor3 = Color3.fromRGB(150, 150, 150) })
  2650.  
  2651.                                        table.remove(chosen, table.find(chosen, opt))
  2652.                                        table.remove(choseninstances, table.find(choseninstances, optionbtn))
  2653.  
  2654.                                        local tween = utility.tween(dropdown, { 0.2 }, { TextTransparency = 1, TextStrokeTransparency = 1 }, function()
  2655.                                            dropdown.Text = table.concat(chosen, ", ") ~= "" and table.concat(chosen, ", ") or "NONE"
  2656.                                        end)
  2657.  
  2658.                                        tween.Completed:Wait()
  2659.  
  2660.                                        utility.tween(dropdown, { 0.2 }, { TextTransparency = 0, TextStrokeTransparency = 0, TextColor3 = table.concat(chosen, ", ") ~= "" and Color3.fromRGB(210, 210, 210) or Color3.fromRGB(150, 150, 150) })
  2661.  
  2662.                                        if flag then
  2663.                                            library.flags[flag] = chosen
  2664.                                        end
  2665.  
  2666.                                        callback(chosen)
  2667.                                    end
  2668.                                end)
  2669.                            end
  2670.                        end
  2671.                    end
  2672.  
  2673.                    return dropdowntypes
  2674.                end
  2675.  
  2676.                function sectiontypes:Multibox(options)
  2677.                    local newoptions = {}
  2678.                    for i, v in next, options do
  2679.                        newoptions[i:lower()] = v
  2680.                    end
  2681.  
  2682.                    newoptions.maximum = newoptions.maximum or math.huge
  2683.                    return sectiontypes:Dropdown(newoptions)
  2684.                end
  2685.  
  2686.                function sectiontypes:Keybind(options)
  2687.                    options = utility.table(options)
  2688.                    local name = options.name
  2689.                    local keybindtype = options.mode
  2690.                    local default = options.default
  2691.                    local toggledefault = keybindtype and keybindtype:lower() == "toggle" and options.toggledefault
  2692.                    local toggleflag = keybindtype and keybindtype:lower() == "toggle" and options.togglepointer
  2693.                    local togglecallback = keybindtype and keybindtype:lower() == "toggle" and options.togglecallback or function() end
  2694.                    local holdflag = keybindtype and keybindtype:lower() == "hold" and options.holdflag
  2695.                    local holdcallback = keybindtype and keybindtype:lower() == "hold" and options.holdcallback or function() end
  2696.                    local blacklist = options.blacklist or {}
  2697.                    local flag = options.pointer
  2698.                    local callback = options.callback or function() end
  2699.  
  2700.                    table.insert(blacklist, Enum.UserInputType.Focus)
  2701.  
  2702.                    local keybindholder = utility.create("TextButton", {
  2703.                        Size = UDim2.new(1, -5, 0, 14),
  2704.                        BackgroundTransparency = 1,
  2705.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2706.                        FontSize = Enum.FontSize.Size14,
  2707.                        TextSize = 14,
  2708.                        TextColor3 = Color3.fromRGB(0, 0, 0),
  2709.                        Font = Enum.Font.SourceSans,
  2710.                        Parent = sectioncontent
  2711.                    })
  2712.  
  2713.                    local icon, grayborder, enablediconholder
  2714.                    do
  2715.                        if keybindtype and keybindtype:lower() == "toggle" then
  2716.                            icon = utility.create("Frame", {
  2717.                                ZIndex = 9,
  2718.                                Size = UDim2.new(0, 10, 0, 10),
  2719.                                BorderColor3 = Color3.fromRGB(40, 40, 40),
  2720.                                Position = UDim2.new(0, 2, 0, 2),
  2721.                                BorderSizePixel = 0,
  2722.                                BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2723.                                Parent = keybindholder
  2724.                            })
  2725.  
  2726.                            grayborder = utility.create("Frame", {
  2727.                                ZIndex = 8,
  2728.                                Size = UDim2.new(1, 2, 1, 2),
  2729.                                Position = UDim2.new(0, -1, 0, -1),
  2730.                                BorderSizePixel = 0,
  2731.                                BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  2732.                                Parent = icon
  2733.                            })
  2734.  
  2735.                            utility.create("UIGradient", {
  2736.                                Rotation = 90,
  2737.                                Color = ColorSequence.new(Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25)),
  2738.                                Parent = icon
  2739.                            })
  2740.  
  2741.                            utility.create("Frame", {
  2742.                                ZIndex = 7,
  2743.                                Size = UDim2.new(1, 2, 1, 2),
  2744.                                Position = UDim2.new(0, -1, 0, -1),
  2745.                                BorderSizePixel = 0,
  2746.                                BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  2747.                                Parent = grayborder
  2748.                            })
  2749.  
  2750.                            enablediconholder = utility.create("Frame", {
  2751.                                ZIndex = 10,
  2752.                                Size = UDim2.new(1, 0, 1, 0),
  2753.                                BackgroundTransparency = 1,
  2754.                                BorderSizePixel = 0,
  2755.                                BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2756.                                Parent = icon
  2757.                            })
  2758.  
  2759.                            local enabledicongradient = utility.create("UIGradient", {
  2760.                                Rotation = 90,
  2761.                                Color = utility.gradient { library.accent, Color3.fromRGB(25, 25, 25) },
  2762.                                Parent = enablediconholder
  2763.                            })
  2764.  
  2765.                            accentobjects.gradient[enabledicongradient] = function(color)
  2766.                                return utility.gradient { color, Color3.fromRGB(25, 25, 25) }
  2767.                            end
  2768.                        end
  2769.                    end
  2770.  
  2771.                    local title = utility.create("TextLabel", {
  2772.                        ZIndex = 7,
  2773.                        Size = UDim2.new(0, 0, 1, 0),
  2774.                        BackgroundTransparency = 1,
  2775.                        Position = keybindtype and keybindtype:lower() == "toggle" and UDim2.new(0, 20, 0, 0) or UDim2.new(0, 1, 0, 0),
  2776.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2777.                        FontSize = Enum.FontSize.Size14,
  2778.                        TextStrokeTransparency = 0,
  2779.                        TextSize = 13,
  2780.                        TextColor3 = (keybindtype and keybindtype:lower() == "toggle" and Color3.fromRGB(180, 180, 180)) or Color3.fromRGB(210, 210, 210),
  2781.                        Text = name,
  2782.                        Font = Enum.Font.Code,
  2783.                        TextXAlignment = Enum.TextXAlignment.Left,
  2784.                        Parent = keybindholder
  2785.                    })
  2786.  
  2787.                    local keytext = utility.create(keybindtype and keybindtype:lower() == "toggle" and "TextButton" or "TextLabel", {
  2788.                        ZIndex = 7,
  2789.                        Size = keybindtype and keybindtype:lower() == "toggle" and UDim2.new(0, 45, 1, 0) or UDim2.new(0, 0, 1, 0),
  2790.                        BackgroundTransparency = 1,
  2791.                        Position = keybindtype and keybindtype:lower() == "toggle" and UDim2.new(1, -45, 0, 0) or UDim2.new(1, 0, 0, 0),
  2792.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  2793.                        TextColor3 = Color3.fromRGB(150, 150, 150),
  2794.                        Text = "[NONE]",
  2795.                        Font = Enum.Font.Code,
  2796.                        TextXAlignment = Enum.TextXAlignment.Right,
  2797.                        Parent = keybindholder
  2798.                    })
  2799.  
  2800.                    utility.create("UIPadding", {
  2801.                        PaddingBottom = UDim.new(0, 1),
  2802.                        Parent = keytext
  2803.                    })
  2804.  
  2805.                    if #sectioncontent:GetChildren() - 1 <= max then
  2806.                        sectionholder.Size = UDim2.new(1, -1, 0, sectionlist.AbsoluteContentSize.Y + 28)
  2807.                    end
  2808.  
  2809.                    local keys = {
  2810.                        [Enum.KeyCode.LeftShift] = "L-SHIFT",
  2811.                        [Enum.KeyCode.RightShift] = "R-SHIFT",
  2812.                        [Enum.KeyCode.LeftControl] = "L-CTRL",
  2813.                        [Enum.KeyCode.RightControl] = "R-CTRL",
  2814.                        [Enum.KeyCode.LeftAlt] = "L-ALT",
  2815.                        [Enum.KeyCode.RightAlt] = "R-ALT",
  2816.                        [Enum.KeyCode.CapsLock] = "CAPSLOCK",
  2817.                        [Enum.KeyCode.One] = "1",
  2818.                        [Enum.KeyCode.Two] = "2",
  2819.                        [Enum.KeyCode.Three] = "3",
  2820.                        [Enum.KeyCode.Four] = "4",
  2821.                        [Enum.KeyCode.Five] = "5",
  2822.                        [Enum.KeyCode.Six] = "6",
  2823.                        [Enum.KeyCode.Seven] = "7",
  2824.                        [Enum.KeyCode.Eight] = "8",
  2825.                        [Enum.KeyCode.Nine] = "9",
  2826.                        [Enum.KeyCode.Zero] = "0",
  2827.                        [Enum.KeyCode.KeypadOne] = "NUM-1",
  2828.                        [Enum.KeyCode.KeypadTwo] = "NUM-2",
  2829.                        [Enum.KeyCode.KeypadThree] = "NUM-3",
  2830.                        [Enum.KeyCode.KeypadFour] = "NUM-4",
  2831.                        [Enum.KeyCode.KeypadFive] = "NUM-5",
  2832.                        [Enum.KeyCode.KeypadSix] = "NUM-6",
  2833.                        [Enum.KeyCode.KeypadSeven] = "NUM-7",
  2834.                        [Enum.KeyCode.KeypadEight] = "NUM-8",
  2835.                        [Enum.KeyCode.KeypadNine] = "NUM-9",
  2836.                        [Enum.KeyCode.KeypadZero] = "NUM-0",
  2837.                        [Enum.KeyCode.Minus] = "-",
  2838.                        [Enum.KeyCode.Equals] = "=",
  2839.                        [Enum.KeyCode.Tilde] = "~",
  2840.                        [Enum.KeyCode.LeftBracket] = "[",
  2841.                        [Enum.KeyCode.RightBracket] = "]",
  2842.                        [Enum.KeyCode.RightParenthesis] = ")",
  2843.                        [Enum.KeyCode.LeftParenthesis] = "(",
  2844.                        [Enum.KeyCode.Semicolon] = ",",
  2845.                        [Enum.KeyCode.Quote] = "'",
  2846.                        [Enum.KeyCode.BackSlash] = "\\",
  2847.                        [Enum.KeyCode.Comma] = ",",
  2848.                        [Enum.KeyCode.Period] = ".",
  2849.                        [Enum.KeyCode.Slash] = "/",
  2850.                        [Enum.KeyCode.Asterisk] = "*",
  2851.                        [Enum.KeyCode.Plus] = "+",
  2852.                        [Enum.KeyCode.Period] = ".",
  2853.                        [Enum.KeyCode.Backquote] = "`",
  2854.                        [Enum.UserInputType.MouseButton1] = "MOUSE-1",
  2855.                        [Enum.UserInputType.MouseButton2] = "MOUSE-2",
  2856.                        [Enum.UserInputType.MouseButton3] = "MOUSE-3"
  2857.                    }
  2858.  
  2859.                    local keychosen
  2860.                    local isbinding = false
  2861.  
  2862.                    local function startbinding()
  2863.                        isbinding = true
  2864.                        keytext.Text = "[...]"
  2865.                        keytext.TextColor3 = Color3.fromRGB(210, 210, 210)
  2866.  
  2867.                        local binding
  2868.                        binding = services.InputService.InputBegan:Connect(function(input)
  2869.                            local key = keys[input.KeyCode] or keys[input.UserInputType]
  2870.                            keytext.Text = "[" .. (key or tostring(input.KeyCode):gsub("Enum.KeyCode.", "")) .. "]"
  2871.                            keytext.TextColor3 = Color3.fromRGB(180, 180, 180)
  2872.                            keytext.Size = UDim2.new(0, keytext.TextBounds.X, 1, 0)
  2873.                            keytext.Position = UDim2.new(1, -keytext.TextBounds.X, 0, 0)
  2874.  
  2875.                            if input.UserInputType == Enum.UserInputType.Keyboard then
  2876.                                task.wait()
  2877.                                if not table.find(blacklist, input.KeyCode) then
  2878.                                    keychosen = input.KeyCode
  2879.  
  2880.                                    if flag then
  2881.                                        library.flags[flag] = input.KeyCode
  2882.                                    end
  2883.  
  2884.                                    binding:Disconnect()
  2885.                                else
  2886.                                    keychosen = nil
  2887.                                    keytext.TextColor3 = Color3.fromRGB(180, 180, 180)
  2888.                                    keytext.Text = "NONE"
  2889.  
  2890.                                    if flag then
  2891.                                        library.flags[flag] = nil
  2892.                                    end
  2893.  
  2894.                                    binding:Disconnect()
  2895.                                end
  2896.                            else
  2897.                                if not table.find(blacklist, input.UserInputType) then
  2898.                                    keychosen = input.UserInputType
  2899.  
  2900.                                    if flag then
  2901.                                        library.flags[flag] = input.UserInputType
  2902.                                    end
  2903.  
  2904.                                    binding:Disconnect()
  2905.                                else
  2906.                                    keychosen = nil
  2907.                                    keytext.TextColor3 = Color3.fromRGB(180, 180, 180)
  2908.                                    keytext.Text = "[NONE]"
  2909.  
  2910.                                    keytext.Size = UDim2.new(0, keytext.TextBounds.X, 1, 0)
  2911.                                    keytext.Position = UDim2.new(1, -keytext.TextBounds.X, 0, 0)
  2912.  
  2913.                                    if flag then
  2914.                                        library.flags[flag] = nil
  2915.                                    end
  2916.  
  2917.                                    binding:Disconnect()
  2918.                                end
  2919.                            end
  2920.                        end)
  2921.                    end
  2922.  
  2923.                    if not keybindtype or keybindtype:lower() == "hold" then
  2924.                        keybindholder.MouseButton1Click:Connect(startbinding)
  2925.                    else
  2926.                        keytext.MouseButton1Click:Connect(startbinding)
  2927.                    end
  2928.  
  2929.                    local keybindtypes = utility.table()
  2930.  
  2931.                    if keybindtype and keybindtype:lower() == "toggle" then
  2932.                        local toggled = false
  2933.  
  2934.                        if toggleflag then
  2935.                            library.flags[toggleflag] = toggled
  2936.                        end
  2937.  
  2938.                        local function toggle()
  2939.                            if not switchingtabs then
  2940.                                toggled = not toggled
  2941.  
  2942.                                if toggleflag then
  2943.                                    library.flags[toggleflag] = toggled
  2944.                                end
  2945.  
  2946.                                togglecallback(toggled)
  2947.  
  2948.                                local enabledtransparency = toggled and 0 or 1
  2949.                                utility.tween(enablediconholder, { 0.2 }, { Transparency = enabledtransparency })
  2950.  
  2951.                                local textcolor = toggled and library.accent or Color3.fromRGB(180, 180, 180)
  2952.                                utility.tween(title, { 0.2 }, { TextColor3 = textcolor })
  2953.  
  2954.                                if toggled then
  2955.                                    table.insert(accentobjects.text, title)
  2956.                                elseif table.find(accentobjects.text, title) then
  2957.                                    table.remove(accentobjects.text, table.find(accentobjects.text, title))
  2958.                                end
  2959.                            end
  2960.                        end
  2961.  
  2962.                        keybindholder.MouseButton1Click:Connect(toggle)
  2963.  
  2964.                        local function set(bool)
  2965.                            if type(bool) == "boolean" and toggled ~= bool then
  2966.                                toggle()
  2967.                            end
  2968.                        end
  2969.  
  2970.                        function keybindtypes:Toggle(bool)
  2971.                            set(bool)
  2972.                        end
  2973.  
  2974.                        if toggledefault then
  2975.                            set(toggledefault)
  2976.                        end
  2977.  
  2978.                        if toggleflag then
  2979.                            flags[toggleflag] = set
  2980.                        end
  2981.  
  2982.                        services.InputService.InputBegan:Connect(function(input)
  2983.                            if input.UserInputType == Enum.UserInputType.Keyboard then
  2984.                                if input.KeyCode == keychosen then
  2985.                                    toggle()
  2986.                                    callback(keychosen)
  2987.                                end
  2988.                            else
  2989.                                if input.UserInputType == keychosen then
  2990.                                    toggle()
  2991.                                    callback(keychosen)
  2992.                                end
  2993.                            end
  2994.                        end)
  2995.                    end
  2996.  
  2997.                    if keybindtype and keybindtype:lower() == "hold" then
  2998.                        services.InputService.InputBegan:Connect(function(input)
  2999.                            if input.UserInputType == Enum.UserInputType.Keyboard then
  3000.                                if input.KeyCode == keychosen then
  3001.                                    if holdflag then
  3002.                                        library.flags[holdflag] = true
  3003.                                    end
  3004.  
  3005.                                    callback(keychosen)
  3006.                                    holdcallback(true)
  3007.                                end
  3008.                            else
  3009.                                if input.UserInputType == keychosen then
  3010.                                    if holdflag then
  3011.                                        library.flags[holdflag] = true
  3012.                                    end
  3013.  
  3014.                                    callback(keychosen)
  3015.                                    holdcallback(true)
  3016.                                end
  3017.                            end
  3018.                        end)
  3019.  
  3020.                        services.InputService.InputEnded:Connect(function(input)
  3021.                            if input.UserInputType == Enum.UserInputType.Keyboard then
  3022.                                if input.KeyCode == keychosen then
  3023.                                    if holdflag then
  3024.                                        library.flags[holdflag] = true
  3025.                                    end
  3026.  
  3027.                                    holdcallback(false)
  3028.                                end
  3029.                            else
  3030.                                if input.UserInputType == keychosen then
  3031.                                    if holdflag then
  3032.                                        library.flags[holdflag] = true
  3033.                                    end
  3034.  
  3035.                                    holdcallback(false)
  3036.                                end
  3037.                            end
  3038.                        end)
  3039.                    end
  3040.  
  3041.                    if not keybindtype then
  3042.                        services.InputService.InputBegan:Connect(function(input)
  3043.                            if input.UserInputType == Enum.UserInputType.Keyboard then
  3044.                                if input.KeyCode == keychosen then
  3045.                                    callback(keychosen)
  3046.                                end
  3047.                            else
  3048.                                if input.UserInputType == keychosen then
  3049.                                    callback(keychosen)
  3050.                                end
  3051.                            end
  3052.                        end)
  3053.                    end
  3054.  
  3055.                    local function setkey(newkey)
  3056.                        if tostring(newkey):find("Enum.KeyCode.") then
  3057.                            newkey = Enum.KeyCode[tostring(newkey):gsub("Enum.KeyCode.", "")]
  3058.                        else
  3059.                            newkey = Enum.UserInputType[tostring(newkey):gsub("Enum.UserInputType.", "")]
  3060.                        end
  3061.  
  3062.                        if not table.find(blacklist, newkey) then
  3063.                            local key = keys[newkey]
  3064.                            local text = "[" .. (keys[newkey] or tostring(newkey):gsub("Enum.KeyCode.", "")) .. "]"
  3065.                            local sizeX = services.TextService:GetTextSize(text, 8, Enum.Font.Code, Vector2.new(1000, 1000)).X
  3066.  
  3067.                            keytext.Text = text
  3068.                            keytext.Size = UDim2.new(0, sizeX, 1, 0)
  3069.                            keytext.Position = UDim2.new(1, -sizeX, 0, 0)
  3070.  
  3071.                            keytext.TextColor3 = Color3.fromRGB(180, 180, 180)
  3072.  
  3073.                            keychosen = newkey
  3074.  
  3075.                            if flag then
  3076.                                library.flags[flag] = newkey
  3077.                            end
  3078.  
  3079.                            callback(newkey, true)
  3080.                        else
  3081.                            keychosen = nil
  3082.                            keytext.TextColor3 = Color3.fromRGB(180, 180, 180)
  3083.                            keytext.Text = "[NONE]"
  3084.                            keytext.Size = UDim2.new(0, keytext.TextBounds.X, 1, 0)
  3085.                            keytext.Position = UDim2.new(1, -keytext.TextBounds.X, 0, 0)
  3086.  
  3087.                            if flag then
  3088.                                library.flags[flag] = nil
  3089.                            end
  3090.  
  3091.                            callback(newkey, true)
  3092.                        end
  3093.                    end
  3094.  
  3095.                    if default then
  3096.                        task.wait()
  3097.                        setkey(default)
  3098.                    end
  3099.  
  3100.                    if flag then
  3101.                        flags[flag] = setkey
  3102.                    end
  3103.  
  3104.                    function keybindtypes:Set(newkey)
  3105.                        setkey(newkey)
  3106.                    end
  3107.  
  3108.                    return keybindtypes
  3109.                end
  3110.  
  3111.                function sectiontypes:ColorPicker(options)
  3112.                    options = utility.table(options)
  3113.                    local name = options.name
  3114.                    local default = options.default or Color3.fromRGB(255, 255, 255)
  3115.                    local colorpickertype = options.mode
  3116.                    local toggleflag = colorpickertype and colorpickertype:lower() == "toggle" and options.togglepointer
  3117.                    local togglecallback = colorpickertype and colorpickertype:lower() == "toggle" and options.togglecallback or function() end
  3118.                    local flag = options.pointer
  3119.                    local callback = options.callback or function() end
  3120.  
  3121.                    local colorpickerholder = utility.create("Frame", {
  3122.                        Size = UDim2.new(1, -5, 0, 14),
  3123.                        BackgroundTransparency = 1,
  3124.                        Position = UDim2.new(0, 0, 0, 0),
  3125.                        Parent = sectioncontent
  3126.                    })
  3127.  
  3128.                    local enabledcpiconholder
  3129.                    do
  3130.                        if colorpickertype and colorpickertype:lower() == "toggle" then
  3131.                            local togglecpicon = utility.create("Frame", {
  3132.                                ZIndex = 9,
  3133.                                Size = UDim2.new(0, 10, 0, 10),
  3134.                                BorderColor3 = Color3.fromRGB(40, 40, 40),
  3135.                                Position = UDim2.new(0, 2, 0, 2),
  3136.                                BorderSizePixel = 0,
  3137.                                BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3138.                                Parent = colorpickerholder
  3139.                            })
  3140.  
  3141.                            local grayborder = utility.create("Frame", {
  3142.                                ZIndex = 8,
  3143.                                Size = UDim2.new(1, 2, 1, 2),
  3144.                                Position = UDim2.new(0, -1, 0, -1),
  3145.                                BorderSizePixel = 0,
  3146.                                BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  3147.                                Parent = togglecpicon
  3148.                            })
  3149.  
  3150.                            utility.create("UIGradient", {
  3151.                                Rotation = 90,
  3152.                                Color = ColorSequence.new(Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25)),
  3153.                                Parent = togglecpicon
  3154.                            })
  3155.  
  3156.                            utility.create("Frame", {
  3157.                                ZIndex = 7,
  3158.                                Size = UDim2.new(1, 2, 1, 2),
  3159.                                Position = UDim2.new(0, -1, 0, -1),
  3160.                                BorderSizePixel = 0,
  3161.                                BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  3162.                                Parent = grayborder
  3163.                            })
  3164.  
  3165.                            enabledcpiconholder = utility.create("Frame", {
  3166.                                ZIndex = 10,
  3167.                                Size = UDim2.new(1, 0, 1, 0),
  3168.                                BackgroundTransparency = 1,
  3169.                                BorderSizePixel = 0,
  3170.                                BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3171.                                Parent = togglecpicon
  3172.                            })
  3173.  
  3174.                            local enabledicongradient = utility.create("UIGradient", {
  3175.                                Rotation = 90,
  3176.                                Color = utility.gradient { library.accent, Color3.fromRGB(25, 25, 25) },
  3177.                                Parent = enabledcpiconholder
  3178.                            })
  3179.  
  3180.                            accentobjects.gradient[enabledicongradient] = function(color)
  3181.                                return utility.gradient { color, Color3.fromRGB(25, 25, 25) }
  3182.                            end
  3183.                        end
  3184.                    end
  3185.  
  3186.                    local colorpickerframe = utility.create("Frame", {
  3187.                        ZIndex = 9,
  3188.                        Size = UDim2.new(1, -70, 0, 148),
  3189.                        Position = UDim2.new(1, -168, 0, 18),
  3190.                        BorderSizePixel = 0,
  3191.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3192.                        Visible = false,
  3193.                        Parent = colorpickerholder
  3194.                    })
  3195.  
  3196.                    colorpickerframe.DescendantAdded:Connect(function(descendant)
  3197.                        if not opened then
  3198.                            task.wait()
  3199.                            if not descendant.ClassName:find("UI") then
  3200.                                if descendant.ClassName:find("Text") then
  3201.                                    descendant.TextTransparency = descendant.TextTransparency + 1
  3202.                                    descendant.TextStrokeTransparency = descendant.TextStrokeTransparency + 1
  3203.                                end
  3204.  
  3205.                                if descendant.ClassName:find("Image") then
  3206.                                    descendant.ImageTransparency = descendant.ImageTransparency + 1
  3207.                                end
  3208.  
  3209.                                descendant.BackgroundTransparency = descendant.BackgroundTransparency + 1
  3210.                            end
  3211.                        end
  3212.                    end)
  3213.  
  3214.                    local bggradient = utility.create("UIGradient", {
  3215.                        Rotation = 90,
  3216.                        Color = utility.gradient { Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25) },
  3217.                        Parent = colorpickerframe
  3218.                    })
  3219.  
  3220.                    local grayborder = utility.create("Frame", {
  3221.                        ZIndex = 8,
  3222.                        Size = UDim2.new(1, 2, 1, 2),
  3223.                        Position = UDim2.new(0, -1, 0, -1),
  3224.                        BorderSizePixel = 0,
  3225.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  3226.                        Parent = colorpickerframe
  3227.                    })
  3228.  
  3229.                    local blackborder = utility.create("Frame", {
  3230.                        ZIndex = 7,
  3231.                        Size = UDim2.new(1, 2, 1, 2),
  3232.                        Position = UDim2.new(0, -1, 0, -1),
  3233.                        BorderSizePixel = 0,
  3234.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  3235.                        Parent = grayborder
  3236.                    })
  3237.  
  3238.                    local saturationframe = utility.create("ImageLabel", {
  3239.                        ZIndex = 12,
  3240.                        Size = UDim2.new(0, 128, 0, 100),
  3241.                        BorderColor3 = Color3.fromRGB(50, 50, 50),
  3242.                        Position = UDim2.new(0, 6, 0, 6),
  3243.                        BorderSizePixel = 0,
  3244.                        BackgroundColor3 = default,
  3245.                        Image = "http://www.roblox.com/asset/?id=8630797271",
  3246.                        Parent = colorpickerframe
  3247.                    })
  3248.  
  3249.                    local grayborder = utility.create("Frame", {
  3250.                        ZIndex = 11,
  3251.                        Size = UDim2.new(1, 2, 1, 2),
  3252.                        Position = UDim2.new(0, -1, 0, -1),
  3253.                        BorderSizePixel = 0,
  3254.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  3255.                        Parent = saturationframe
  3256.                    })
  3257.  
  3258.                    utility.create("Frame", {
  3259.                        ZIndex = 10,
  3260.                        Size = UDim2.new(1, 2, 1, 2),
  3261.                        Position = UDim2.new(0, -1, 0, -1),
  3262.                        BorderSizePixel = 0,
  3263.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  3264.                        Parent = grayborder
  3265.                    })
  3266.  
  3267.                    local saturationpicker = utility.create("Frame", {
  3268.                        ZIndex = 13,
  3269.                        Size = UDim2.new(0, 2, 0, 2),
  3270.                        BorderColor3 = Color3.fromRGB(10, 10, 10),
  3271.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3272.                        Parent = saturationframe
  3273.                    })
  3274.  
  3275.                    local hueframe = utility.create("ImageLabel", {
  3276.                        ZIndex = 12,
  3277.                        Size = UDim2.new(0, 14, 0, 100),
  3278.                        Position = UDim2.new(1, -20, 0, 6),
  3279.                        BorderSizePixel = 0,
  3280.                        BackgroundColor3 = Color3.fromRGB(255, 193, 49),
  3281.                        ScaleType = Enum.ScaleType.Crop,
  3282.                        Image = "http://www.roblox.com/asset/?id=8630799159",
  3283.                        Parent = colorpickerframe
  3284.                    })
  3285.  
  3286.                    local grayborder = utility.create("Frame", {
  3287.                        ZIndex = 11,
  3288.                        Size = UDim2.new(1, 2, 1, 2),
  3289.                        Position = UDim2.new(0, -1, 0, -1),
  3290.                        BorderSizePixel = 0,
  3291.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  3292.                        Parent = hueframe
  3293.                    })
  3294.  
  3295.                    utility.create("Frame", {
  3296.                        ZIndex = 10,
  3297.                        Size = UDim2.new(1, 2, 1, 2),
  3298.                        Position = UDim2.new(0, -1, 0, -1),
  3299.                        BorderSizePixel = 0,
  3300.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  3301.                        Parent = grayborder
  3302.                    })
  3303.  
  3304.                    local huepicker = utility.create("Frame", {
  3305.                        ZIndex = 13,
  3306.                        Size = UDim2.new(1, 0, 0, 1),
  3307.                        BorderColor3 = Color3.fromRGB(10, 10, 10),
  3308.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3309.                        Parent = hueframe
  3310.                    })
  3311.  
  3312.                    local boxholder = utility.create("Frame", {
  3313.                        Size = UDim2.new(1, -8, 0, 17),
  3314.                        ClipsDescendants = true,
  3315.                        Position = UDim2.new(0, 4, 0, 110),
  3316.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3317.                        Parent = colorpickerframe
  3318.                    })
  3319.  
  3320.                    local box = utility.create("TextBox", {
  3321.                        ZIndex = 13,
  3322.                        Size = UDim2.new(1, -4, 1, -4),
  3323.                        BackgroundTransparency = 1,
  3324.                        Position = UDim2.new(0, 2, 0, 2),
  3325.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3326.                        FontSize = Enum.FontSize.Size14,
  3327.                        TextStrokeTransparency = 0,
  3328.                        TextSize = 13,
  3329.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  3330.                        Text = table.concat({ utility.getrgb(default) }, ", "),
  3331.                        PlaceholderText = "R, G, B",
  3332.                        Font = Enum.Font.Code,
  3333.                        Parent = boxholder
  3334.                    })
  3335.  
  3336.                    local grayborder = utility.create("Frame", {
  3337.                        ZIndex = 11,
  3338.                        Size = UDim2.new(1, 2, 1, 2),
  3339.                        Position = UDim2.new(0, -1, 0, -1),
  3340.                        BorderSizePixel = 0,
  3341.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  3342.                        Parent = box
  3343.                    })
  3344.  
  3345.                    utility.create("Frame", {
  3346.                        ZIndex = 10,
  3347.                        Size = UDim2.new(1, 2, 1, 2),
  3348.                        Position = UDim2.new(0, -1, 0, -1),
  3349.                        BorderSizePixel = 0,
  3350.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  3351.                        Parent = grayborder
  3352.                    })
  3353.  
  3354.                    local bg = utility.create("Frame", {
  3355.                        ZIndex = 12,
  3356.                        Size = UDim2.new(1, 0, 1, 0),
  3357.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  3358.                        BorderSizePixel = 0,
  3359.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3360.                        Parent = box
  3361.                    })
  3362.  
  3363.                    utility.create("UIGradient", {
  3364.                        Rotation = 90,
  3365.                        Color = utility.gradient { Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25) },
  3366.                        Parent = bg
  3367.                    })
  3368.  
  3369.                    local toggleholder = utility.create("TextButton", {
  3370.                        Size = UDim2.new(1, -8, 0, 14),
  3371.                        BackgroundTransparency = 1,
  3372.                        Position = UDim2.new(0, 4, 0, 130),
  3373.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3374.                        FontSize = Enum.FontSize.Size14,
  3375.                        TextSize = 14,
  3376.                        TextColor3 = Color3.fromRGB(0, 0, 0),
  3377.                        Font = Enum.Font.SourceSans,
  3378.                        Parent = colorpickerframe
  3379.                    })
  3380.  
  3381.                    local toggleicon = utility.create("Frame", {
  3382.                        ZIndex = 12,
  3383.                        Size = UDim2.new(0, 10, 0, 10),
  3384.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  3385.                        Position = UDim2.new(0, 2, 0, 2),
  3386.                        BorderSizePixel = 0,
  3387.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3388.                        Parent = toggleholder
  3389.                    })
  3390.  
  3391.                    local enablediconholder = utility.create("Frame", {
  3392.                        ZIndex = 13,
  3393.                        Size = UDim2.new(1, 0, 1, 0),
  3394.                        BackgroundTransparency = 1,
  3395.                        BorderSizePixel = 0,
  3396.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3397.                        Parent = toggleicon
  3398.                    })
  3399.  
  3400.                    local enabledicongradient = utility.create("UIGradient", {
  3401.                        Rotation = 90,
  3402.                        Color = utility.gradient { library.accent, Color3.fromRGB(25, 25, 25) },
  3403.                        Parent = enablediconholder
  3404.                    })
  3405.  
  3406.                    accentobjects.gradient[enabledicongradient] = function(color)
  3407.                        return utility.gradient { color, Color3.fromRGB(25, 25, 25) }
  3408.                    end
  3409.  
  3410.                    local grayborder = utility.create("Frame", {
  3411.                        ZIndex = 11,
  3412.                        Size = UDim2.new(1, 2, 1, 2),
  3413.                        Position = UDim2.new(0, -1, 0, -1),
  3414.                        BorderSizePixel = 0,
  3415.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  3416.                        Parent = toggleicon
  3417.                    })
  3418.  
  3419.                    utility.create("Frame", {
  3420.                        ZIndex = 10,
  3421.                        Size = UDim2.new(1, 2, 1, 2),
  3422.                        Position = UDim2.new(0, -1, 0, -1),
  3423.                        BorderSizePixel = 0,
  3424.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  3425.                        Parent = grayborder
  3426.                    })
  3427.  
  3428.                    utility.create("UIGradient", {
  3429.                        Rotation = 90,
  3430.                        Color = utility.gradient { Color3.fromRGB(35, 35, 35), Color3.fromRGB(25, 25, 25) },
  3431.                        Parent = toggleicon
  3432.                    })
  3433.  
  3434.                    local rainbowtxt = utility.create("TextLabel", {
  3435.                        ZIndex = 10,
  3436.                        Size = UDim2.new(0, 0, 1, 0),
  3437.                        BackgroundTransparency = 1,
  3438.                        Position = UDim2.new(0, 20, 0, 0),
  3439.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3440.                        FontSize = Enum.FontSize.Size14,
  3441.                        TextStrokeTransparency = 0,
  3442.                        TextSize = 13,
  3443.                        TextColor3 = Color3.fromRGB(180, 180, 180),
  3444.                        Text = "Rainbow",
  3445.                        Font = Enum.Font.Code,
  3446.                        TextXAlignment = Enum.TextXAlignment.Left,
  3447.                        Parent = toggleholder
  3448.                    })
  3449.  
  3450.                    local colorpicker = utility.create("TextButton", {
  3451.                        Size = UDim2.new(1, 0, 0, 14),
  3452.                        BackgroundTransparency = 1,
  3453.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3454.                        FontSize = Enum.FontSize.Size14,
  3455.                        TextSize = 14,
  3456.                        TextColor3 = Color3.fromRGB(0, 0, 0),
  3457.                        Font = Enum.Font.SourceSans,
  3458.                        Parent = colorpickerholder
  3459.                    })
  3460.  
  3461.                    local icon = utility.create(colorpickertype and colorpickertype:lower() == "toggle" and "TextButton" or "Frame", {
  3462.                        ZIndex = 9,
  3463.                        Size = UDim2.new(0, 18, 0, 10),
  3464.                        BorderColor3 = Color3.fromRGB(40, 40, 40),
  3465.                        Position = UDim2.new(1, -20, 0, 2),
  3466.                        BorderSizePixel = 0,
  3467.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3468.                        Parent = colorpicker
  3469.                    })
  3470.  
  3471.                    if colorpickertype and colorpickertype:lower() == "toggle" then
  3472.                        icon.Text = ""
  3473.                    end
  3474.  
  3475.                    local grayborder = utility.create("Frame", {
  3476.                        ZIndex = 8,
  3477.                        Size = UDim2.new(1, 2, 1, 2),
  3478.                        Position = UDim2.new(0, -1, 0, -1),
  3479.                        BorderSizePixel = 0,
  3480.                        BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  3481.                        Parent = icon
  3482.                    })
  3483.  
  3484.                    utility.create("Frame", {
  3485.                        ZIndex = 7,
  3486.                        Size = UDim2.new(1, 2, 1, 2),
  3487.                        Position = UDim2.new(0, -1, 0, -1),
  3488.                        BorderSizePixel = 0,
  3489.                        BackgroundColor3 = Color3.fromRGB(10, 10, 10),
  3490.                        Parent = grayborder
  3491.                    })
  3492.  
  3493.                    local icongradient = utility.create("UIGradient", {
  3494.                        Rotation = 90,
  3495.                        Color = utility.gradient { default, utility.changecolor(default, -200) },
  3496.                        Parent = icon
  3497.                    })
  3498.  
  3499.                    local title = utility.create("TextLabel", {
  3500.                        ZIndex = 7,
  3501.                        Size = UDim2.new(0, 0, 0, 14),
  3502.                        BackgroundTransparency = 1,
  3503.                        Position = colorpickertype and colorpickertype:lower() == "toggle" and UDim2.new(0, 20, 0, 0) or UDim2.new(0, 1, 0, 0),
  3504.                        BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  3505.                        FontSize = Enum.FontSize.Size14,
  3506.                        TextStrokeTransparency = 0,
  3507.                        TextSize = 13,
  3508.                        TextColor3 = Color3.fromRGB(210, 210, 210),
  3509.                        Text = name,
  3510.                        Font = Enum.Font.Code,
  3511.                        TextXAlignment = Enum.TextXAlignment.Left,
  3512.                        Parent = colorpicker
  3513.                    })
  3514.  
  3515.                    if #sectioncontent:GetChildren() - 1 <= max then
  3516.                        sectionholder.Size = UDim2.new(1, -1, 0, sectionlist.AbsoluteContentSize.Y + 28)
  3517.                    end
  3518.  
  3519.                    local colorpickertypes = utility.table()
  3520.  
  3521.                    if colorpickertype and colorpickertype:lower() == "toggle" then
  3522.                        local toggled = false
  3523.  
  3524.                        if toggleflag then
  3525.                            library.flags[toggleflag] = toggled
  3526.                        end
  3527.  
  3528.                        local function toggle()
  3529.                            if not switchingtabs then
  3530.                                toggled = not toggled
  3531.  
  3532.                                if toggleflag then
  3533.                                    library.flags[toggleflag] = toggled
  3534.                                end
  3535.  
  3536.                                togglecallback(toggled)
  3537.  
  3538.                                local enabledtransparency = toggled and 0 or 1
  3539.                                utility.tween(enabledcpiconholder, { 0.2 }, { BackgroundTransparency = enabledtransparency })
  3540.  
  3541.                                local textcolor = toggled and library.accent or Color3.fromRGB(180, 180, 180)
  3542.                                utility.tween(title, { 0.2 }, { TextColor3 = textcolor })
  3543.  
  3544.                                if toggled then
  3545.                                    table.insert(accentobjects.text, title)
  3546.                                elseif table.find(accentobjects.text, title) then
  3547.                                    table.remove(accentobjects.text, table.find(accentobjects.text, title))
  3548.                                end
  3549.                            end
  3550.                        end
  3551.  
  3552.                        colorpicker.MouseButton1Click:Connect(toggle)
  3553.  
  3554.                        local function set(bool)
  3555.                            if type(bool) == "boolean" and toggled ~= bool then
  3556.                                toggle()
  3557.                            end
  3558.                        end
  3559.  
  3560.                        function colorpickertypes:Toggle(bool)
  3561.                            set(bool)
  3562.                        end
  3563.  
  3564.                        if toggledefault then
  3565.                            set(toggledefault)
  3566.                        end
  3567.  
  3568.                        if toggleflag then
  3569.                            flags[toggleflag] = set
  3570.                        end
  3571.                    end
  3572.  
  3573.                    local opened = false
  3574.                    local opening = false
  3575.  
  3576.                    local function opencolorpicker()
  3577.                        if not opening then
  3578.                            opening = true
  3579.  
  3580.                            opened = not opened
  3581.  
  3582.                            if opened then
  3583.                                utility.tween(colorpickerholder, { 0.2 }, { Size = UDim2.new(1, -5, 0, 168) })
  3584.                            end
  3585.  
  3586.                            local tween = utility.makevisible(colorpickerframe, opened)
  3587.  
  3588.                            tween.Completed:Wait()
  3589.  
  3590.                            if not opened then
  3591.                                local tween = utility.tween(colorpickerholder, { 0.2 }, { Size = UDim2.new(1, -5, 0, 16) })
  3592.                                tween.Completed:Wait()
  3593.                            end
  3594.  
  3595.                            opening = false
  3596.                        end
  3597.                    end
  3598.  
  3599.                    if colorpickertype and colorpickertype:lower() == "toggle" then
  3600.                        icon.MouseButton1Click:Connect(opencolorpicker)
  3601.                    else
  3602.                        colorpicker.MouseButton1Click:Connect(opencolorpicker)
  3603.                    end
  3604.  
  3605.                    local hue, sat, val = default:ToHSV()
  3606.  
  3607.                    local slidinghue = false
  3608.                    local slidingsaturation = false
  3609.  
  3610.                    local hsv = Color3.fromHSV(hue, sat, val)
  3611.  
  3612.                    if flag then
  3613.                        library.flags[flag] = default
  3614.                    end
  3615.  
  3616.                    local function updatehue(input)
  3617.                        local sizeY = 1 - math.clamp((input.Position.Y - hueframe.AbsolutePosition.Y) / hueframe.AbsoluteSize.Y, 0, 1)
  3618.                        local posY = math.clamp(((input.Position.Y - hueframe.AbsolutePosition.Y) / hueframe.AbsoluteSize.Y) * hueframe.AbsoluteSize.Y, 0, hueframe.AbsoluteSize.Y - 2)
  3619.                        huepicker.Position = UDim2.new(0, 0, 0, posY)
  3620.  
  3621.                        hue = sizeY
  3622.                        hsv = Color3.fromHSV(sizeY, sat, val)
  3623.  
  3624.                        box.Text = math.clamp(math.floor((hsv.R * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.B * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.G * 255) + 0.5), 0, 255)
  3625.  
  3626.                        saturationframe.BackgroundColor3 = hsv
  3627.                        icon.BackgroundColor3 = hsv
  3628.  
  3629.                        if flag then
  3630.                            library.flags[flag] = Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255)
  3631.                        end
  3632.  
  3633.                        callback(Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255))
  3634.                    end
  3635.  
  3636.                    hueframe.InputBegan:Connect(function(input)
  3637.                        if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3638.                            slidinghue = true
  3639.                            updatehue(input)
  3640.                        end
  3641.                    end)
  3642.  
  3643.                    hueframe.InputEnded:Connect(function(input)
  3644.                        if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3645.                            slidinghue = false
  3646.                        end
  3647.                    end)
  3648.  
  3649.                    services.InputService.InputChanged:Connect(function(input)
  3650.                        if input.UserInputType == Enum.UserInputType.MouseMovement then
  3651.                            if slidinghue then
  3652.                                updatehue(input)
  3653.                            end
  3654.                        end
  3655.                    end)
  3656.  
  3657.                    local function updatesatval(input)
  3658.                        local sizeX = math.clamp((input.Position.X - saturationframe.AbsolutePosition.X) / saturationframe.AbsoluteSize.X, 0, 1)
  3659.                        local sizeY = 1 - math.clamp((input.Position.Y - saturationframe.AbsolutePosition.Y) / saturationframe.AbsoluteSize.Y, 0, 1)
  3660.                        local posY = math.clamp(((input.Position.Y - saturationframe.AbsolutePosition.Y) / saturationframe.AbsoluteSize.Y) * saturationframe.AbsoluteSize.Y, 0, saturationframe.AbsoluteSize.Y - 4)
  3661.                        local posX = math.clamp(((input.Position.X - saturationframe.AbsolutePosition.X) / saturationframe.AbsoluteSize.X) * saturationframe.AbsoluteSize.X, 0, saturationframe.AbsoluteSize.X - 4)
  3662.  
  3663.                        saturationpicker.Position = UDim2.new(0, posX, 0, posY)
  3664.  
  3665.                        sat = sizeX
  3666.                        val = sizeY
  3667.                        hsv = Color3.fromHSV(hue, sizeX, sizeY)
  3668.  
  3669.                        box.Text = math.clamp(math.floor((hsv.R * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.B * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.G * 255) + 0.5), 0, 255)
  3670.  
  3671.                        saturationframe.BackgroundColor3 = hsv
  3672.                        icon.BackgroundColor3 = hsv
  3673.  
  3674.                        if flag then
  3675.                            library.flags[flag] = Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255)
  3676.                        end
  3677.  
  3678.                        callback(Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255))
  3679.                    end
  3680.  
  3681.                    saturationframe.InputBegan:Connect(function(input)
  3682.                        if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3683.                            slidingsaturation = true
  3684.                            updatesatval(input)
  3685.                        end
  3686.                    end)
  3687.  
  3688.                    saturationframe.InputEnded:Connect(function(input)
  3689.                        if input.UserInputType == Enum.UserInputType.MouseButton1 then
  3690.                            slidingsaturation = false
  3691.                        end
  3692.                    end)
  3693.  
  3694.                    services.InputService.InputChanged:Connect(function(input)
  3695.                        if input.UserInputType == Enum.UserInputType.MouseMovement then
  3696.                            if slidingsaturation then
  3697.                                updatesatval(input)
  3698.                            end
  3699.                        end
  3700.                    end)
  3701.  
  3702.                    local function set(color)
  3703.                        if type(color) == "table" then
  3704.                            color = Color3.fromRGB(unpack(color))
  3705.                        end
  3706.  
  3707.                        hue, sat, val = color:ToHSV()
  3708.                        hsv = Color3.fromHSV(hue, sat, val)
  3709.  
  3710.                        saturationframe.BackgroundColor3 = hsv
  3711.                        icon.BackgroundColor3 = hsv
  3712.                        saturationpicker.Position = UDim2.new(0, (math.clamp(sat * saturationframe.AbsoluteSize.X, 0, saturationframe.AbsoluteSize.X - 4)), 0, (math.clamp((1 - val) * saturationframe.AbsoluteSize.Y, 0, saturationframe.AbsoluteSize.Y - 4)))
  3713.                        huepicker.Position = UDim2.new(0, 0, 0, math.clamp((1 - hue) * saturationframe.AbsoluteSize.Y, 0, saturationframe.AbsoluteSize.Y - 4))
  3714.  
  3715.                        box.Text = math.clamp(math.floor((hsv.R * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.B * 255) + 0.5), 0, 255) .. ", " .. math.clamp(math.floor((hsv.G * 255) + 0.5), 0, 255)
  3716.  
  3717.                        if flag then
  3718.                            library.flags[flag] = Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255)
  3719.                        end
  3720.  
  3721.                        callback(Color3.fromRGB(hsv.r * 255, hsv.g * 255, hsv.b * 255))
  3722.                    end
  3723.  
  3724.                    local toggled = false
  3725.  
  3726.                    local function toggle()
  3727.                        if not switchingtabs then
  3728.                            toggled = not toggled
  3729.  
  3730.                            if toggled then
  3731.                                task.spawn(function()
  3732.                                    while toggled do
  3733.                                        for i = 0, 1, 0.0015 do
  3734.                                            if not toggled then
  3735.                                                return
  3736.                                            end
  3737.  
  3738.                                            local color = Color3.fromHSV(i, 1, 1)
  3739.                                            set(color)
  3740.  
  3741.                                            task.wait()
  3742.                                        end
  3743.                                    end
  3744.                                end)
  3745.                            end
  3746.  
  3747.                            local enabledtransparency = toggled and 0 or 1
  3748.                            utility.tween(enablediconholder, { 0.2 }, { BackgroundTransparency = enabledtransparency })
  3749.  
  3750.                            local textcolor = toggled and library.accent or Color3.fromRGB(180, 180, 180)
  3751.                            utility.tween(rainbowtxt, { 0.2 }, { TextColor3 = textcolor })
  3752.  
  3753.                            if toggled then
  3754.                                table.insert(accentobjects.text, title)
  3755.                            elseif table.find(accentobjects.text, title) then
  3756.                                table.remove(accentobjects.text, table.find(accentobjects.text, title))
  3757.                            end
  3758.                        end
  3759.                    end
  3760.  
  3761.                    toggleholder.MouseButton1Click:Connect(toggle)
  3762.  
  3763.                    box.FocusLost:Connect(function()
  3764.                        local _, amount = box.Text:gsub(", ", "")
  3765.  
  3766.                        if amount == 2 then
  3767.                            local values = box.Text:split(", ")
  3768.                            local r, g, b = math.clamp(values[1], 0, 255), math.clamp(values[2], 0, 255), math.clamp(values[3], 0, 255)
  3769.                            set(Color3.fromRGB(r, g, b))
  3770.                        else
  3771.                            rgb.Text = math.floor((hsv.r * 255) + 0.5) .. ", " .. math.floor((hsv.g * 255) + 0.5) .. ", " .. math.floor((hsv.b * 255) + 0.5)
  3772.                        end
  3773.                    end)
  3774.  
  3775.                    if default then
  3776.                        set(default)
  3777.                    end
  3778.  
  3779.                    if flag then
  3780.                        flags[flag] = set
  3781.                    end
  3782.  
  3783.                    local colorpickertypes = utility.table()
  3784.  
  3785.                    function colorpickertypes:Set(color)
  3786.                        set(color)
  3787.                    end
  3788.                end
  3789.  
  3790.                return sectiontypes
  3791.            end
  3792.  
  3793.            return pagetypes
  3794.        end
  3795.  
  3796.        return windowtypes
  3797.    end
  3798.  
  3799.    function library:Initialize()
  3800.        if gethui then
  3801.            gui.Parent = gethui()
  3802.        elseif syn and syn.protect_gui then
  3803.            syn.protect_gui(gui)
  3804.            gui.Parent = services.CoreGui
  3805.        end
  3806.    end
  3807.  
  3808.    function library:Init()
  3809.        library:Initialize()
  3810.    end
  3811. end
  3812.  
  3813.  
  3814.  
  3815.  
  3816.  
  3817.  
  3818.  
  3819.  
  3820.  
  3821. local ScriptProperties = {
  3822.    ScriptName = "specter.lua",
  3823.    ScriptSizeOne = 700,
  3824.    ScriptSizeTwo = 500,
  3825.    ScriptAccent = Color3.fromRGB(121, 66, 254),
  3826.  
  3827.  
  3828.    Perms = { 246220626, 2415886442, 2284385613, 2415886442 },
  3829.    Owners = { "tenaki", "happy", "xiba" },
  3830.    Admins = { "aiden", "mertcan", "linux" },
  3831.  
  3832.    UserPanel = {
  3833.        Status = "member"
  3834.    }
  3835. }
  3836.  
  3837.  
  3838.  
  3839.  
  3840. local Library = library
  3841.  
  3842. local Window = Library:New({ Name = ScriptProperties.ScriptName, Accent = Color3.fromRGB(133, 87, 242) })
  3843. --
  3844. local Pred = 0.14
  3845. local Pos = 0
  3846. local mouse = game.Players.LocalPlayer:GetMouse()
  3847. local Player = game:GetService("Players").LocalPlayer
  3848. local runService = game:service("RunService")
  3849. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  3850. -- pages , sections --
  3851.  
  3852.  
  3853. local Pages = {
  3854.    Aiming = Window:Page({ Name = "Main" }),
  3855.    Rage = Window:Page({ Name = "Rage" }),
  3856.    Visuals = Window:Page({ Name = "Visuals" }),
  3857.    Misc = Window:Page({ Name = "Miscellaneous" }),
  3858.    ConfigSec = Window:Page({ Name = "Configurations" })
  3859. }
  3860.  
  3861. local Sections = {
  3862.    Aiming = {
  3863.        TargetAim = {
  3864.            Main = Pages.Aiming:Section({ Name = "Bullet Prioritise", Side = "Right", Max = 3 }),
  3865.            Settings = Pages.Aiming:Section({ Name = "Bullet Prioritise Settings", Side = "Right", Max = 3 })
  3866.        },
  3867.        Aimbot = {
  3868.            Main = Pages.Aiming:Section({ Name = "Aiming", Side = "Left", Max = 3 }),
  3869.            Settings = Pages.Aiming:Section({ Name = "Aiming Settings", Side = "Left", Max = 4 })
  3870.        },
  3871.        MouseStuff = Pages.Aiming:Section({ Name = "Mouse Position", Side = "Right", Max = 2 })
  3872.    },
  3873.    Visuals = {
  3874.        MainVisuals = Pages.Visuals:Section({ Name = "Esp", Side = "Left", Max = 5 }),
  3875.        WorldVisuals = Pages.Visuals:Section({ Name = "World Settings", Side = "Right" }),
  3876.        PlayerChams = Pages.Visuals:Section({ Name = "Client Visuals", Side = "Left", Max = 2 }),
  3877.        BulletTracers = Pages.Visuals:Section({ Name = "Bullet Tracers", Side = "Right", Max = 2 })
  3878.    },
  3879.    RageSector = {
  3880.        AntiAim = Pages.Rage:Section({ Name = "Anti Aim", Side = "Left", Max = 5 }),
  3881.        TargetStrafe = Pages.Rage:Section({ Name = "Target Strafe", Side = "Right" }),
  3882.        AntiHit = Pages.Rage:Section({ Name = "Anti Hit", Side = "Left" }),
  3883.        FakeLag = Pages.Rage:Section({ Name = "Fake Lag", Side = "Right", Max = 2 })
  3884.    },
  3885.    MiscSector = {
  3886.        Fly = Pages.Misc:Section({ Name = "Float", Side = "Left" }),
  3887.        CharMain = Pages.Misc:Section({ Name = "Limits", Side = "Right" }),
  3888.        SpeedMain = Pages.Misc:Section({ Name = "Movement", Side = "Left" }),
  3889.        Fun = Pages.Misc:Section({ Name = "Spammer", Side = "Right", Max = 4 })
  3890.  
  3891.  
  3892.    },
  3893.    Configuations = {
  3894.        Configs = Pages.ConfigSec:Section({ Name = "Configuration", Side = "Left" }),
  3895.        Discord = Pages.ConfigSec:Section({ Name = "Discord", Side = "Right" }),
  3896.        ScriptStuff = Pages.ConfigSec:Section({ Name = "Utilities", Side = "Right" })
  3897.    }
  3898. }
  3899.  
  3900. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  3901. -- cheat settings table --
  3902.  
  3903.  
  3904. local BulletTracers = false
  3905. local AimingSettings = {
  3906.    Aimbot = {
  3907.        NotificationMode = false,
  3908.        Keybind = Enum.KeyCode.Q,
  3909.        Hitbox = "Head",
  3910.        HitAirshots = false,
  3911.        CameraMode = false,
  3912.        MouseMode = false,
  3913.        AutoPredct = false,
  3914.        PredictionAmount = 0.165,
  3915.        Smoothing = false,
  3916.        Smoothness = 0.015
  3917.    },
  3918.    TargetAim = {
  3919.        Enabled = true,
  3920.        UseFOV = true,
  3921.        ShowFOV = false,
  3922.        FOV = 60,
  3923.        FOVFilled = false,
  3924.        Selected = false,
  3925.        WallCheck = false,
  3926.        PingPred1 = false,
  3927.        PingPred2 = false,
  3928.        CrewCheck = false,
  3929.        ShowHitbox = false,
  3930.        AirShotMode = true,
  3931.        RandomHitbox = false,
  3932.        GrabbedCheck = false,
  3933.        KnockedCheck = false,
  3934.        FOVThickness = 2,
  3935.        FovTransparency = 1,
  3936.        NotificationMode = false,
  3937.        UseNearestDistance = false,
  3938.        Hitboxes = "Head",
  3939.        FOVColor = Color3.new(0.603921, 0.011764, 1)
  3940.    },
  3941.    MousePosSector = {
  3942.        Filled = false,
  3943.        Thickness = 1,
  3944.        Size = 10,
  3945.        DOTColor = Color3.fromRGB(0, 71, 212),
  3946.        Enabled = false
  3947.    }
  3948. }
  3949.  
  3950. local RageSettings = {
  3951.    AntiAim = {
  3952.        Enabled = false,
  3953.        VelocityBreaker = false,
  3954.        VBV = 500,
  3955.        VBF = 100,
  3956.        Confusion = false
  3957.    },
  3958.  
  3959.    LegitAntiHit = {
  3960.        Enabled = false,
  3961.        Multiplier = 0.25
  3962.    },
  3963.    FakeLag = {
  3964.        Enabled = false,
  3965.        Multiplier = 0.10,
  3966.        Visulize = false,
  3967.        ViulizationTransparency = 1,
  3968.        ViulizationColor = Color3.fromRGB(255, 0, 0)
  3969.  
  3970.  
  3971.    },
  3972.    TargetStrafe = {
  3973.        Enabled = false,
  3974.        AntiAimMode = false,
  3975.        AntiAimType = "Default",
  3976.        Distance = 2,
  3977.        Speed = 0.5,
  3978.        Color = Color3.fromRGB(255, 255, 255)
  3979.    }
  3980. }
  3981.  
  3982.  
  3983. local MiscSettings = {
  3984.    TrashTalk = {
  3985.        Enabled = false
  3986.    },
  3987.    NoJumpCd = {
  3988.        Enabled = false
  3989.    },
  3990.    NoRecoil = {
  3991.        Enabled = false
  3992.    },
  3993.    Speed = {
  3994.        Enabled = false,
  3995.        Motion = true,
  3996.        BHop = false,
  3997.        Amount = 1
  3998.    },
  3999.    Fly = {
  4000.        Enabled = false,
  4001.        Normal = true,
  4002.        Height = 35,
  4003.        MoveOnly = false,
  4004.        Amount = 1
  4005.    },
  4006.    Strafe = {
  4007.        Enabled = false
  4008.    },
  4009.    NoSlowdown = {
  4010.        Enabled = false
  4011.    }
  4012. }
  4013.  
  4014. local parts = {
  4015.    "Head",
  4016.    "UpperTorso",
  4017.    "RightUpperArm",
  4018.    "RightLowerArm",
  4019.    "RightUpperArm",
  4020.    "LeftUpperArm",
  4021.    "LeftLowerArm",
  4022.    "LeftFoot",
  4023.    "RightFoot",
  4024.    "LowerTorso",
  4025.    "LeftHand",
  4026.    "RightHand",
  4027.    "RightUpperLeg",
  4028.    "LeftUpperLeg",
  4029.    "LeftLowerLeg",
  4030.    "RightLowerLeg"
  4031. }
  4032.  
  4033.  
  4034. local VisualsExtra = {
  4035.    WorldVisuals = {
  4036.        MapLightingEnabled = false,
  4037.        MapBrightness = 0.6,
  4038.        MapContrast = 0.2,
  4039.        MapTintColor = Color3.fromRGB(0, 0, 153)
  4040.    },
  4041.    WeaponEffects = {
  4042.        Enabled = false,
  4043.        Color = Color3.fromRGB(255, 0, 0),
  4044.        Material = "ForceField"
  4045.    },
  4046.    ClientVisuals = {
  4047.        SelfChams = false,
  4048.        SelfChamsMaterial = "ForceField",
  4049.        SelfChamsColor = Color3.fromRGB(255, 0, 0),
  4050.        BaseSkin = "Plastic"
  4051.    }
  4052. }
  4053.  
  4054. local ConfigurationTab = {
  4055.  
  4056.    Configs = {
  4057.  
  4058.  
  4059.    },
  4060.  
  4061.    Discord = {
  4062.        AutoJoin = false
  4063.  
  4064.    },
  4065.  
  4066.    UIPreferances = {
  4067.  
  4068.  
  4069.    }
  4070. }
  4071.  
  4072. ----- strafe ---
  4073. local Yung = loadstring(game:HttpGet("https://pastebin.com/raw/kwQeFKTi"))()
  4074. local Circle = Yung:New3DCircle()
  4075. Circle.Visible = RageSettings.TargetStrafe.Enabled
  4076. Circle.ZIndex = 1
  4077. Circle.Transparency = 1
  4078. Circle.Color = RageSettings.TargetStrafe.Color
  4079. Circle.Thickness = 1
  4080. Circle.Radius = RageSettings.TargetStrafe.Distance
  4081. local delta = 0
  4082. local duration = RageSettings.TargetStrafe.Speed
  4083. local d32_ui_color3 = Color3.fromRGB(255, 255, 255)
  4084.  
  4085.  
  4086.  
  4087.  
  4088.  
  4089. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4090. -- aimbot --
  4091.  
  4092. local CC = game:GetService "Workspace".CurrentCamera
  4093. local LocalMouse = game.Players.LocalPlayer:GetMouse()
  4094. local Locking = false
  4095.  
  4096. function x(tt, tx, cc)
  4097.    game.StarterGui:SetCore(
  4098.        "SendNotification",
  4099.        {
  4100.        Title = tt,
  4101.        Text = tx,
  4102.        Duration = cc
  4103.    }
  4104.    )
  4105. end
  4106.  
  4107. local UserInputService = game:GetService("UserInputService")
  4108.  
  4109. UserInputService.InputBegan:Connect(
  4110.    function(keygo, ok)
  4111.    if (not ok) then
  4112.        if (keygo.KeyCode == AimingSettings.Aimbot.Keybind) then
  4113.            Locking = not Locking
  4114.            if Locking and getgenv().mousemoverel then
  4115.                Plr = getClosestPlayerToCursor()
  4116.                PlrP = getclosest()
  4117.                if AimingSettings.Aimbot.NotificationMode then
  4118.                end
  4119.            elseif not Locking then
  4120.                if AimingSettings.Aimbot.NotificationMode then
  4121.                end
  4122.            end
  4123.        end
  4124.    end
  4125. end
  4126. )
  4127.  
  4128. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4129. -- functions --
  4130.  
  4131. function getClosestPlayerToCursor()
  4132.    local closestPlayer
  4133.    local shortestDistance = AimingSettings.TargetAim.FOV
  4134.  
  4135.    for i, v in pairs(game.Players:GetPlayers()) do
  4136.        if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and
  4137.            v.Character.Humanoid.Health ~= 0 and
  4138.            v.Character:FindFirstChild(AimingSettings.Aimbot.Hitbox)
  4139.        then
  4140.            local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  4141.            local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(LocalMouse.X, LocalMouse.Y)).magnitude
  4142.            if magnitude < shortestDistance then
  4143.                closestPlayer = v
  4144.                shortestDistance = magnitude
  4145.            end
  4146.        end
  4147.    end
  4148.    return closestPlayer
  4149. end
  4150.  
  4151. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4152. -- mouse / camera mode --
  4153.  
  4154. game:GetService("RunService").RenderStepped:Connect(
  4155.    function()
  4156.    if Plr == nil then
  4157.        return
  4158.    elseif not Plr.Character then
  4159.        return
  4160.    end
  4161.    if not Plr.Character:FindFirstChild(AimingSettings.Aimbot.Hitbox) then
  4162.        return
  4163.    end
  4164.    if Locking and AimingSettings.Aimbot.MouseMode then
  4165.        local goal =
  4166.        CC:WorldToScreenPoint(
  4167.            Plr.Character[AimingSettings.Aimbot.Hitbox].Position +
  4168.            (Plr.Character[AimingSettings.Aimbot.Hitbox].Velocity * AimingSettings.Aimbot.PredictionAmount)
  4169.        )
  4170.        mousemoverel(goal.X - LocalMouse.X, goal.Y - LocalMouse.Y)
  4171.    else wait()
  4172.    end
  4173.  
  4174.    if Locking and AimingSettings.Aimbot.CameraMode and not AimingSettings.Aimbot.Smoothing then
  4175.        workspace.CurrentCamera.CFrame = CFrame.new(
  4176.            workspace.CurrentCamera.CFrame.Position,
  4177.            Plr.Character[AimingSettings.Aimbot.Hitbox].Position +
  4178.            Plr.Character[AimingSettings.Aimbot.Hitbox].Velocity * AimingSettings.Aimbot.PredictionAmount
  4179.        )
  4180.    elseif Locking and AimingSettings.Aimbot.CameraMode and AimingSettings.Aimbot.Smoothing then
  4181.        local Main =
  4182.        CFrame.new(
  4183.            workspace.CurrentCamera.CFrame.p,
  4184.            Plr.Character[AimingSettings.Aimbot.Hitbox].Position +
  4185.            Plr.Character[AimingSettings.Aimbot.Hitbox].Velocity * AimingSettings.Aimbot.PredictionAmount
  4186.        )
  4187.        workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(
  4188.            Main,
  4189.            AimingSettings.Aimbot.Smoothness,
  4190.            Enum.EasingStyle.Elastic,
  4191.            Enum.EasingDirection.InOut
  4192.        )
  4193.    else wait()
  4194.    end
  4195.    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4196.    -- airshot function --
  4197.  
  4198.    if AimingSettings.Aimbot.MouseMode == false then
  4199.        if AimingSettings.Aimbot.HitAirshots == true then
  4200.            if Plr ~= nil and Plr.Character.Humanoid.Jump == true and
  4201.                Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air
  4202.            then
  4203.                AimingSettings.Aimbot.Hitbox = "RightFoot"
  4204.            else
  4205.                AimingSettings.Aimbot.Hitbox = "LowerTorso"
  4206.            end
  4207.        end
  4208.    end
  4209. end
  4210. )
  4211.  
  4212.  
  4213.  
  4214.  
  4215. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4216. -- global toggles --
  4217.  
  4218.  
  4219. local Toggles = {
  4220.    TargetAim = {
  4221.  
  4222.        MainToggle = Sections.Aiming.TargetAim.Main:Keybind(
  4223.            {
  4224.            Name = "Enabled",
  4225.            Callback = function(key) end,
  4226.            Default = key,
  4227.            Pointer = "1",
  4228.            Mode = "Toggle",
  4229.            toggleflag = "1.1",
  4230.            togglecallback = function(state)
  4231.                AimingSettings.TargetAim.Enabled = state
  4232.            end
  4233.        }
  4234.        ),
  4235.  
  4236.        HitboxesToggle = Sections.Aiming.TargetAim.Main:Dropdown(
  4237.            {
  4238.            Name = "Hitbox",
  4239.            Options = { "Head", "UpperTorso", "HumanoidRootPart" },
  4240.            Default = "Head",
  4241.            Pointer = "2",
  4242.            callback = function(state)
  4243.                AimingSettings.TargetAim.Hitboxes = state
  4244.            end
  4245.        }
  4246.        ),
  4247.  
  4248.  
  4249.        UseNearestDistance = Sections.Aiming.TargetAim.Main:Toggle(
  4250.            {
  4251.            Name = "Distance Based",
  4252.            Default = false,
  4253.            Pointer = "3",
  4254.            callback = function(state)
  4255.                AimingSettings.TargetAim.UseNearestDistance = state
  4256.            end
  4257.        }
  4258.        ),
  4259.        CrewCheckToggle = Sections.Aiming.TargetAim.Main:Toggle(
  4260.            {
  4261.            Name = "Prioritise Team",
  4262.            Default = false,
  4263.            Pointer = "4",
  4264.            callback = function(state)
  4265.                AimingSettings.TargetAim.CrewCheck = state
  4266.            end
  4267.        }
  4268.        ),
  4269.  
  4270.        WallCheckToggle = Sections.Aiming.TargetAim.Main:Toggle(
  4271.            {
  4272.            Name = "Visibility Check",
  4273.            Default = false,
  4274.            Pointer = "5",
  4275.            callback = function(state)
  4276.                AimingSettings.TargetAim.WallCheck = state
  4277.            end
  4278.        }
  4279.        ),
  4280.  
  4281.  
  4282.        ShowFOVToggle = Sections.Aiming.TargetAim.Settings:Toggle(
  4283.            {
  4284.            Name = "Draw Fov",
  4285.            Default = false,
  4286.            Pointer = "6",
  4287.            callback = function(state)
  4288.                AimingSettings.TargetAim.ShowFOV = state
  4289.            end
  4290.        }
  4291.        ),
  4292.  
  4293.        FOVSlider = Sections.Aiming.TargetAim.Settings:Slider(
  4294.            {
  4295.            Name = "Bullet Radius Size",
  4296.            Minimum = 1,
  4297.            Maximum = 10,
  4298.            Default = 1,
  4299.            Decimals = 0.1,
  4300.            Pointer = "7",
  4301.            callback = function(state)
  4302.                AimingSettings.TargetAim.FOV = state ^ 3
  4303.            end
  4304.        }
  4305.        )
  4306.  
  4307.    },
  4308.    Aimbot = {
  4309.        EnableTog = Sections.Aiming.Aimbot.Main:Toggle(
  4310.            {
  4311.            Name = "Enabled",
  4312.            Default = false,
  4313.            Pointer = "8",
  4314.            callback = function(e)
  4315.                AimingSettings.Aimbot.CameraMode = e
  4316.            end
  4317.        }
  4318.        ),
  4319.        SmoothingToggle = Sections.Aiming.Aimbot.Main:Toggle(
  4320.            {
  4321.            Name = "Smoothing",
  4322.            Default = false,
  4323.            Pointer = "9",
  4324.            callback = function(state)
  4325.                AimingSettings.Aimbot.Smoothing = state
  4326.            end
  4327.        }
  4328.        ),
  4329.  
  4330.        HitboxesDropdown = Sections.Aiming.Aimbot.Main:Dropdown(
  4331.            {
  4332.            Name = "Hitbox",
  4333.            Options = { "Head", "UpperTorso", "HumanoidRootPart" },
  4334.            Default = "Head",
  4335.            Pointer = "10",
  4336.            callback = function(state)
  4337.                AimingSettings.Aimbot.Hitbox = state
  4338.            end
  4339.        }
  4340.        ),
  4341.  
  4342.        TeamCheckToggle = Sections.Aiming.Aimbot.Main:Toggle(
  4343.            {
  4344.            Name = "Visibility Check",
  4345.            Default = false,
  4346.            Pointer = "11",
  4347.            callback = function()
  4348.            end
  4349.        }
  4350.        ),
  4351.  
  4352.  
  4353.        Revaluation = Sections.Aiming.Aimbot.Main:Toggle(
  4354.            {
  4355.            Name = "Revaluate Hitspand",
  4356.            Default = false,
  4357.            Pointer = "12",
  4358.            callback = function(state)
  4359.                AimingSettings.Aimbot.HitAirshots = state
  4360.            end
  4361.        }
  4362.        ),
  4363.  
  4364.  
  4365.  
  4366.        PingDropDown = Sections.Aiming.Aimbot.Settings:Dropdown(
  4367.            {
  4368.            Name = "Aiming Type",
  4369.            Options = { "Ping Based", "Custom" },
  4370.            Default = "Ping Based",
  4371.            Pointer = "13",
  4372.            callback = function(state)
  4373.                AimingSettings.Aimbot.AutoPredct = state
  4374.            end
  4375.        }
  4376.        ),
  4377.        TypeDropdown = Sections.Aiming.Aimbot.Settings:Dropdown(
  4378.            {
  4379.            Name = "Aiming Tracing",
  4380.            Options = { "Camera", "nil" },
  4381.            Default = "nil",
  4382.            Pointer = "14",
  4383.            callback = function(state)
  4384.  
  4385.            end
  4386.        }
  4387.        ),
  4388.  
  4389.        SmoothingSlider = Sections.Aiming.Aimbot.Settings:Slider(
  4390.            {
  4391.            Name = "Smoothing Amount",
  4392.            Minimum = 1,
  4393.            Maximum = 10,
  4394.            Default = 10,
  4395.            Decimals = 0.000000000000000001,
  4396.            Pointer = "15",
  4397.            callback = function(state)
  4398.                AimingSettings.Aimbot.Smoothness = state / 50
  4399.            end
  4400.        }
  4401.        ),
  4402.        PredictionAmount = Sections.Aiming.Aimbot.Settings:Slider(
  4403.            {
  4404.            Name = "Prediction Amount",
  4405.            Minimum = 1,
  4406.            Maximum = 10,
  4407.            Default = 10,
  4408.            Decimals = 0.000000000000000001,
  4409.            Pointer = "16",
  4410.            callback = function(state)
  4411.                AimingSettings.Aimbot.Prediction = state / 50
  4412.            end
  4413.        }
  4414.        ),
  4415.  
  4416.        RageStuff = {
  4417.  
  4418.            AntiAimToggle = Sections.RageSector.AntiAim:Toggle(
  4419.                {
  4420.                Name = "Enabled",
  4421.                Default = false,
  4422.                Pointer = "17",
  4423.                callback = function(state)
  4424.                    RageSettings.AntiAim.Enabled = state
  4425.                end
  4426.            }
  4427.            ),
  4428.            DesyncToggle = Sections.RageSector.AntiAim:Toggle(
  4429.                {
  4430.                Name = "Confusion",
  4431.                Default = false,
  4432.                Pointer = "18",
  4433.                callback = function(state)
  4434.                    RageSettings.AntiAim.VelocityBreaker = state
  4435.                end
  4436.            }
  4437.            ),
  4438.            DesyncVelocitySlider = Sections.RageSector.AntiAim:Slider(
  4439.                {
  4440.                Name = "Velocity Speed",
  4441.                Minimum = 1,
  4442.                Maximum = 500,
  4443.                Default = 10,
  4444.                Decimals = 0.000000000000001,
  4445.                Pointer = "19",
  4446.                callback = function(state)
  4447.                    RageSettings.AntiAim.VBV = state
  4448.                end
  4449.            }
  4450.            ),
  4451.            DesyncFrameSlider = Sections.RageSector.AntiAim:Slider(
  4452.                {
  4453.                Name = "Spin Speed",
  4454.                Minimum = 1,
  4455.                Maximum = 100,
  4456.                Default = 10,
  4457.                Decimals = 0.000000000000001,
  4458.                Pointer = "20",
  4459.                callback = function(state)
  4460.                    RageSettings.AntiAim.VBF = state
  4461.                end
  4462.            }
  4463.            ),
  4464.            AntiHitToggle = Sections.RageSector.AntiHit:Toggle(
  4465.                {
  4466.                Name = "Enabled",
  4467.                Default = false,
  4468.                Pointer = "21",
  4469.                callback = function(state)
  4470.                    RageSettings.LegitAntiHit.Enabled = state
  4471.                end
  4472.            }
  4473.            ),
  4474.            AntiHitSlider = Sections.RageSector.AntiHit:Slider(
  4475.                {
  4476.                Name = "Multiplier",
  4477.                Minimum = 1,
  4478.                Maximum = 10,
  4479.                Default = 1,
  4480.                Decimals = 0.000000000000001,
  4481.                Pointer = "22",
  4482.                callback = function(state)
  4483.                    RageSettings.LegitAntiHit.Multiplier = state / 10
  4484.                end
  4485.            }
  4486.            )
  4487.        },
  4488.  
  4489.        FakeLagShit = {
  4490.            FakeLagT = Sections.RageSector.FakeLag:Toggle(
  4491.                {
  4492.                Name = "Enabled",
  4493.                Default = false,
  4494.                Pointer = "23",
  4495.                callback = function(state)
  4496.  
  4497.                end
  4498.            }
  4499.            ),
  4500.  
  4501.  
  4502.            FakeLagSlid = Sections.RageSector.FakeLag:Slider(
  4503.                {
  4504.                Name = "Multiplier",
  4505.                Minimum = 1,
  4506.                Maximum = 10,
  4507.                Default = 1,
  4508.                Decimals = 0.000000000000001,
  4509.                Pointer = "24",
  4510.                callback = function(state)
  4511.                    RageSettings.FakeLag.Multiplier = state / 30
  4512.                end
  4513.            }
  4514.            ),
  4515.  
  4516.            FakeLagBodyCham = Sections.RageSector.FakeLag:Toggle(
  4517.                {
  4518.                Name = "Body Cham",
  4519.                Default = false,
  4520.                Pointer = "25",
  4521.                callback = function(state)
  4522.                    fakelag = state
  4523.                end
  4524.            }
  4525.            ),
  4526.  
  4527.        },
  4528.    },
  4529.  
  4530.    MiscStuff1 = {
  4531.        FlyToggle = Sections.MiscSector.Fly:Toggle(
  4532.            {
  4533.            Name = "Enabled",
  4534.            Default = false,
  4535.            Pointer = "26",
  4536.            callback = function(state)
  4537.                MiscSettings.Fly.Enabled = state
  4538.            end
  4539.        }
  4540.        ),
  4541.        FlyHightSlider = Sections.MiscSector.Fly:Slider(
  4542.            {
  4543.            Name = "Height",
  4544.            Minimum = 1,
  4545.            Maximum = 100,
  4546.            Default = 10,
  4547.            Decimals = 0.000000000000001,
  4548.            Pointer = "27",
  4549.            callback = function(state)
  4550.                MiscSettings.Fly.Height = state
  4551.            end
  4552.        }
  4553.        ),
  4554.        FlyAmount = Sections.MiscSector.Fly:Slider(
  4555.            {
  4556.            Name = "Multiplier",
  4557.            Minimum = 1,
  4558.            Maximum = 10,
  4559.            Default = 5,
  4560.            Decimals = 0.000000000000001,
  4561.            Pointer = "28",
  4562.            callback = function(state)
  4563.                MiscSettings.Fly.Amount = state
  4564.            end
  4565.        }
  4566.        )
  4567.  
  4568.    },
  4569.  
  4570.  
  4571.    MiscStuff2 = {
  4572.        NoJumpCdToggle = Sections.MiscSector.CharMain:Toggle(
  4573.            {
  4574.            Name = "Blacklisted",
  4575.            Default = false,
  4576.            Pointer = "29",
  4577.            callback = function(state)
  4578.                MiscSettings.NoJumpCd.Enabled = state
  4579.                MiscSettings.NoSlowdown.Enabled = state
  4580.            end
  4581.        }
  4582.        ),
  4583.        CooldownDropdown = Sections.MiscSector.CharMain:Dropdown(
  4584.            {
  4585.            Name = "Type",
  4586.            Options = { "Jump", "Slowdown" },
  4587.            Default = "Jump",
  4588.            Pointer = "30",
  4589.            callback = function()
  4590.            end
  4591.        }
  4592.        ),
  4593.    },
  4594.  
  4595.    MovementShit = {
  4596.        SpeedToggle = Sections.MiscSector.SpeedMain:Toggle(
  4597.            {
  4598.            Name = "Enabled",
  4599.            Default = false,
  4600.            Pointer = "31",
  4601.            callback = function(state)
  4602.                MiscSettings.Speed.Enabled = state
  4603.            end
  4604.        }
  4605.        ),
  4606.  
  4607.        BhopToggle = Sections.MiscSector.SpeedMain:Toggle(
  4608.            {
  4609.            Name = "Bunny Hop",
  4610.            Default = false,
  4611.            Pointer = "32",
  4612.            callback = function(state)
  4613.                MiscSettings.Speed.BHop = state
  4614.            end
  4615.        }
  4616.        ),
  4617.        SpeedMultipler = Sections.MiscSector.SpeedMain:Slider(
  4618.            {
  4619.            Name = "Multiplier",
  4620.            Minimum = 1,
  4621.            Maximum = 10,
  4622.            Default = 1,
  4623.            Decimals = 0.000000000000001,
  4624.            Pointer = "32",
  4625.            callback = function(state)
  4626.                MiscSettings.Speed.Amount = state
  4627.            end
  4628.        }
  4629.        ),
  4630.        TrashTalk = Sections.MiscSector.Fun:Toggle(
  4631.            {
  4632.            Name = "Enabled",
  4633.            Default = false,
  4634.            Pointer = "33",
  4635.            callback = function(state)
  4636.                MiscSettings.TrashTalk.Enabled = state
  4637.            end
  4638.        }
  4639.        ),
  4640.        TrashTalkDropdown = Sections.MiscSector.Fun:Dropdown(
  4641.            {
  4642.            Name = "Type",
  4643.            Options = { "Main" },
  4644.            Default = "Main",
  4645.            Pointer = "34",
  4646.            callback = function(state)
  4647.            end
  4648.        }
  4649.        )
  4650.    }
  4651. }
  4652.  
  4653. local StrafeSection = {
  4654.    TargetStrafe = Sections.RageSector.TargetStrafe:Toggle(
  4655.        {
  4656.        Name = "Enabled",
  4657.        Default = false,
  4658.        Pointer = "35",
  4659.        callback = function(state)
  4660.            RageSettings.TargetStrafe.Enabled = state
  4661.        end
  4662.    }
  4663.    ),
  4664.  
  4665.  
  4666.  
  4667.    StrafeSlider = Sections.RageSector.TargetStrafe:Slider(
  4668.        {
  4669.        Name = "Range",
  4670.        Minimum = 1,
  4671.        Maximum = 100,
  4672.        Default = 50,
  4673.        Decimals = 0.000000000000001,
  4674.        Pointer = "36",
  4675.        callback = function(state)
  4676.            RageSettings.TargetStrafe.Distance = state
  4677.        end
  4678.    }
  4679.    ),
  4680.  
  4681.    SpeedStrafe = Sections.RageSector.TargetStrafe:Slider(
  4682.        {
  4683.        Name = "Speed",
  4684.        Minimum = 1,
  4685.        Maximum = 100,
  4686.        Default = 50,
  4687.        Decimals = 0.000000000000001,
  4688.        Pointer = "37",
  4689.        callback = function(state)
  4690.            RageSettings.TargetStrafe.Speed = state / 50
  4691.        end
  4692.    }
  4693.    ),
  4694.  
  4695.    StrafeRage = Sections.RageSector.TargetStrafe:Toggle(
  4696.        {
  4697.        Name = "Rage Bot",
  4698.        Default = false,
  4699.        Pointer = "37",
  4700.        callback = function(state)
  4701.            RageSettings.TargetStrafe.AntiAimMode = state
  4702.        end
  4703.    }
  4704.    ),
  4705.  
  4706.  
  4707.    StrafeMode = Sections.RageSector.TargetStrafe:Dropdown(
  4708.        {
  4709.        Name = "Type",
  4710.        Options = { "Flinger", "Default" },
  4711.        Default = "Default",
  4712.        Pointer = "38",
  4713.        callback = function(state)
  4714.            RageSettings.TargetStrafe.AntiAimType = state
  4715.        end
  4716.    }
  4717.    )
  4718. }
  4719.  
  4720.  
  4721. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4722. -- mouse toggles --
  4723.  
  4724. local MousePositionToggles = {
  4725.    MouseEnabled = Sections.Aiming.MouseStuff:Toggle(
  4726.        {
  4727.        Name = "Enabled",
  4728.        Default = false,
  4729.        Pointer = "39",
  4730.        callback = function(state)
  4731.            AimingSettings.MousePosSector.Enabled = state
  4732.        end
  4733.    }
  4734.    ),
  4735.  
  4736.  
  4737.    MouseSizeSlider = Sections.Aiming.MouseStuff:Slider(
  4738.        {
  4739.        Name = "Pos Radius",
  4740.        Minimum = 1,
  4741.        Maximum = 50,
  4742.        Default = 1,
  4743.        Decimals = 0.1,
  4744.        Pointer = "40",
  4745.        callback = function(state)
  4746.            AimingSettings.MousePosSector.Size = state
  4747.        end
  4748.    }
  4749.    )
  4750. }
  4751.  
  4752. Toggles.TargetAim.ShowFOVToggle:Colorpicker(
  4753.    {
  4754.    Name = "Fov Color",
  4755.    Info = "Field Of View Rgb",
  4756.    Alpha = 0.5,
  4757.    Default = Color3.fromRGB(133, 87, 242),
  4758.    Pointer = "41",
  4759.    callback = function(shit)
  4760.        AimingSettings.TargetAim.FOVColor = shit
  4761.    end
  4762. }
  4763. )
  4764. StrafeSection.TargetStrafe:Colorpicker(
  4765.    {
  4766.    Name = "Mouse Color",
  4767.    Info = "Mouse Color",
  4768.    Alpha = 0.5,
  4769.    Default = Color3.fromRGB(133, 87, 242),
  4770.    Pointer = "42",
  4771.    callback = function(shit)
  4772.        Circle.Color = shit
  4773.    end
  4774. }
  4775. )
  4776.  
  4777. MousePositionToggles.MouseEnabled:Colorpicker(
  4778.    {
  4779.    Name = "Mouse Color",
  4780.    Info = "Mouse Color",
  4781.    Alpha = 0.5,
  4782.    Default = Color3.fromRGB(133, 87, 242),
  4783.    Pointer = "43",
  4784.    callback = function(shit)
  4785.        AimingSettings.MousePosSector.DOTColor = shit
  4786.    end
  4787. }
  4788. )
  4789.  
  4790.  
  4791.  
  4792.  
  4793. local AllahStorage = { Instance = {} }
  4794.  
  4795. local GetService =
  4796. setmetatable(
  4797.    {},
  4798.    {
  4799.    __index = function(self, key)
  4800.        return game:GetService(key)
  4801.    end
  4802. }
  4803. )
  4804.  
  4805. local Camera = workspace.CurrentCamera
  4806. local WorldToScreen = Camera.WorldToScreenPoint
  4807. local WorldToViewportPoint = Camera.WorldToViewportPoint
  4808. local GetPartsObscuringTarget = Camera.GetPartsObscuringTarget
  4809.  
  4810. local RunService = GetService.RunService
  4811. local Players = GetService.Players
  4812. local LocalPlayer = Players.LocalPlayer
  4813. local Mouse = LocalPlayer:GetMouse()
  4814. local CurrentCamera = workspace.CurrentCamera
  4815. local UserInputService = GetService.UserInputService
  4816. local Unpack = table.unpack
  4817. local GuiInset = GetService.GuiService:GetGuiInset()
  4818. local Insert = table.insert
  4819. local Network = GetService.NetworkClient
  4820. local StarterGui = GetService.StarterGui
  4821. local tweenService = GetService.TweenService
  4822. local ReplicatedStorage = GetService.ReplicatedStorage
  4823. local http = GetService.HttpService
  4824. local lighting = GetService.Lighting
  4825.  
  4826.  
  4827.  
  4828. function Find(Data)
  4829.    getgenv().Target = nil
  4830.    for i, v in next, Players:GetPlayers() do
  4831.        if v.Name ~= LocalPlayer.Name and v.Name:lower():match("^" .. NoSpace(Data):lower()) then
  4832.            getgenv().Target = v.Name
  4833.        end
  4834.    end
  4835.  
  4836.    return getgenv().Target
  4837. end
  4838.  
  4839. function IsNetwork(GetPlayer)
  4840.    return GetPlayer and GetPlayer.Character and GetPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil and
  4841.        GetPlayer.Character:FindFirstChild("Humanoid") ~= nil and
  4842.        GetPlayer.Character:FindFirstChild("Head") ~= nil and
  4843.        true or
  4844.        false
  4845. end
  4846.  
  4847. function Knocked(GetPlayer)
  4848.    if IsNetwork(GetPlayer) then
  4849.        return GetPlayer.Character.BodyEffects["K.O"].Value and true or false
  4850.    end
  4851.    return false
  4852. end
  4853.  
  4854. function Grabbing(GetPlayer)
  4855.    if IsNetwork(GetPlayer) then
  4856.        return GetPlayer.Character:FindFirstChild("GRABBING_CONSTRAINT") and true or false
  4857.    end
  4858.    return false
  4859. end
  4860.  
  4861. function Alive(Player)
  4862.    if Player and Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") ~= nil and
  4863.        Player.Character:FindFirstChild("Humanoid") ~= nil and
  4864.        Player.Character:FindFirstChild("Head") ~= nil
  4865.    then
  4866.        return true
  4867.    end
  4868.    return false
  4869. end
  4870.  
  4871. function CameraCheck(GetPosition, IgnoredList)
  4872.    if IsNetwork(LocalPlayer) then
  4873.        return #CurrentCamera:GetPartsObscuringTarget({ LocalPlayer.Character.Head.Position, GetPosition }, IgnoredList) ==
  4874.            0 and
  4875.            true or
  4876.            false
  4877.    end
  4878. end
  4879.  
  4880. function WallCheck(OriginPart, Part)
  4881.    if IsNetwork(LocalPlayer) then
  4882.        local IgnoreList = { CurrentCamera, LocalPlayer.Character, OriginPart.Parent }
  4883.        local Parts =
  4884.        CurrentCamera:GetPartsObscuringTarget(
  4885.            {
  4886.                OriginPart.Position,
  4887.                Part.Position
  4888.            },
  4889.            IgnoreList
  4890.        )
  4891.  
  4892.        for i, v in pairs(Parts) do
  4893.            if v.Transparency >= 0.3 then
  4894.                AllahStorage.Instance[#AllahStorage.Instance + 1] = v
  4895.            end
  4896.  
  4897.            if v.Material == Enum.Material.Glass then
  4898.                AllahStorage.Instance[#AllahStorage.Instance + 1] = v
  4899.            end
  4900.        end
  4901.  
  4902.        return #Parts == 0
  4903.    end
  4904.    return true
  4905. end
  4906.  
  4907. function NilBody()
  4908.    if Alive(LocalPlayer) then
  4909.        for i, v in pairs(LocalPlayer.Character:GetChildren()) do
  4910.            if v:IsA("BasePart") or v:IsA("Part") or v:IsA("MeshPart") then
  4911.                if v.Name ~= "HumanoidRootPart" then
  4912.                    v:Destroy()
  4913.                end
  4914.            end
  4915.        end
  4916.    end
  4917. end
  4918.  
  4919. function NearestDistance()
  4920.    local Target = nil
  4921.    local Distance = math.huge
  4922.    for i, v in next, Players:GetPlayers() do
  4923.        if v ~= LocalPlayer and Alive(LocalPlayer) and Alive(v) then
  4924.            local DistanceFromPlayer =
  4925.            (v.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
  4926.            if Distance > DistanceFromPlayer then
  4927.                if (not AimingSettings.TargetAim.CrewCheck or
  4928.                    v:FindFirstChild("DataFolder") and v.DataFolder.Information:FindFirstChild("Crew") and
  4929.                    not tonumber(v.DataFolder.Information.Crew.Value) ==
  4930.                    tonumber(LocalPlayer.DataFolder.Information.Crew.Value)) and
  4931.                    (not AimingSettings.TargetAim.WallCheck or
  4932.                        WallCheck(v.Character.HumanoidRootPart, LocalPlayer.Character.HumanoidRootPart))
  4933.                then
  4934.                    Target = v
  4935.                    Distance = DistanceFromPlayer
  4936.                end
  4937.            end
  4938.        end
  4939.    end
  4940.  
  4941.    return Target, Distance
  4942. end
  4943.  
  4944. function NearestMouse()
  4945.    local Target = nil
  4946.    local Distance = AimingSettings.TargetAim.FOV
  4947.    for i, v in next, Players:GetPlayers() do
  4948.        if v ~= LocalPlayer and Alive(LocalPlayer) and Alive(v) then
  4949.            local RootPosition, RootVisible = CurrentCamera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  4950.            local DistanceFromMouse =
  4951.            (Vector2.new(RootPosition.X, RootPosition.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  4952.            if RootVisible and Distance > DistanceFromMouse then
  4953.                if (not AimingSettings.TargetAim.CrewCheck or
  4954.                    v:FindFirstChild("DataFolder") and v.DataFolder.Information:FindFirstChild("Crew") and
  4955.                    not tonumber(v.DataFolder.Information.Crew.Value) ==
  4956.                    tonumber(LocalPlayer.DataFolder.Information.Crew.Value)) and
  4957.                    (not AimingSettings.TargetAim.WallCheck or
  4958.                        WallCheck(v.Character.HumanoidRootPart, LocalPlayer.Character.HumanoidRootPart))
  4959.                then
  4960.                    Target = v
  4961.                    Distance = DistanceFromMouse
  4962.                end
  4963.            end
  4964.        end
  4965.    end
  4966.  
  4967.    return Target, Distance
  4968. end
  4969.  
  4970. function NearestType(Type)
  4971.    if Type == "Distance" then
  4972.        return NearestDistance()
  4973.    elseif Type == "Mouse" then
  4974.        return NearestMouse()
  4975.    end
  4976. end
  4977.  
  4978. function ChanceTable(Table)
  4979.    local Chance = 0
  4980.    for i, v in pairs(Table) do
  4981.        Chance = Chance + v
  4982.    end
  4983.    Chance = math.random(0, Chance)
  4984.    for i, v in pairs(Table) do
  4985.        Chance = Chance - v
  4986.        if Chance <= 0 then
  4987.            return i
  4988.        end
  4989.    end
  4990. end
  4991.  
  4992. function RandomTable(Table)
  4993.    local Values = 0
  4994.    for i, v in pairs(Table) do
  4995.        Values = i
  4996.    end
  4997.  
  4998.    return Table[math.random(1, Values)]
  4999. end
  5000.  
  5001. local function getMousePosition()
  5002.    return Vector2.new(mouse.X, mouse.Y)
  5003. end
  5004.  
  5005. local mouse = game.Players.LocalPlayer:GetMouse()
  5006.  
  5007.  
  5008.  
  5009.  
  5010.  
  5011. local WorldToViewportPoint = CurrentCamera.worldToViewportPoint
  5012.  
  5013. local fov_circle = Drawing.new("Circle")
  5014. fov_circle.Thickness = 1
  5015. fov_circle.NumSides = 100
  5016. fov_circle.Radius = 180
  5017. fov_circle.Filled = false
  5018. fov_circle.Visible = false
  5019. fov_circle.ZIndex = 999
  5020. fov_circle.Transparency = AimingSettings.TargetAim.FovTransparency
  5021. fov_circle.Color = Color3.fromRGB(54, 57, 241)
  5022.  
  5023.  
  5024. local outline = Drawing.new("Circle")
  5025. outline.Thickness = 0.3
  5026. outline.NumSides = 100
  5027. outline.Radius = fov_circle.Radius
  5028. outline.Filled = false
  5029. outline.Visible = false
  5030. outline.ZIndex = 999
  5031. outline.Color = Color3.fromRGB(1, 1, 1)
  5032.  
  5033. local mouse_box = Drawing.new("Square")
  5034. mouse_box.Visible = false
  5035. mouse_box.ZIndex = 999
  5036. mouse_box.Color = Color3.fromRGB(54, 57, 241)
  5037. mouse_box.Thickness = 20
  5038. mouse_box.Size = Vector2.new(20, 20)
  5039. mouse_box.Filled = true
  5040.  
  5041. local Plr = nil
  5042.  
  5043. local pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  5044. local split = string.split(pingvalue, "(")
  5045. local ping = tonumber(split[1])
  5046.  
  5047. local mt = getrawmetatable(game)
  5048. local old = mt.__namecall
  5049. setreadonly(mt, false)
  5050. mt.__namecall = newcclosure(
  5051.    function(...) --// LPH JIT
  5052.    local args = { ... }
  5053.    if AimingSettings.TargetAim.Enabled and Plr ~= game.Players.LocalPlayer and Plr ~= nil and
  5054.        (not AimingSettings.TargetAim.UseFOV or AimingSettings.TargetAim.FOV > Pos) and
  5055.        getnamecallmethod() == "FireServer" and
  5056.        args[2] == "UpdateMousePos"
  5057.    then
  5058.        if AimingSettings.TargetAim.AirShotMode == true then
  5059.            if Plr ~= nil and Plr.Character.Humanoid.Jump == true and
  5060.                Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air
  5061.            then
  5062.                -- "RightFoot"
  5063.                args[3] = Plr.Character["RightFoot"].Position + (Plr.Character["RightFoot"].Velocity * Pred)
  5064.                return old(unpack(args))
  5065.            else
  5066.                -- "LowerTorso"
  5067.                args[3] = Plr.Character[AimingSettings.TargetAim.Hitboxes].Position +
  5068.                    (Plr.Character[AimingSettings.TargetAim.Hitboxes].Velocity * Pred)
  5069.                return old(unpack(args))
  5070.            end
  5071.        else
  5072.            args[3] = Plr.Character[AimingSettings.TargetAim.Hitboxes].Position +
  5073.                (Plr.Character[AimingSettings.TargetAim.Hitboxes].Velocity * Pred)
  5074.            return old(unpack(args))
  5075.        end
  5076.  
  5077.        --[[
  5078. args[3] =
  5079. Plr.Character[AimingSettings.TargetAim.Hitboxes].Position +
  5080. (Plr.Character[AimingSettings.TargetAim.Hitboxes].Velocity * Pred)
  5081.  
  5082. ]]
  5083.    end
  5084.  
  5085.    return old(...)
  5086. end
  5087. )
  5088.  
  5089. -- ac
  5090.  
  5091. loadstring(
  5092.    game:HttpGet(
  5093.    "https://pastebin.com/raw/UrQGK0p7"
  5094.    )
  5095. )()
  5096.  
  5097.  
  5098. local a;
  5099. a = hookfunction(wait, function(b) if b == 1.5 and MiscSettings.NoJumpCd.Enabled then return a() end return a(b) end)
  5100.  
  5101.  
  5102.  
  5103.  
  5104.  
  5105. local EspVisuals = {
  5106.  
  5107.    BoxesToggle = Sections.Visuals.MainVisuals:Toggle(
  5108.        {
  5109.        Name = "Boxes",
  5110.        Default = false,
  5111.        Pointer = "44",
  5112.        callback = function(bi)
  5113.        end
  5114.    }
  5115.    ),
  5116.  
  5117.    NameToggle = Sections.Visuals.MainVisuals:Toggle(
  5118.        {
  5119.        Name = "Names",
  5120.        Default = false,
  5121.        Pointer = "45",
  5122.        callback = function(bi)
  5123.        end
  5124.    }
  5125.    ),
  5126.    TracersToggle = Sections.Visuals.MainVisuals:Toggle(
  5127.        {
  5128.        Name = "Tracers",
  5129.        Default = false,
  5130.        Pointer = "46",
  5131.        callback = function(bi)
  5132.        end
  5133.    }
  5134.    ),
  5135.    SkelotonToggle = Sections.Visuals.MainVisuals:Toggle(
  5136.        {
  5137.        Name = "Skeletons",
  5138.        Default = false,
  5139.        Pointer = "47",
  5140.        callback = function(bi)
  5141.        end
  5142.    }
  5143.    ),
  5144.  
  5145.  
  5146.  
  5147.    DistanceTog = Sections.Visuals.MainVisuals:Toggle(
  5148.        {
  5149.        Name = "Distance",
  5150.        Default = false,
  5151.        Pointer = "48",
  5152.        callback = function(bi)
  5153.  
  5154.        end
  5155.    }
  5156.    ),
  5157.  
  5158.    HealthInfo = Sections.Visuals.MainVisuals:Toggle(
  5159.        {
  5160.        Name = "Health Info",
  5161.        Default = false,
  5162.        Pointer = "49",
  5163.        callback = function(bi)
  5164.  
  5165.        end
  5166.    }
  5167.    ),
  5168.  
  5169.    GunInfo = Sections.Visuals.MainVisuals:Toggle(
  5170.        {
  5171.        Name = "Weapon Info",
  5172.        Default = false,
  5173.        Pointer = "50",
  5174.        callback = function(bi)
  5175.        end
  5176.    }
  5177.    ),
  5178.  
  5179.  
  5180.  
  5181.  
  5182.    ChamsTog = Sections.Visuals.PlayerChams:Toggle(
  5183.        {
  5184.        Name = "Body Cham",
  5185.        Default = false,
  5186.        Pointer = "51",
  5187.        callback = function(state)
  5188.            VisualsExtra.ClientVisuals.SelfChams = state
  5189.        end
  5190.    }
  5191.    ),
  5192.  
  5193.    ChamDrop = Sections.Visuals.PlayerChams:Dropdown(
  5194.        {
  5195.        Name = "Body Material",
  5196.        Options = { "ForceField", "Glass" },
  5197.        Default = "ForceField",
  5198.        Pointer = "52",
  5199.        callback = function(state)
  5200.            VisualsExtra.ClientVisuals.SelfChamsMaterial = state
  5201.        end
  5202.    }
  5203.    ),
  5204.    GunTog = Sections.Visuals.PlayerChams:Toggle(
  5205.        {
  5206.        Name = "Gun Cham",
  5207.        Default = false,
  5208.        Pointer = "53",
  5209.        callback = function(state)
  5210.            VisualsExtra.WeaponEffects.Enabled = state
  5211.        end
  5212.    }
  5213.    ),
  5214.    GunDrop = Sections.Visuals.PlayerChams:Dropdown(
  5215.        {
  5216.        Name = "Gun Material",
  5217.        Options = { "ForceField", "Glass" },
  5218.        Default = "ForceField",
  5219.        Pointer = "54",
  5220.        callback = function(state)
  5221.            VisualsExtra.WeaponEffects.Material = state
  5222.        end
  5223.    }
  5224.    ),
  5225.  
  5226.    BulletTracersToggle = Sections.Visuals.BulletTracers:Toggle(
  5227.        {
  5228.        Name = "Enabled",
  5229.        Default = false,
  5230.        Pointer = "55",
  5231.        callback = function(bi)
  5232.            BulletTracers = bi
  5233.        end
  5234.    }
  5235.    ),
  5236.  
  5237.  
  5238.  
  5239.    MapLightingToggle = Sections.Visuals.WorldVisuals:Toggle(
  5240.        {
  5241.        Name = "Map Lighting",
  5242.        Default = false,
  5243.        Pointer = "56",
  5244.        callback = function(bi)
  5245.            VisualsExtra.WorldVisuals.MapLightingEnabled = bi
  5246.        end
  5247.    }
  5248.    ), -- add more shit soon
  5249.    MapBrightness = Sections.Visuals.WorldVisuals:Slider(
  5250.        {
  5251.        Name = "Map Brightness",
  5252.        Minimum = 0,
  5253.        Maximum = 100,
  5254.        Default = 1,
  5255.  
  5256.        Decimals = 0.1,
  5257.        Pointer = "57",
  5258.        callback = function(E)
  5259.            VisualsExtra.WorldVisuals.MapBrightness = E / 50
  5260.        end
  5261.    }
  5262.    ),
  5263.    MapContrast = Sections.Visuals.WorldVisuals:Slider(
  5264.        {
  5265.        Name = "Map Contrast",
  5266.        Minimum = 0,
  5267.        Maximum = 100,
  5268.        Default = 1,
  5269.  
  5270.        Decimals = 0.1,
  5271.        Pointer = "58",
  5272.        callback = function(E)
  5273.            VisualsExtra.WorldVisuals.MapContrast = E / 50
  5274.        end
  5275.    }
  5276.    )
  5277.  
  5278.  
  5279.  
  5280. }
  5281. EspVisuals.BulletTracersToggle:Colorpicker(
  5282.    {
  5283.    Name = "Bullet Tracers",
  5284.    Info = "Bullet Tracers",
  5285.    Alpha = 0.5,
  5286.    Default = Color3.fromRGB(255, 0, 0),
  5287.    Pointer = "59",
  5288.    callback = function(bi)
  5289.        bullet_tracer_color = bi
  5290.    end
  5291. }
  5292. )
  5293.  
  5294.  
  5295. EspVisuals.MapLightingToggle:Colorpicker(
  5296.    {
  5297.    Name = "Lighting Color",
  5298.    Info = "World Color",
  5299.    Alpha = 0.5,
  5300.    Default = Color3.fromRGB(255, 255, 255),
  5301.    Pointer = "60",
  5302.    callback = function(shit)
  5303.        VisualsExtra.WorldVisuals.MapTintColor = shit
  5304.    end
  5305. }
  5306. )
  5307.  
  5308. EspVisuals.BoxesToggle:Colorpicker(
  5309.    {
  5310.    Name = "Esp Color",
  5311.    Info = "Esp Color",
  5312.    Alpha = 0.5,
  5313.    Default = Color3.fromRGB(137, 207, 240),
  5314.    Pointer = "61",
  5315.    callback = function(shit)
  5316.        ESPColor = shit
  5317.  
  5318.    end
  5319. }
  5320. )
  5321.  
  5322.  
  5323.  
  5324. EspVisuals.ChamsTog:Colorpicker(
  5325.    {
  5326.    Name = "Self Chams Color",
  5327.    Info = "Self Chams Color",
  5328.    Alpha = 0.5,
  5329.    Default = Color3.fromRGB(133, 87, 242),
  5330.    Pointer = "62",
  5331.    callback = function(bi)
  5332.        VisualsExtra.ClientVisuals.SelfChamsColor = bi
  5333.    end
  5334. }
  5335. )
  5336.  
  5337. EspVisuals.GunTog:Colorpicker(
  5338.    {
  5339.    Name = "Gun Color",
  5340.    Info = "Gun Color",
  5341.    Alpha = 0.5,
  5342.    Default = Color3.fromRGB(255, 0, 0),
  5343.    Pointer = "63",
  5344.    callback = function(bi)
  5345.        VisualsExtra.WeaponEffects.Color = bi
  5346.    end
  5347. }
  5348. )
  5349.  
  5350.  
  5351. local watermark = library:Watermark {}
  5352.  
  5353. task.spawn(function()
  5354.    local frames = 0
  5355.  
  5356.    game:GetService "RunService".RenderStepped:Connect(function()
  5357.        frames = frames + 1
  5358.    end)
  5359.  
  5360.    watermark:Update { "specter.lua", ScriptProperties.UserPanel.Status, frames .. " FPS", string.format("%s:%s %s", tonumber(os.date("%I")), os.date("%M"), os.date("%p")) }
  5361.  
  5362.    while task.wait(1) do
  5363.        watermark:Update { "specter.lua", ScriptProperties.UserPanel.Status, frames .. " FPS", string.format("%s:%s %s", tonumber(os.date("%I")), os.date("%M"), os.date("%p")) }
  5364.        frames = 0
  5365.    end
  5366. end)
  5367.  
  5368. local currentconfig = ""
  5369. local configname = ""
  5370.  
  5371. ConfigStuff = {
  5372.  
  5373.  
  5374.    configdropdown = Sections.Configuations.Configs:Dropdown { Name = "Main", Options = Library:ListConfigs(), Callback = function(option)
  5375.        currentconfig = option
  5376.    end },
  5377.  
  5378.  
  5379.  
  5380.    Sections.Configuations.Configs:Box { Name = "", Callback = function(text)
  5381.        configname = text
  5382.    end },
  5383.  
  5384.    Sections.Configuations.Configs:Button { Name = "Save", Callback = function()
  5385.        Library:SaveConfig(configname)
  5386.        ConfigStuff.configdropdown:Refresh(Library:ListConfigs())
  5387.    end }
  5388.    ,
  5389.  
  5390.    Sections.Configuations.Configs:Button { Name = "Load", Callback = function()
  5391.        Library:LoadConfig(currentconfig)
  5392.    end },
  5393.    Sections.Configuations.Configs:Button { Name = "Delete", Callback = function()
  5394.        Library:DeleteConfig(currentconfig)
  5395.        ConfigStuff.configdropdown:Refresh(Library:ListConfigs())
  5396.    end }
  5397.  
  5398.  
  5399. }
  5400.  
  5401.  
  5402.  
  5403. SettingsSection = {
  5404.    UiToggle = Sections.Configuations.ScriptStuff:Keybind { Name = "Keybind", Default = Enum.KeyCode.RightShift, Blacklist = { Enum.UserInputType.MouseButton1 }, Flag = "CurrentBind", Callback = function(key, fromsetting)
  5405.        if not fromsetting then
  5406.            library:Toggle()
  5407.        end
  5408.    end },
  5409.  
  5410.    WaterMarkToggle = Sections.Configuations.ScriptStuff:Keybind { Name = "Watermark", Default = Enum.KeyCode.RightShift, Blacklist = { Enum.UserInputType.MouseButton1 }, Flag = "CurrentToggle", Callback = function(key, fromsetting)
  5411.        if not fromsetting then
  5412.            watermark:Toggle()
  5413.        end
  5414.    end }
  5415.  
  5416. }
  5417.  
  5418.  
  5419.  
  5420.  
  5421. Discord = {
  5422.  
  5423.  
  5424.    AutoJoin = Sections.Configuations.Discord:Toggle(
  5425.        {
  5426.        Name = "Auto Join",
  5427.        Default = false,
  5428.        Pointer = "64",
  5429.        callback = function(e)
  5430.            ConfigurationTab.Discord.AutoJoin = e
  5431.  
  5432.        end
  5433.    }
  5434.    ),
  5435.  
  5436.    DiscordCopyInv = Sections.Configuations.Discord:Button { Name = "Copy Invite", Callback = function()
  5437.        setclipboard("https://discord.gg/BaUbkH7BVr")
  5438.    end }
  5439.  
  5440. }
  5441.  
  5442.  
  5443. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  5444. -- fakelag --
  5445.  
  5446.  
  5447.  
  5448. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  5449. -- rage --
  5450.  
  5451.  
  5452. function getclosest()
  5453.  
  5454.    local mouse = game.Players.localPlayer:GetMouse()
  5455.    local x, y = mouse.X, mouse.Y
  5456.    local closestPlayer = nil
  5457.    local shortestDistance = math.huge
  5458.    for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  5459.        if v ~= lp and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
  5460.            local pos = game:GetService("Workspace").CurrentCamera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  5461.            local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(x, y)).magnitude
  5462.            if magnitude < shortestDistance and v.Character.Humanoid.Health > 0 then
  5463.                closestPlayer = v
  5464.                shortestDistance = magnitude
  5465.            end
  5466.        end
  5467.    end
  5468.    return closestPlayer
  5469. end
  5470.  
  5471. game:GetService("RunService").Stepped:Connect(
  5472.    function(a, b)
  5473.    if PlrP ~= nil and RageSettings.TargetStrafe.Enabled and Locking then
  5474.        delta = (delta + b / RageSettings.TargetStrafe.Speed) % 1
  5475.        Circle.Visible = true
  5476.        Circle.Position = PlrP.Character.HumanoidRootPart.Position
  5477.        Circle.Color = RageSettings.TargetStrafe.Color
  5478.        Circle.Radius = RageSettings.TargetStrafe.Distance
  5479.        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.Angles(0, 2 * math.pi * delta, 0) * CFrame.new(0, 0, Circle.Radius) + PlrP.Character.HumanoidRootPart.Position
  5480.  
  5481.        if RageSettings.TargetStrafe.AntiAimMode then
  5482.            if RageSettings.TargetStrafe.AntiAimType == 'Flinger' then
  5483.                game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(math.random(-500, 500), math.random(-400, 400), math.random(-1000, 1000))
  5484.                wait()
  5485.                game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(math.random(-500, 500), math.random(-400, 400), math.random(-1000, 1000))
  5486.            else
  5487.                game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(math.random(100, 6000), math.random(100, 6000), math.random(100, 6000))
  5488.                wait()
  5489.                game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(-math.random(100, 6000), -math.random(100, 6000), -math.random(100, 6000))
  5490.            end
  5491.        end
  5492.    else
  5493.        Circle.Visible = false
  5494.    end
  5495. end)
  5496. game:GetService("RunService").Stepped:Connect(
  5497.    function(a, b)
  5498.    Plr = NearestMouse()
  5499.  
  5500.    fov_circle.Filled = AimingSettings.TargetAim.FOVFilled
  5501.    fov_circle.Thickness = AimingSettings.TargetAim.FOVThickness
  5502.    fov_circle.Radius = AimingSettings.TargetAim.FOV
  5503.    outline.Radius = AimingSettings.TargetAim.FOV
  5504.    fov_circle.Visible = AimingSettings.TargetAim.ShowFOV
  5505.    outline.Visible = AimingSettings.TargetAim.ShowFOV
  5506.    fov_circle.Color = AimingSettings.TargetAim.FOVColor
  5507.    outline.Position = getMousePosition() + Vector2.new(0, 36)
  5508.    fov_circle.Position = getMousePosition() + Vector2.new(0, 36)
  5509.    fov_circle.Transparency = AimingSettings.TargetAim.FovTransparency
  5510.    mouse_box.Thickness = AimingSettings.MousePosSector.Thickness -- thickness slider
  5511.    mouse_box.Size = Vector2.new(AimingSettings.MousePosSector.Size, AimingSettings.MousePosSector.Size) -- size slider
  5512.  
  5513.    if AimingSettings.MousePosSector.Enabled and NearestMouse() ~= nil then
  5514.        mouse_box.Color = AimingSettings.MousePosSector.DOTColor -- add colorpicker
  5515.        mouse_box.Visible = ((NearestMouse() and true) or false)
  5516.        mouse_box.Position = ((NearestMouse().Character[AimingSettings.TargetAim.Hitboxes].Position and
  5517.            Vector2.new(
  5518.                WorldToViewportPoint(Camera, Plr.Character[AimingSettings.TargetAim.Hitboxes].Position).X,
  5519.                WorldToViewportPoint(Camera, NearestMouse().Character[AimingSettings.TargetAim.Hitboxes].Position).Y
  5520.            )) or
  5521.            Vector2.new(-9000, -9000))
  5522.    end
  5523.  
  5524.  
  5525.  
  5526.    if RageSettings.LegitAntiHit.Enabled then
  5527.        if RageSettings.LegitAntiHit.Enabled then
  5528.            game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame +
  5529.                -game.Players.LocalPlayer.Character.Humanoid.MoveDirection * RageSettings.LegitAntiHit.Multiplier
  5530.        end
  5531.    end
  5532.  
  5533.    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  5534.    -- auto predict to ping --
  5535.  
  5536.    pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  5537.    split = string.split(pingvalue, "(")
  5538.    ping = tonumber(split[1])
  5539.  
  5540.  
  5541.    if AimingSettings.TargetAim.PingPred1 == true then
  5542.        if ping < 130 then
  5543.            Pred = 0.151
  5544.        elseif ping < 125 then
  5545.            Pred = 0.149
  5546.        elseif ping < 110 then
  5547.            Pred = 0.146
  5548.        elseif ping < 105 then
  5549.            Pred = 0.138
  5550.        elseif ping < 90 then
  5551.            Pred = 0.136
  5552.        elseif ping < 80 then
  5553.            Pred = 0.134379
  5554.        elseif ping < 70 then
  5555.            Pred = 0.129762
  5556.        elseif ping < 60 then
  5557.            Pred = 0.1248976
  5558.        elseif ping < 50 then
  5559.            Pred = 0.1245
  5560.        elseif ping < 40 then
  5561.            Pred = 0.13232
  5562.        end
  5563.    end
  5564.  
  5565.  
  5566.  
  5567.  
  5568.  
  5569.    if RageSettings.AntiAim.Enabled == true then
  5570.        game.Players.LocalPlayer.Character.Head.CanCollide = false
  5571.        game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false
  5572.        game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false
  5573.        game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  5574.        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame *
  5575.            CFrame.new(math.random(1, 2) == 1 and 2 or -2, 0, 0)
  5576.    else
  5577.        game.Players.LocalPlayer.Character.Head.CanCollide = true
  5578.        game.Players.LocalPlayer.Character.UpperTorso.CanCollide = true
  5579.        game.Players.LocalPlayer.Character.LowerTorso.CanCollide = true
  5580.        game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = true
  5581.    end
  5582.  
  5583.    if RageSettings.AntiAim.VelocityBreaker then
  5584.        game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * RageSettings.AntiAim.VBV
  5585.        game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame *
  5586.            CFrame.Angles(0, math.rad(RageSettings.AntiAim.VBF), 0)
  5587.    end
  5588.  
  5589.    if MiscSettings.TrashTalk.Enabled == true then
  5590.        local A_1 = {
  5591.            "sonned",
  5592.            "you suck",
  5593.            "bozo",
  5594.            "l ratio "
  5595.        }
  5596.        local A_2 = "All"
  5597.        local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  5598.        Event:FireServer(A_1[math.random(7)], A_2)
  5599.    end
  5600.  
  5601.    if MiscSettings.Speed.Enabled and not MiscSettings.Fly.Enabled then
  5602.        if LocalPlayer.Character.Humanoid.MoveDirection.Magnitude > 0 then
  5603.            if MiscSettings.Speed.Motion then
  5604.                LocalPlayer.Character:TranslateBy(
  5605.                    LocalPlayer.Character.Humanoid.MoveDirection * MiscSettings.Speed.Amount / 1.5
  5606.                )
  5607.            end
  5608.            if MiscSettings.Speed.BHop and
  5609.                LocalPlayer.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall
  5610.            then
  5611.                LocalPlayer.Character.Humanoid:ChangeState("Jumping")
  5612.            end
  5613.        end
  5614.    end
  5615.  
  5616.    if MiscSettings.Fly.Enabled and
  5617.        (not MiscSettings.Fly.MoveOnly or LocalPlayer.Character.Humanoid.MoveDirection.Magnitude > 0)
  5618.    then
  5619.        if MiscSettings.Fly.Normal then
  5620.            local AngleX, AngleY, AngleZ = LocalPlayer.Character.HumanoidRootPart.CFrame:ToEulerAnglesYXZ()
  5621.            LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(
  5622.                LocalPlayer.Character.HumanoidRootPart.CFrame.X,
  5623.                MiscSettings.Fly.Height + 24,
  5624.                LocalPlayer.Character.HumanoidRootPart.CFrame.Z
  5625.            ) * CFrame.Angles(AngleX, AngleY, AngleZ)
  5626.            LocalPlayer.Character.Humanoid:ChangeState("Freefall")
  5627.            LocalPlayer.Character:TranslateBy(
  5628.                LocalPlayer.Character.Humanoid.MoveDirection * MiscSettings.Fly.Amount / 1.5
  5629.            )
  5630.        end
  5631.    end
  5632.  
  5633.    if MiscSettings.Strafe.Enabled then
  5634.        if LocalPlayer.Character.Humanoid.MoveDirection.Magnitude > 0 and
  5635.            LocalPlayer.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall
  5636.        then
  5637.            LocalPlayer.Character:TranslateBy(LocalPlayer.Character.Humanoid.MoveDirection / 3.1)
  5638.        end
  5639.    end
  5640. end
  5641. )
  5642.  
  5643. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  5644. -- map visuals --
  5645. local MapLightingJmp = Instance.new("ColorCorrectionEffect")
  5646.  
  5647. game:GetService("RunService").RenderStepped:Connect(
  5648.    function()
  5649.    if MapLightingJmp.Enabled ~= VisualsExtra.WorldVisuals.MapLightingEnabled then
  5650.        MapLightingJmp.Enabled = VisualsExtra.WorldVisuals.MapLightingEnabled
  5651.    end
  5652.  
  5653.    if MapLightingJmp.Brightness ~= VisualsExtra.WorldVisuals.MapBrightness then
  5654.        MapLightingJmp.Brightness = VisualsExtra.WorldVisuals.MapBrightness
  5655.    end
  5656.  
  5657.    if MapLightingJmp.Contrast ~= VisualsExtra.WorldVisuals.MapContrast then
  5658.        MapLightingJmp.Contrast = VisualsExtra.WorldVisuals.MapContrast
  5659.    end
  5660.  
  5661.    if MapLightingJmp.TintColor ~= VisualsExtra.WorldVisuals.MapTintColor then
  5662.        MapLightingJmp.TintColor = VisualsExtra.WorldVisuals.MapTintColor
  5663.    end
  5664.  
  5665.    if MapLightingJmp.Parent ~= game:GetService("Lighting") then
  5666.        MapLightingJmp.Parent = game:GetService("Lighting")
  5667.    end
  5668.  
  5669.    -- wsg
  5670.  
  5671.  
  5672.    if VisualsExtra.ClientVisuals.SelfChams then
  5673.        for i, v in pairs(parts) do
  5674.            game.Players.LocalPlayer.Character[v].Material = VisualsExtra.ClientVisuals.SelfChamsMaterial
  5675.            game.Players.LocalPlayer.Character[v].Color = VisualsExtra.ClientVisuals.SelfChamsColor
  5676.        end
  5677.    end
  5678.  
  5679.    if VisualsExtra.ClientVisuals.SelfChams == false then
  5680.        for i, v in pairs(parts) do
  5681.            game.Players.LocalPlayer.Character[v].Material = VisualsExtra.ClientVisuals.BaseSkin
  5682.        end
  5683.    end
  5684.  
  5685.    local tool = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool")
  5686.    if tool and tool:FindFirstChild 'Default' then
  5687.  
  5688.        if VisualsExtra.WeaponEffects.Enabled == true then
  5689.            Game.GetService(game, "Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Default.Material = VisualsExtra.WeaponEffects.Material
  5690.            Game.GetService(game, "Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Default.Color = VisualsExtra.WeaponEffects.Color
  5691.        else
  5692.            if tool and tool:FindFirstChild 'Default' then
  5693.                if VisualsExtra.WeaponEffects.Enabled == false then
  5694.                    Game.GetService(game, "Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Default.Material = Enum.Material.Glass
  5695.                end
  5696.            end
  5697.        end
  5698.    end
  5699. end
  5700.  
  5701. )
  5702. ---------------------------------------------------------------------------------------------------------------------------------------------
  5703.  
  5704. -- no slowdown  --
  5705.  
  5706.  
  5707.  
  5708. -- Bullet Tracers
  5709. bullet_tracer_color = Color3.fromRGB(255, 255, 255)
  5710. function GetGun()
  5711.    if game.Players.LocalPlayer.Character then
  5712.        for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  5713.            if v:FindFirstChild 'Ammo' then
  5714.                return v
  5715.            end
  5716.        end
  5717.    end
  5718.    return nil
  5719. end
  5720.  
  5721. BulletTracers = false
  5722. local Services = {
  5723.    Players = game:GetService("Players"),
  5724.    UserInputService = game:GetService("UserInputService"),
  5725.    RunService = game:GetService("RunService"),
  5726. }
  5727.  
  5728. local Local = {
  5729.    Player = Services.Players.LocalPlayer,
  5730.    Mouse = Services.Players.LocalPlayer:GetMouse(),
  5731. }
  5732. local Other = {
  5733.    Camera = workspace.CurrentCamera,
  5734.    BeamPart = Instance.new("Part", workspace)
  5735. }
  5736.  
  5737. Other.BeamPart.Name = "BeamPart"
  5738. Other.BeamPart.Transparency = 1
  5739. local Settings = {
  5740.    StartColor = MainAccentColor,
  5741.    EndColor = MainAccentColor,
  5742.    StartWidth = 3,
  5743.    EndWidth = 3,
  5744.    ShowImpactPoint = false,
  5745.    ImpactTransparency = 0.5,
  5746.    ImpactColor = Color3.new(1, 1, 1),
  5747.    Time = 1,
  5748. }
  5749. game:GetService "RunService".Heartbeat:Connect(function()
  5750.  
  5751. end)
  5752. local funcs = {}
  5753. Local.Mouse.TargetFilter = Other.BeamPart
  5754. function funcs:Beam(v1, v2)
  5755.    v2 = Vector3.new(v2.X - 0.1, v2.Y + 0.2, v2.Z)
  5756.    local colorSequence = ColorSequence.new({
  5757.        ColorSequenceKeypoint.new(0, bullet_tracer_color),
  5758.        ColorSequenceKeypoint.new(1, bullet_tracer_color),
  5759.    })
  5760.    local Part = Instance.new("Part", Other.BeamPart)
  5761.    Part.Size = Vector3.new(0, 0, 0)
  5762.    Part.Massless = true
  5763.    Part.Transparency = 1
  5764.    Part.CanCollide = false
  5765.    Part.Position = v1
  5766.    Part.Anchored = true
  5767.    local Attachment = Instance.new("Attachment", Part)
  5768.    local Part2 = Instance.new("Part", Other.BeamPart)
  5769.    Part2.Size = Vector3.new(0, 0, 0)
  5770.    Part2.Transparency = 0
  5771.    Part2.CanCollide = false
  5772.    Part2.Position = v2
  5773.    Part2.Anchored = true
  5774.    Part2.Material = Enum.Material.ForceField
  5775.    Part2.Color = Settings.ImpactColor
  5776.    Part2.Massless = true
  5777.    local Attachment2 = Instance.new("Attachment", Part2)
  5778.    local Beam = Instance.new("Beam", Part)
  5779.    Beam.FaceCamera = true
  5780.    Beam.Color = colorSequence
  5781.    Beam.Attachment0 = Attachment
  5782.    Beam.Attachment1 = Attachment2
  5783.    Beam.LightEmission = 6
  5784.    Beam.LightInfluence = 1
  5785.    Beam.Width0 = Settings.StartWidth
  5786.    Beam.Width1 = Settings.EndWidth
  5787.    Beam.Texture = "http://www.roblox.com/asset/?id=9150663556"
  5788.    Beam.TextureSpeed = 2
  5789.    Beam.TextureLength = 1
  5790.    delay(Settings.Time, function()
  5791.        Part:Destroy()
  5792.        Part2:Destroy()
  5793.    end)
  5794. end
  5795.  
  5796. spawn(function()
  5797.    while task.wait(0.5) do
  5798.        gun = GetGun()
  5799.        if gun then
  5800.            LastAmmo = gun.Ammo.Value
  5801.            gun.Ammo:GetPropertyChangedSignal("Value"):Connect(function()
  5802.                if BulletTracers and gun.Ammo.Value < LastAmmo then
  5803.                    LastAmmo = gun.Ammo.Value
  5804.                    funcs:Beam(gun.Handle.Position, Local.Mouse.hit.p)
  5805.                end
  5806.            end)
  5807.        end
  5808.    end
  5809. end)
  5810.  
  5811.  
  5812.  
  5813. Library:ChangeAccent(Color3.fromRGB(133, 87, 242))
  5814. Library:ChangeOutline { Color3.fromRGB(121, 66, 254), Color3.fromRGB(223, 57, 137) }
  5815.  
  5816. Library:Initialize()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement