AaronSo0908

xd

Jun 24th, 2022 (edited)
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 283.92 KB | None | 0 0
  1. version = "1.1.2b"
  2.  
  3. if not getgenv().Start then
  4.     getgenv().Start = tick()
  5. end
  6.  
  7. local AkaliNotif = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/Dynissimo/main/Scripts/AkaliNotif.lua"))();
  8. local Notify = AkaliNotif.Notify;
  9.  
  10. local assets = {
  11.     6183930112,
  12.     6071575925,
  13.     6071579801,
  14.     6073763717,
  15.     3570695787,
  16.     5941353943,
  17.     4155801252,
  18.     2454009026,
  19.     5553946656,
  20.     4155801252,
  21.     4918373417,
  22.     3570695787,
  23.     2592362371
  24. }
  25. local cprovider = Game:GetService"ContentProvider"
  26. for _, v in next, assets do
  27.     cprovider:Preload("rbxassetid://" .. v)
  28. end
  29.  
  30. repeat
  31.     wait()
  32. until game:IsLoaded()
  33.  
  34. -- if you're just looking to get the library for whatever reason, just copy everything from below till you see LIBRARY END
  35.  
  36. --LIBRARY START
  37. --Services
  38. getgenv().runService = game:GetService"RunService"
  39. getgenv().textService = game:GetService"TextService"
  40. getgenv().inputService = game:GetService"UserInputService"
  41. getgenv().tweenService = game:GetService"TweenService"
  42.  
  43. if getgenv().library then
  44.     getgenv().library:Unload()
  45. end
  46.  
  47. local library = {
  48.     design = getgenv().design == "kali" and "kali" or "OutliersHub",
  49.     tabs = {},
  50.     draggable = true,
  51.     flags = {},
  52.     title = "Hacky Criminality |" .. " " .. version,
  53.     open = false,
  54.     mousestate = inputService.MouseIconEnabled,
  55.     popup = nil,
  56.     instances = {},
  57.     connections = {},
  58.     options = {},
  59.     notifications = {},
  60.     tabSize = 0,
  61.     theme = {},
  62.     foldername = "Hacky_Criminality",
  63.     fileext = ".json"
  64. }
  65. getgenv().library = library
  66.  
  67. --Locals
  68. local dragging, dragInput, dragStart, startPos, dragObject
  69.  
  70. local blacklistedKeys = { --add or remove keys if you find the need to
  71.     Enum.KeyCode.Unknown,
  72.     Enum.KeyCode.W,
  73.     Enum.KeyCode.A,
  74.     Enum.KeyCode.S,
  75.     Enum.KeyCode.D,
  76.     Enum.KeyCode.Slash,
  77.     Enum.KeyCode.Tab,
  78.     Enum.KeyCode.Escape
  79. }
  80. local whitelistedMouseinputs = { --add or remove mouse inputs if you find the need to
  81.     Enum.UserInputType.MouseButton1,
  82.     Enum.UserInputType.MouseButton2,
  83.     Enum.UserInputType.MouseButton3
  84. }
  85.  
  86. --Functions
  87. library.round = function(num, bracket)
  88.     if typeof(num) == "Vector2" then
  89.         return Vector2.new(library.round(num.X), library.round(num.Y))
  90.     elseif typeof(num) == "Vector3" then
  91.         return Vector3.new(library.round(num.X), library.round(num.Y), library.round(num.Z))
  92.     elseif typeof(num) == "Color3" then
  93.         return library.round(num.r * 255), library.round(num.g * 255), library.round(num.b * 255)
  94.     else
  95.         return num - num % (bracket or 1);
  96.     end
  97. end
  98.  
  99. --From: https://devforum.roblox.com/t/how-to-create-a-simple-rainbow-effect-using-tweenService/221849/2
  100. local chromaColor
  101. spawn(function()
  102.     while library and wait() do
  103.         chromaColor = Color3.fromHSV(tick() % 6 / 6, 1, 1)
  104.     end
  105. end)
  106.  
  107. function library:Create(class, properties)
  108.     properties = properties or {}
  109.     if not class then
  110.         return
  111.     end
  112.     local a = class == "Square" or class == "Line" or class == "Text" or class == "Quad" or class == "Circle" or class == "Triangle"
  113.     local t = a and Drawing or Instance
  114.     local inst = t.new(class)
  115.     for property, value in next, properties do
  116.         inst[property] = value
  117.     end
  118.     table.insert(self.instances, {
  119.         object = inst,
  120.         method = a
  121.     })
  122.     return inst
  123. end
  124.  
  125. function library:AddConnection(connection, name, callback)
  126.     callback = type(name) == "function" and name or callback
  127.     connection = connection:connect(callback)
  128.     if name ~= callback then
  129.         self.connections[name] = connection
  130.     else
  131.         table.insert(self.connections, connection)
  132.     end
  133.     return connection
  134. end
  135.  
  136. function library:Unload()
  137.     inputService.MouseIconEnabled = self.mousestate
  138.     for _, c in next, self.connections do
  139.         c:Disconnect()
  140.     end
  141.     for _, i in next, self.instances do
  142.         if i.method then
  143.             pcall(function()
  144.                 i.object:Remove()
  145.             end)
  146.         else
  147.             i.object:Destroy()
  148.         end
  149.     end
  150.     for _, o in next, self.options do
  151.         if o.type == "toggle" then
  152.             coroutine.resume(coroutine.create(o.SetState, o))
  153.         end
  154.     end
  155.     library = nil
  156.     getgenv().library = nil
  157. end
  158.  
  159. function library:LoadConfig(config)
  160.     if table.find(self:GetConfigs(), config) then
  161.         local Read, Config = pcall(function()
  162.             return game:GetService"HttpService":JSONDecode(readfile(self.foldername .. "/" .. config .. self.fileext))
  163.         end)
  164.         Config = Read and Config or {}
  165.         for _, option in next, self.options do
  166.             if option.hasInit then
  167.                 if option.type ~= "button" and option.flag and not option.skipflag then
  168.                     if option.type == "toggle" then
  169.                         spawn(function()
  170.                             option:SetState(Config[option.flag] == 1)
  171.                         end)
  172.                     elseif option.type == "color" then
  173.                         if Config[option.flag] then
  174.                             spawn(function()
  175.                                 option:SetColor(Config[option.flag])
  176.                             end)
  177.                             if option.trans then
  178.                                 spawn(function()
  179.                                     option:SetTrans(Config[option.flag .. " Transparency"])
  180.                                 end)
  181.                             end
  182.                         end
  183.                     elseif option.type == "bind" then
  184.                         spawn(function()
  185.                             option:SetKey(Config[option.flag])
  186.                         end)
  187.                     else
  188.                         spawn(function()
  189.                             option:SetValue(Config[option.flag])
  190.                         end)
  191.                     end
  192.                 end
  193.             end
  194.         end
  195.     end
  196. end
  197.  
  198. function library:SaveConfig(config)
  199.     local Config = {}
  200.     if table.find(self:GetConfigs(), config) then
  201.         Config = game:GetService"HttpService":JSONDecode(readfile(self.foldername .. "/" .. config .. self.fileext))
  202.     end
  203.     for _, option in next, self.options do
  204.         if option.type ~= "button" and option.flag and not option.skipflag then
  205.             if option.type == "toggle" then
  206.                 Config[option.flag] = option.state and 1 or 0
  207.             elseif option.type == "color" then
  208.                 Config[option.flag] = {
  209.                     option.color.r,
  210.                     option.color.g,
  211.                     option.color.b
  212.                 }
  213.                 if option.trans then
  214.                     Config[option.flag .. " Transparency"] = option.trans
  215.                 end
  216.             elseif option.type == "bind" then
  217.                 if option.key ~= "none" then
  218.                     Config[option.flag] = option.key
  219.                 end
  220.             elseif option.type == "list" then
  221.                 Config[option.flag] = option.value
  222.             else
  223.                 Config[option.flag] = option.value
  224.             end
  225.         end
  226.     end
  227.     writefile(self.foldername .. "/" .. config .. self.fileext, game:GetService"HttpService":JSONEncode(Config))
  228. end
  229.  
  230. function library:GetConfigs()
  231.     if not isfolder(self.foldername) then
  232.         makefolder(self.foldername)
  233.         return {}
  234.     end
  235.     local files = {}
  236.     local a = 0
  237.     for i, v in next, listfiles(self.foldername) do
  238.         if v:sub(# v - # self.fileext + 1, # v) == self.fileext then
  239.             a = a + 1
  240.             v = v:gsub(self.foldername .. "\\", "")
  241.             v = v:gsub(self.fileext, "")
  242.             table.insert(files, a, v)
  243.         end
  244.     end
  245.     return files
  246. end
  247.  
  248. library.createLabel = function(option, parent)
  249.     option.main = library:Create("TextLabel", {
  250.         LayoutOrder = option.position,
  251.         Position = UDim2.new(0, 6, 0, 0),
  252.         Size = UDim2.new(1, - 12, 0, 24),
  253.         BackgroundTransparency = 1,
  254.         TextSize = 15,
  255.         Font = Enum.Font.Code,
  256.         TextColor3 = Color3.new(1, 1, 1),
  257.         TextXAlignment = Enum.TextXAlignment.Left,
  258.         TextYAlignment = Enum.TextYAlignment.Top,
  259.         TextWrapped = true,
  260.         Parent = parent
  261.     })
  262.  
  263.     setmetatable(option, {
  264.         __newindex = function(t, i, v)
  265.             if i == "Text" then
  266.                 option.main.Text = tostring(v)
  267.                 option.main.Size = UDim2.new(1, - 12, 0, textService:GetTextSize(option.main.Text, 15, Enum.Font.Code, Vector2.new(option.main.AbsoluteSize.X, 9e9)).Y + 6)
  268.             end
  269.         end
  270.     })
  271.     option.Text = option.text
  272. end
  273.  
  274. library.createDivider = function(option, parent)
  275.     option.main = library:Create("Frame", {
  276.         LayoutOrder = option.position,
  277.         Size = UDim2.new(1, 0, 0, 18),
  278.         BackgroundTransparency = 1,
  279.         Parent = parent
  280.     })
  281.  
  282.     library:Create("Frame", {
  283.         AnchorPoint = Vector2.new(0.5, 0.5),
  284.         Position = UDim2.new(0.5, 0, 0.5, 0),
  285.         Size = UDim2.new(1, - 24, 0, 1),
  286.         BackgroundColor3 = Color3.fromRGB(60, 60, 60),
  287.         BorderColor3 = Color3.new(),
  288.         Parent = option.main
  289.     })
  290.  
  291.     option.title = library:Create("TextLabel", {
  292.         AnchorPoint = Vector2.new(0.5, 0.5),
  293.         Position = UDim2.new(0.5, 0, 0.5, 0),
  294.         BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  295.         BorderSizePixel = 0,
  296.         TextColor3 = Color3.new(1, 1, 1),
  297.         TextSize = 15,
  298.         Font = Enum.Font.Code,
  299.         TextXAlignment = Enum.TextXAlignment.Center,
  300.         Parent = option.main
  301.     })
  302.  
  303.     setmetatable(option, {
  304.         __newindex = function(t, i, v)
  305.             if i == "Text" then
  306.                 if v then
  307.                     option.title.Text = tostring(v)
  308.                     option.title.Size = UDim2.new(0, textService:GetTextSize(option.title.Text, 15, Enum.Font.Code, Vector2.new(9e9, 9e9)).X + 12, 0, 20)
  309.                     option.main.Size = UDim2.new(1, 0, 0, 18)
  310.                 else
  311.                     option.title.Text = ""
  312.                     option.title.Size = UDim2.new()
  313.                     option.main.Size = UDim2.new(1, 0, 0, 6)
  314.                 end
  315.             end
  316.         end
  317.     })
  318.     option.Text = option.text
  319. end
  320.  
  321. library.createToggle = function(option, parent)
  322.     option.hasInit = true
  323.  
  324.     option.main = library:Create("Frame", {
  325.         LayoutOrder = option.position,
  326.         Size = UDim2.new(1, 0, 0, 20),
  327.         BackgroundTransparency = 1,
  328.         Parent = parent
  329.     })
  330.  
  331.     local tickbox
  332.     local tickboxOverlay
  333.     if option.style then
  334.         tickbox = library:Create("ImageLabel", {
  335.             Position = UDim2.new(0, 6, 0, 4),
  336.             Size = UDim2.new(0, 12, 0, 12),
  337.             BackgroundTransparency = 1,
  338.             Image = "rbxassetid://3570695787",
  339.             ImageColor3 = Color3.new(),
  340.             Parent = option.main
  341.         })
  342.  
  343.         library:Create("ImageLabel", {
  344.             AnchorPoint = Vector2.new(0.5, 0.5),
  345.             Position = UDim2.new(0.5, 0, 0.5, 0),
  346.             Size = UDim2.new(1, - 2, 1, - 2),
  347.             BackgroundTransparency = 1,
  348.             Image = "rbxassetid://3570695787",
  349.             ImageColor3 = Color3.fromRGB(60, 60, 60),
  350.             Parent = tickbox
  351.         })
  352.  
  353.         library:Create("ImageLabel", {
  354.             AnchorPoint = Vector2.new(0.5, 0.5),
  355.             Position = UDim2.new(0.5, 0, 0.5, 0),
  356.             Size = UDim2.new(1, - 6, 1, - 6),
  357.             BackgroundTransparency = 1,
  358.             Image = "rbxassetid://3570695787",
  359.             ImageColor3 = Color3.fromRGB(40, 40, 40),
  360.             Parent = tickbox
  361.         })
  362.  
  363.         tickboxOverlay = library:Create("ImageLabel", {
  364.             AnchorPoint = Vector2.new(0.5, 0.5),
  365.             Position = UDim2.new(0.5, 0, 0.5, 0),
  366.             Size = UDim2.new(1, - 6, 1, - 6),
  367.             BackgroundTransparency = 1,
  368.             Image = "rbxassetid://3570695787",
  369.             ImageColor3 = library.flags["Menu Accent Color"],
  370.             Visible = option.state,
  371.             Parent = tickbox
  372.         })
  373.  
  374.         library:Create("ImageLabel", {
  375.             AnchorPoint = Vector2.new(0.5, 0.5),
  376.             Position = UDim2.new(0.5, 0, 0.5, 0),
  377.             Size = UDim2.new(1, 0, 1, 0),
  378.             BackgroundTransparency = 1,
  379.             Image = "rbxassetid://5941353943",
  380.             ImageTransparency = 0.6,
  381.             Parent = tickbox
  382.         })
  383.  
  384.         table.insert(library.theme, tickboxOverlay)
  385.     else
  386.         tickbox = library:Create("Frame", {
  387.             Position = UDim2.new(0, 6, 0, 4),
  388.             Size = UDim2.new(0, 12, 0, 12),
  389.             BackgroundColor3 = library.flags["Menu Accent Color"],
  390.             BorderColor3 = Color3.new(),
  391.             Parent = option.main
  392.         })
  393.  
  394.         tickboxOverlay = library:Create("ImageLabel", {
  395.             Size = UDim2.new(1, 0, 1, 0),
  396.             BackgroundTransparency = option.state and 1 or 0,
  397.             BackgroundColor3 = Color3.fromRGB(50, 50, 50),
  398.             BorderColor3 = Color3.new(),
  399.             Image = "rbxassetid://4155801252",
  400.             ImageTransparency = 0.6,
  401.             ImageColor3 = Color3.new(),
  402.             Parent = tickbox
  403.         })
  404.  
  405.         library:Create("ImageLabel", {
  406.             Size = UDim2.new(1, 0, 1, 0),
  407.             BackgroundTransparency = 1,
  408.             Image = "rbxassetid://2592362371",
  409.             ImageColor3 = Color3.fromRGB(60, 60, 60),
  410.             ScaleType = Enum.ScaleType.Slice,
  411.             SliceCenter = Rect.new(2, 2, 62, 62),
  412.             Parent = tickbox
  413.         })
  414.  
  415.         library:Create("ImageLabel", {
  416.             Size = UDim2.new(1, - 2, 1, - 2),
  417.             Position = UDim2.new(0, 1, 0, 1),
  418.             BackgroundTransparency = 1,
  419.             Image = "rbxassetid://2592362371",
  420.             ImageColor3 = Color3.new(),
  421.             ScaleType = Enum.ScaleType.Slice,
  422.             SliceCenter = Rect.new(2, 2, 62, 62),
  423.             Parent = tickbox
  424.         })
  425.  
  426.         table.insert(library.theme, tickbox)
  427.     end
  428.  
  429.     option.interest = library:Create("Frame", {
  430.         Position = UDim2.new(0, 0, 0, 0),
  431.         Size = UDim2.new(1, 0, 0, 20),
  432.         BackgroundTransparency = 1,
  433.         Parent = option.main
  434.     })
  435.  
  436.     option.title = library:Create("TextLabel", {
  437.         Position = UDim2.new(0, 24, 0, 0),
  438.         Size = UDim2.new(1, 0, 1, 0),
  439.         BackgroundTransparency = 1,
  440.         Text = option.text,
  441.         TextColor3 = option.state and Color3.fromRGB(210, 210, 210) or Color3.fromRGB(180, 180, 180),
  442.         TextSize = 15,
  443.         Font = Enum.Font.Code,
  444.         TextXAlignment = Enum.TextXAlignment.Left,
  445.         Parent = option.interest
  446.     })
  447.  
  448.     option.interest.InputBegan:connect(function(input)
  449.         if input.UserInputType.Name == "MouseButton1" then
  450.             option:SetState(not option.state)
  451.         end
  452.         if input.UserInputType.Name == "MouseMovement" then
  453.             if not library.warning and not library.slider then
  454.                 if option.style then
  455.                     tickbox.ImageColor3 = library.flags["Menu Accent Color"]
  456.                     --tweenService:Create(tickbox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageColor3 = library.flags["Menu Accent Color"]}):Play()
  457.                 else
  458.                     tickbox.BorderColor3 = library.flags["Menu Accent Color"]
  459.                     tickboxOverlay.BorderColor3 = library.flags["Menu Accent Color"]
  460.                     --tweenService:Create(tickbox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BorderColor3 = library.flags["Menu Accent Color"]}):Play()
  461.                     --tweenService:Create(tickboxOverlay, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BorderColor3 = library.flags["Menu Accent Color"]}):Play()
  462.                 end
  463.             end
  464.             if option.tip then
  465.                 library.tooltip.Text = option.tip
  466.                 library.tooltip.Size = UDim2.new(0, textService:GetTextSize(option.tip, 15, Enum.Font.Code, Vector2.new(9e9, 9e9)).X, 0, 20)
  467.             end
  468.         end
  469.     end)
  470.  
  471.     option.interest.InputChanged:connect(function(input)
  472.         if input.UserInputType.Name == "MouseMovement" then
  473.             if option.tip then
  474.                 library.tooltip.Position = UDim2.new(0, input.Position.X + 26, 0, input.Position.Y + 36)
  475.             end
  476.         end
  477.     end)
  478.  
  479.     option.interest.InputEnded:connect(function(input)
  480.         if input.UserInputType.Name == "MouseMovement" then
  481.             if option.style then
  482.                 tickbox.ImageColor3 = Color3.new()
  483.                 --tweenService:Create(tickbox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {ImageColor3 = Color3.new()}):Play()
  484.             else
  485.                 tickbox.BorderColor3 = Color3.new()
  486.                 tickboxOverlay.BorderColor3 = Color3.new()
  487.                 --tweenService:Create(tickbox, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BorderColor3 = Color3.new()}):Play()
  488.                 --tweenService:Create(tickboxOverlay, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BorderColor3 = Color3.new()}):Play()
  489.             end
  490.             library.tooltip.Position = UDim2.new(2)
  491.         end
  492.     end)
  493.  
  494.     function option:SetState(state, nocallback)
  495.         state = typeof(state) == "boolean" and state
  496.         state = state or false
  497.         library.flags[self.flag] = state
  498.         self.state = state
  499.         option.title.TextColor3 = state and Color3.fromRGB(210, 210, 210) or Color3.fromRGB(160, 160, 160)
  500.         if option.style then
  501.             tickboxOverlay.Visible = state
  502.         else
  503.             tickboxOverlay.BackgroundTransparency = state and 1 or 0
  504.         end
  505.         if not nocallback then
  506.             self.callback(state)
  507.         end
  508.     end
  509.  
  510.     if option.state ~= nil then
  511.         delay(1, function()
  512.             if library then
  513.                 option.callback(option.state)
  514.             end
  515.         end)
  516.     end
  517.  
  518.     setmetatable(option, {
  519.         __newindex = function(t, i, v)
  520.             if i == "Text" then
  521.                 option.title.Text = tostring(v)
  522.             end
  523.         end
  524.     })
  525. end
  526.  
  527. library.createButton = function(option, parent)
  528.     option.hasInit = true
  529.  
  530.     option.main = library:Create("Frame", {
  531.         LayoutOrder = option.position,
  532.         Size = UDim2.new(1, 0, 0, 28),
  533.         BackgroundTransparency = 1,
  534.         Parent = parent
  535.     })
  536.  
  537.     option.title = library:Create("TextLabel", {
  538.         AnchorPoint = Vector2.new(0.5, 1),
  539.         Position = UDim2.new(0.5, 0, 1, - 5),
  540.         Size = UDim2.new(1, - 12, 0, 20),
  541.         BackgroundColor3 = Color3.fromRGB(50, 50, 50),
  542.         BorderColor3 = Color3.new(),
  543.         Text = option.text,
  544.         TextColor3 = Color3.new(1, 1, 1),
  545.         TextSize = 15,
  546.         Font = Enum.Font.Code,
  547.         Parent = option.main
  548.     })
  549.  
  550.     library:Create("ImageLabel", {
  551.         Size = UDim2.new(1, 0, 1, 0),
  552.         BackgroundTransparency = 1,
  553.         Image = "rbxassetid://2592362371",
  554.         ImageColor3 = Color3.fromRGB(60, 60, 60),
  555.         ScaleType = Enum.ScaleType.Slice,
  556.         SliceCenter = Rect.new(2, 2, 62, 62),
  557.         Parent = option.title
  558.     })
  559.  
  560.     library:Create("ImageLabel", {
  561.         Size = UDim2.new(1, - 2, 1, - 2),
  562.         Position = UDim2.new(0, 1, 0, 1),
  563.         BackgroundTransparency = 1,
  564.         Image = "rbxassetid://2592362371",
  565.         ImageColor3 = Color3.new(),
  566.         ScaleType = Enum.ScaleType.Slice,
  567.         SliceCenter = Rect.new(2, 2, 62, 62),
  568.         Parent = option.title
  569.     })
  570.  
  571.     library:Create("UIGradient", {
  572.         Color = ColorSequence.new({
  573.             ColorSequenceKeypoint.new(0, Color3.fromRGB(180, 180, 180)),
  574.             ColorSequenceKeypoint.new(1, Color3.fromRGB(253, 253, 253)),
  575.         }),
  576.         Rotation = - 90,
  577.         Parent = option.title
  578.     })
  579.  
  580.     option.title.InputBegan:connect(function(input)
  581.         if input.UserInputType.Name == "MouseButton1" then
  582.             option.callback()
  583.             if library then
  584.                 library.flags[option.flag] = true
  585.             end
  586.             if option.tip then
  587.                 library.tooltip.Text = option.tip
  588.                 library.tooltip.Size = UDim2.new(0, textService:GetTextSize(option.tip, 15, Enum.Font.Code, Vector2.new(9e9, 9e9)).X, 0, 20)
  589.             end
  590.         end
  591.         if input.UserInputType.Name == "MouseMovement" then
  592.             if not library.warning and not library.slider then
  593.                 option.title.BorderColor3 = library.flags["Menu Accent Color"]
  594.             end
  595.         end
  596.     end)
  597.  
  598.     option.title.InputChanged:connect(function(input)
  599.         if input.UserInputType.Name == "MouseMovement" then
  600.             if option.tip then
  601.                 library.tooltip.Position = UDim2.new(0, input.Position.X + 26, 0, input.Position.Y + 36)
  602.             end
  603.         end
  604.     end)
  605.  
  606.     option.title.InputEnded:connect(function(input)
  607.         if input.UserInputType.Name == "MouseMovement" then
  608.             option.title.BorderColor3 = Color3.new()
  609.             library.tooltip.Position = UDim2.new(2)
  610.         end
  611.     end)
  612. end
  613.  
  614. library.createBind = function(option, parent)
  615.     option.hasInit = true
  616.  
  617.     local binding
  618.     local holding
  619.     local Loop
  620.  
  621.     if option.sub then
  622.         option.main = option:getMain()
  623.     else
  624.         option.main = option.main or library:Create("Frame", {
  625.             LayoutOrder = option.position,
  626.             Size = UDim2.new(1, 0, 0, 20),
  627.             BackgroundTransparency = 1,
  628.             Parent = parent
  629.         })
  630.  
  631.         library:Create("TextLabel", {
  632.             Position = UDim2.new(0, 6, 0, 0),
  633.             Size = UDim2.new(1, - 12, 1, 0),
  634.             BackgroundTransparency = 1,
  635.             Text = option.text,
  636.             TextSize = 15,
  637.             Font = Enum.Font.Code,
  638.             TextColor3 = Color3.fromRGB(210, 210, 210),
  639.             TextXAlignment = Enum.TextXAlignment.Left,
  640.             Parent = option.main
  641.         })
  642.     end
  643.  
  644.     local bindinput = library:Create(option.sub and "TextButton" or "TextLabel", {
  645.         Position = UDim2.new(1, - 6 - (option.subpos or 0), 0, option.sub and 2 or 3),
  646.         SizeConstraint = Enum.SizeConstraint.RelativeYY,
  647.         BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  648.         BorderSizePixel = 0,
  649.         TextSize = 15,
  650.         Font = Enum.Font.Code,
  651.         TextColor3 = Color3.fromRGB(160, 160, 160),
  652.         TextXAlignment = Enum.TextXAlignment.Right,
  653.         Parent = option.main
  654.     })
  655.  
  656.     if option.sub then
  657.         bindinput.AutoButtonColor = false
  658.     end
  659.  
  660.     local interest = option.sub and bindinput or option.main
  661.     local inContact
  662.     interest.InputEnded:connect(function(input)
  663.         if input.UserInputType.Name == "MouseButton1" then
  664.             binding = true
  665.             bindinput.Text = "[...]"
  666.             bindinput.Size = UDim2.new(0, - textService:GetTextSize(bindinput.Text, 16, Enum.Font.Code, Vector2.new(9e9, 9e9)).X, 0, 16)
  667.             bindinput.TextColor3 = library.flags["Menu Accent Color"]
  668.         end
  669.     end)
  670.  
  671.     library:AddConnection(inputService.InputBegan, function(input)
  672.         if inputService:GetFocusedTextBox() then
  673.             return
  674.         end
  675.         if binding then
  676.             local key = (table.find(whitelistedMouseinputs, input.UserInputType) and not option.nomouse) and input.UserInputType
  677.             option:SetKey(key or (not table.find(blacklistedKeys, input.KeyCode)) and input.KeyCode)
  678.         else
  679.             if (input.KeyCode.Name == option.key or input.UserInputType.Name == option.key) and not binding then
  680.                 if option.mode == "toggle" then
  681.                     library.flags[option.flag] = not library.flags[option.flag]
  682.                     option.callback(library.flags[option.flag], 0)
  683.                 else
  684.                     library.flags[option.flag] = true
  685.                     if Loop then
  686.                         Loop:Disconnect()
  687.                         option.callback(true, 0)
  688.                     end
  689.                     Loop = library:AddConnection(runService.RenderStepped, function(step)
  690.                         if not inputService:GetFocusedTextBox() then
  691.                             option.callback(nil, step)
  692.                         end
  693.                     end)
  694.                 end
  695.             end
  696.         end
  697.     end)
  698.  
  699.     library:AddConnection(inputService.InputEnded, function(input)
  700.         if option.key ~= "none" then
  701.             if input.KeyCode.Name == option.key or input.UserInputType.Name == option.key then
  702.                 if Loop then
  703.                     Loop:Disconnect()
  704.                     library.flags[option.flag] = false
  705.                     option.callback(true, 0)
  706.                 end
  707.             end
  708.         end
  709.     end)
  710.  
  711.     function option:SetKey(key)
  712.         binding = false
  713.         bindinput.TextColor3 = Color3.fromRGB(160, 160, 160)
  714.         if Loop then
  715.             Loop:Disconnect()
  716.             library.flags[option.flag] = false
  717.             option.callback(true, 0)
  718.         end
  719.         self.key = (key and key.Name) or key or self.key
  720.         if self.key == "Backspace" then
  721.             self.key = "none"
  722.             bindinput.Text = "[NONE]"
  723.         else
  724.             local a = self.key
  725.             if self.key:match"Mouse" then
  726.                 a = self.key:gsub("Button", ""):gsub("Mouse", "M")
  727.             elseif self.key:match"Shift" or self.key:match"Alt" or self.key:match"Control" then
  728.                 a = self.key:gsub("Left", "L"):gsub("Right", "R")
  729.             end
  730.             bindinput.Text = "[" .. a:gsub("Control", "CTRL"):upper() .. "]"
  731.         end
  732.         bindinput.Size = UDim2.new(0, - textService:GetTextSize(bindinput.Text, 16, Enum.Font.Code, Vector2.new(9e9, 9e9)).X, 0, 16)
  733.     end
  734.     option:SetKey()
  735. end
  736.  
  737. library.createSlider = function(option, parent)
  738.     option.hasInit = true
  739.  
  740.     if option.sub then
  741.         option.main = option:getMain()
  742.         option.main.Size = UDim2.new(1, 0, 0, 42)
  743.     else
  744.         option.main = library:Create("Frame", {
  745.             LayoutOrder = option.position,
  746.             Size = UDim2.new(1, 0, 0, option.textpos and 24 or 40),
  747.             BackgroundTransparency = 1,
  748.             Parent = parent
  749.         })
  750.     end
  751.  
  752.     option.slider = library:Create("Frame", {
  753.         Position = UDim2.new(0, 6, 0, (option.sub and 22 or option.textpos and 4 or 20)),
  754.         Size = UDim2.new(1, - 12, 0, 16),
  755.         BackgroundColor3 = Color3.fromRGB(50, 50, 50),
  756.         BorderColor3 = Color3.new(),
  757.         Parent = option.main
  758.     })
  759.  
  760.     library:Create("ImageLabel", {
  761.         Size = UDim2.new(1, 0, 1, 0),
  762.         BackgroundTransparency = 1,
  763.         Image = "rbxassetid://2454009026",
  764.         ImageColor3 = Color3.new(),
  765.         ImageTransparency = 0.8,
  766.         Parent = option.slider
  767.     })
  768.  
  769.     option.fill = library:Create("Frame", {
  770.         BackgroundColor3 = library.flags["Menu Accent Color"],
  771.         BorderSizePixel = 0,
  772.         Parent = option.slider
  773.     })
  774.  
  775.     library:Create("ImageLabel", {
  776.         Size = UDim2.new(1, 0, 1, 0),
  777.         BackgroundTransparency = 1,
  778.         Image = "rbxassetid://2592362371",
  779.         ImageColor3 = Color3.fromRGB(60, 60, 60),
  780.         ScaleType = Enum.ScaleType.Slice,
  781.         SliceCenter = Rect.new(2, 2, 62, 62),
  782.         Parent = option.slider
  783.     })
  784.  
  785.     library:Create("ImageLabel", {
  786.         Size = UDim2.new(1, - 2, 1, - 2),
  787.         Position = UDim2.new(0, 1, 0, 1),
  788.         BackgroundTransparency = 1,
  789.         Image = "rbxassetid://2592362371",
  790.         ImageColor3 = Color3.new(),
  791.         ScaleType = Enum.ScaleType.Slice,
  792.         SliceCenter = Rect.new(2, 2, 62, 62),
  793.         Parent = option.slider
  794.     })
  795.  
  796.     option.title = library:Create("TextBox", {
  797.         Position = UDim2.new((option.sub or option.textpos) and 0.5 or 0, (option.sub or option.textpos) and 0 or 6, 0, 0),
  798.         Size = UDim2.new(0, 0, 0, (option.sub or option.textpos) and 14 or 18),
  799.         BackgroundTransparency = 1,
  800.         Text = (option.text == "nil" and "" or option.text .. ": ") .. option.value .. option.suffix,
  801.         TextSize = (option.sub or option.textpos) and 14 or 15,
  802.         Font = Enum.Font.Code,
  803.         TextColor3 = Color3.fromRGB(210, 210, 210),
  804.         TextXAlignment = Enum.TextXAlignment[(option.sub or option.textpos) and "Center" or "Left"],
  805.         Parent = (option.sub or option.textpos) and option.slider or option.main
  806.     })
  807.     table.insert(library.theme, option.fill)
  808.  
  809.     library:Create("UIGradient", {
  810.         Color = ColorSequence.new({
  811.             ColorSequenceKeypoint.new(0, Color3.fromRGB(115, 115, 115)),
  812.             ColorSequenceKeypoint.new(1, Color3.new(1, 1, 1)),
  813.         }),
  814.         Rotation = - 90,
  815.         Parent = option.fill
  816.     })
  817.  
  818.     if option.min >= 0 then
  819.         option.fill.Size = UDim2.new((option.value - option.min) / (option.max - option.min), 0, 1, 0)
  820.     else
  821.         option.fill.Position = UDim2.new((0 - option.min) / (option.max - option.min), 0, 0, 0)
  822.         option.fill.Size = UDim2.new(option.value / (option.max - option.min), 0, 1, 0)
  823.     end
  824.  
  825.     local manualInput
  826.     option.title.Focused:connect(function()
  827.         if not manualInput then
  828.             option.title:ReleaseFocus()
  829.             option.title.Text = (option.text == "nil" and "" or option.text .. ": ") .. option.value .. option.suffix
  830.         end
  831.     end)
  832.  
  833.     option.title.FocusLost:connect(function()
  834.         option.slider.BorderColor3 = Color3.new()
  835.         if manualInput then
  836.             if tonumber(option.title.Text) then
  837.                 option:SetValue(tonumber(option.title.Text))
  838.             else
  839.                 option.title.Text = (option.text == "nil" and "" or option.text .. ": ") .. option.value .. option.suffix
  840.             end
  841.         end
  842.         manualInput = false
  843.     end)
  844.  
  845.     local interest = (option.sub or option.textpos) and option.slider or option.main
  846.     interest.InputBegan:connect(function(input)
  847.         if input.UserInputType.Name == "MouseButton1" then
  848.             if inputService:IsKeyDown(Enum.KeyCode.LeftControl) or inputService:IsKeyDown(Enum.KeyCode.RightControl) then
  849.                 manualInput = true
  850.                 option.title:CaptureFocus()
  851.             else
  852.                 library.slider = option
  853.                 option.slider.BorderColor3 = library.flags["Menu Accent Color"]
  854.                 option:SetValue(option.min + ((input.Position.X - option.slider.AbsolutePosition.X) / option.slider.AbsoluteSize.X) * (option.max - option.min))
  855.             end
  856.         end
  857.         if input.UserInputType.Name == "MouseMovement" then
  858.             if not library.warning and not library.slider then
  859.                 option.slider.BorderColor3 = library.flags["Menu Accent Color"]
  860.             end
  861.             if option.tip then
  862.                 library.tooltip.Text = option.tip
  863.                 library.tooltip.Size = UDim2.new(0, textService:GetTextSize(option.tip, 15, Enum.Font.Code, Vector2.new(9e9, 9e9)).X, 0, 20)
  864.             end
  865.         end
  866.     end)
  867.  
  868.     interest.InputChanged:connect(function(input)
  869.         if input.UserInputType.Name == "MouseMovement" then
  870.             if option.tip then
  871.                 library.tooltip.Position = UDim2.new(0, input.Position.X + 26, 0, input.Position.Y + 36)
  872.             end
  873.         end
  874.     end)
  875.  
  876.     interest.InputEnded:connect(function(input)
  877.         if input.UserInputType.Name == "MouseMovement" then
  878.             library.tooltip.Position = UDim2.new(2)
  879.             if option ~= library.slider then
  880.                 option.slider.BorderColor3 = Color3.new()
  881.                 --option.fill.BorderColor3 = Color3.new()
  882.             end
  883.         end
  884.     end)
  885.  
  886.     function option:SetValue(value, nocallback)
  887.         if typeof(value) ~= "number" then
  888.             value = 0
  889.         end
  890.         value = library.round(value, option.float)
  891.         value = math.clamp(value, self.min, self.max)
  892.         if syn then
  893.             if self.min >= 0 then
  894.                 option.fill:TweenSize(UDim2.new((value - self.min) / (self.max - self.min), 0, 1, 0), "Out", "Quad", 0.05, true)
  895.             else
  896.                 option.fill:TweenPosition(UDim2.new((0 - self.min) / (self.max - self.min), 0, 0, 0), "Out", "Quad", 0.05, true)
  897.                 option.fill:TweenSize(UDim2.new(value / (self.max - self.min), 0, 1, 0), "Out", "Quad", 0.1, true)
  898.             end
  899.         end
  900.         library.flags[self.flag] = value
  901.         self.value = value
  902.         option.title.Text = (option.text == "nil" and "" or option.text .. ": ") .. option.value .. option.suffix
  903.         if not nocallback then
  904.             self.callback(value)
  905.         end
  906.     end
  907.     delay(1, function()
  908.         if library then
  909.             option:SetValue(option.value)
  910.         end
  911.     end)
  912. end
  913.  
  914. library.createList = function(option, parent)
  915.     option.hasInit = true
  916.  
  917.     if option.sub then
  918.         option.main = option:getMain()
  919.         option.main.Size = UDim2.new(1, 0, 0, 48)
  920.     else
  921.         option.main = library:Create("Frame", {
  922.             LayoutOrder = option.position,
  923.             Size = UDim2.new(1, 0, 0, option.text == "nil" and 30 or 48),
  924.             BackgroundTransparency = 1,
  925.             Parent = parent
  926.         })
  927.  
  928.         if option.text ~= "nil" then
  929.             library:Create("TextLabel", {
  930.                 Position = UDim2.new(0, 6, 0, 0),
  931.                 Size = UDim2.new(1, - 12, 0, 18),
  932.                 BackgroundTransparency = 1,
  933.                 Text = option.text,
  934.                 TextSize = 15,
  935.                 Font = Enum.Font.Code,
  936.                 TextColor3 = Color3.fromRGB(210, 210, 210),
  937.                 TextXAlignment = Enum.TextXAlignment.Left,
  938.                 Parent = option.main
  939.             })
  940.         end
  941.     end
  942.  
  943.     local function getMultiText()
  944.         local s = ""
  945.         for _, value in next, option.values do
  946.             s = s .. (option.value[value] and (tostring(value) .. ", ") or "")
  947.         end
  948.         return string.sub(s, 1, # s - 2)
  949.     end
  950.  
  951.     option.listvalue = library:Create("TextLabel", {
  952.         Position = UDim2.new(0, 6, 0, (option.text == "nil" and not option.sub) and 4 or 22),
  953.         Size = UDim2.new(1, - 12, 0, 22),
  954.         BackgroundColor3 = Color3.fromRGB(50, 50, 50),
  955.         BorderColor3 = Color3.new(),
  956.         Text = " " .. (typeof(option.value) == "string" and option.value or getMultiText()),
  957.         TextSize = 15,
  958.         Font = Enum.Font.Code,
  959.         TextColor3 = Color3.new(1, 1, 1),
  960.         TextXAlignment = Enum.TextXAlignment.Left,
  961.         TextTruncate = Enum.TextTruncate.AtEnd,
  962.         Parent = option.main
  963.     })
  964.  
  965.     library:Create("ImageLabel", {
  966.         Size = UDim2.new(1, 0, 1, 0),
  967.         BackgroundTransparency = 1,
  968.         Image = "rbxassetid://2454009026",
  969.         ImageColor3 = Color3.new(),
  970.         ImageTransparency = 0.8,
  971.         Parent = option.listvalue
  972.     })
  973.  
  974.     library:Create("ImageLabel", {
  975.         Size = UDim2.new(1, 0, 1, 0),
  976.         BackgroundTransparency = 1,
  977.         Image = "rbxassetid://2592362371",
  978.         ImageColor3 = Color3.fromRGB(60, 60, 60),
  979.         ScaleType = Enum.ScaleType.Slice,
  980.         SliceCenter = Rect.new(2, 2, 62, 62),
  981.         Parent = option.listvalue
  982.     })
  983.  
  984.     library:Create("ImageLabel", {
  985.         Size = UDim2.new(1, - 2, 1, - 2),
  986.         Position = UDim2.new(0, 1, 0, 1),
  987.         BackgroundTransparency = 1,
  988.         Image = "rbxassetid://2592362371",
  989.         ImageColor3 = Color3.new(),
  990.         ScaleType = Enum.ScaleType.Slice,
  991.         SliceCenter = Rect.new(2, 2, 62, 62),
  992.         Parent = option.listvalue
  993.     })
  994.  
  995.     option.arrow = library:Create("ImageLabel", {
  996.         Position = UDim2.new(1, - 16, 0, 7),
  997.         Size = UDim2.new(0, 8, 0, 8),
  998.         Rotation = 90,
  999.         BackgroundTransparency = 1,
  1000.         Image = "rbxassetid://4918373417",
  1001.         ImageColor3 = Color3.new(1, 1, 1),
  1002.         ScaleType = Enum.ScaleType.Fit,
  1003.         ImageTransparency = 0.4,
  1004.         Parent = option.listvalue
  1005.     })
  1006.  
  1007.     option.holder = library:Create("TextButton", {
  1008.         ZIndex = 4,
  1009.         BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1010.         BorderColor3 = Color3.new(),
  1011.         Text = "",
  1012.         AutoButtonColor = false,
  1013.         Visible = false,
  1014.         Parent = library.base
  1015.     })
  1016.  
  1017.     option.content = library:Create("ScrollingFrame", {
  1018.         ZIndex = 4,
  1019.         Size = UDim2.new(1, 0, 1, 0),
  1020.         BackgroundTransparency = 1,
  1021.         BorderSizePixel = 0,
  1022.         ScrollBarImageColor3 = Color3.new(),
  1023.         ScrollBarThickness = 3,
  1024.         ScrollingDirection = Enum.ScrollingDirection.Y,
  1025.         VerticalScrollBarInset = Enum.ScrollBarInset.Always,
  1026.         TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
  1027.         BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
  1028.         Parent = option.holder
  1029.     })
  1030.  
  1031.     library:Create("ImageLabel", {
  1032.         ZIndex = 4,
  1033.         Size = UDim2.new(1, 0, 1, 0),
  1034.         BackgroundTransparency = 1,
  1035.         Image = "rbxassetid://2592362371",
  1036.         ImageColor3 = Color3.fromRGB(60, 60, 60),
  1037.         ScaleType = Enum.ScaleType.Slice,
  1038.         SliceCenter = Rect.new(2, 2, 62, 62),
  1039.         Parent = option.holder
  1040.     })
  1041.  
  1042.     library:Create("ImageLabel", {
  1043.         ZIndex = 4,
  1044.         Size = UDim2.new(1, - 2, 1, - 2),
  1045.         Position = UDim2.new(0, 1, 0, 1),
  1046.         BackgroundTransparency = 1,
  1047.         Image = "rbxassetid://2592362371",
  1048.         ImageColor3 = Color3.new(),
  1049.         ScaleType = Enum.ScaleType.Slice,
  1050.         SliceCenter = Rect.new(2, 2, 62, 62),
  1051.         Parent = option.holder
  1052.     })
  1053.  
  1054.     local layout = library:Create("UIListLayout", {
  1055.         Padding = UDim.new(0, 2),
  1056.         Parent = option.content
  1057.     })
  1058.  
  1059.     library:Create("UIPadding", {
  1060.         PaddingTop = UDim.new(0, 4),
  1061.         PaddingLeft = UDim.new(0, 4),
  1062.         Parent = option.content
  1063.     })
  1064.  
  1065.     local valueCount = 0
  1066.     layout.Changed:connect(function()
  1067.         option.holder.Size = UDim2.new(0, option.listvalue.AbsoluteSize.X, 0, 8 + (valueCount > option.max and (- 2 + (option.max * 22)) or layout.AbsoluteContentSize.Y))
  1068.         option.content.CanvasSize = UDim2.new(0, 0, 0, 8 + layout.AbsoluteContentSize.Y)
  1069.     end)
  1070.     local interest = option.sub and option.listvalue or option.main
  1071.  
  1072.     option.listvalue.InputBegan:connect(function(input)
  1073.         if input.UserInputType.Name == "MouseButton1" then
  1074.             if library.popup == option then
  1075.                 library.popup:Close()
  1076.                 return
  1077.             end
  1078.             if library.popup then
  1079.                 library.popup:Close()
  1080.             end
  1081.             option.arrow.Rotation = - 90
  1082.             option.open = true
  1083.             option.holder.Visible = true
  1084.             local pos = option.main.AbsolutePosition
  1085.             option.holder.Position = UDim2.new(0, pos.X + 6, 0, pos.Y + ((option.text == "nil" and not option.sub) and 66 or 84))
  1086.             library.popup = option
  1087.             option.listvalue.BorderColor3 = library.flags["Menu Accent Color"]
  1088.         end
  1089.         if input.UserInputType.Name == "MouseMovement" then
  1090.             if not library.warning and not library.slider then
  1091.                 option.listvalue.BorderColor3 = library.flags["Menu Accent Color"]
  1092.             end
  1093.         end
  1094.     end)
  1095.  
  1096.     option.listvalue.InputEnded:connect(function(input)
  1097.         if input.UserInputType.Name == "MouseMovement" then
  1098.             if not option.open then
  1099.                 option.listvalue.BorderColor3 = Color3.new()
  1100.             end
  1101.         end
  1102.     end)
  1103.  
  1104.     interest.InputBegan:connect(function(input)
  1105.         if input.UserInputType.Name == "MouseMovement" then
  1106.             if option.tip then
  1107.                 library.tooltip.Text = option.tip
  1108.                 library.tooltip.Size = UDim2.new(0, textService:GetTextSize(option.tip, 15, Enum.Font.Code, Vector2.new(9e9, 9e9)).X, 0, 20)
  1109.             end
  1110.         end
  1111.     end)
  1112.  
  1113.     interest.InputChanged:connect(function(input)
  1114.         if input.UserInputType.Name == "MouseMovement" then
  1115.             if option.tip then
  1116.                 library.tooltip.Position = UDim2.new(0, input.Position.X + 26, 0, input.Position.Y + 36)
  1117.             end
  1118.         end
  1119.     end)
  1120.  
  1121.     interest.InputEnded:connect(function(input)
  1122.         if input.UserInputType.Name == "MouseMovement" then
  1123.             library.tooltip.Position = UDim2.new(2)
  1124.         end
  1125.     end)
  1126.  
  1127.     local selected
  1128.     function option:AddValue(value, state)
  1129.         if self.labels[value] then
  1130.             return
  1131.         end
  1132.         valueCount = valueCount + 1
  1133.  
  1134.         if self.multiselect then
  1135.             self.values[value] = state
  1136.         else
  1137.             if not table.find(self.values, value) then
  1138.                 table.insert(self.values, value)
  1139.             end
  1140.         end
  1141.  
  1142.         local label = library:Create("TextLabel", {
  1143.             ZIndex = 4,
  1144.             Size = UDim2.new(1, 0, 0, 20),
  1145.             BackgroundTransparency = 1,
  1146.             Text = value,
  1147.             TextSize = 15,
  1148.             Font = Enum.Font.Code,
  1149.             TextTransparency = self.multiselect and (self.value[value] and 1 or 0) or self.value == value and 1 or 0,
  1150.             TextColor3 = Color3.fromRGB(210, 210, 210),
  1151.             TextXAlignment = Enum.TextXAlignment.Left,
  1152.             Parent = option.content
  1153.         })
  1154.         self.labels[value] = label
  1155.  
  1156.         local labelOverlay = library:Create("TextLabel", {
  1157.             ZIndex = 4,
  1158.             Size = UDim2.new(1, 0, 1, 0),
  1159.             BackgroundTransparency = 0.8,
  1160.             Text = " " .. value,
  1161.             TextSize = 15,
  1162.             Font = Enum.Font.Code,
  1163.             TextColor3 = library.flags["Menu Accent Color"],
  1164.             TextXAlignment = Enum.TextXAlignment.Left,
  1165.             Visible = self.multiselect and self.value[value] or self.value == value,
  1166.             Parent = label
  1167.         })
  1168.         selected = selected or self.value == value and labelOverlay
  1169.         table.insert(library.theme, labelOverlay)
  1170.  
  1171.         label.InputBegan:connect(function(input)
  1172.             if input.UserInputType.Name == "MouseButton1" then
  1173.                 if self.multiselect then
  1174.                     self.value[value] = not self.value[value]
  1175.                     self:SetValue(self.value)
  1176.                 else
  1177.                     self:SetValue(value)
  1178.                     self:Close()
  1179.                 end
  1180.             end
  1181.         end)
  1182.     end
  1183.  
  1184.     for i, value in next, option.values do
  1185.         option:AddValue(tostring(typeof(i) == "number" and value or i))
  1186.     end
  1187.  
  1188.     function option:RemoveValue(value)
  1189.         local label = self.labels[value]
  1190.         if label then
  1191.             label:Destroy()
  1192.             self.labels[value] = nil
  1193.             valueCount = valueCount - 1
  1194.             if self.multiselect then
  1195.                 self.values[value] = nil
  1196.                 self:SetValue(self.value)
  1197.             else
  1198.                 table.remove(self.values, table.find(self.values, value))
  1199.                 if self.value == value then
  1200.                     selected = nil
  1201.                     self:SetValue(self.values[1] or "")
  1202.                 end
  1203.             end
  1204.         end
  1205.     end
  1206.  
  1207.     function option:SetValue(value, nocallback)
  1208.         if self.multiselect and typeof(value) ~= "table" then
  1209.             value = {}
  1210.             for i, v in next, self.values do
  1211.                 value[v] = false
  1212.             end
  1213.         end
  1214.         self.value = typeof(value) == "table" and value or tostring(table.find(self.values, value) and value or self.values[1])
  1215.         library.flags[self.flag] = self.value
  1216.         option.listvalue.Text = " " .. (self.multiselect and getMultiText() or self.value)
  1217.         if self.multiselect then
  1218.             for name, label in next, self.labels do
  1219.                 label.TextTransparency = self.value[name] and 1 or 0
  1220.                 if label:FindFirstChild"TextLabel" then
  1221.                     label.TextLabel.Visible = self.value[name]
  1222.                 end
  1223.             end
  1224.         else
  1225.             if selected then
  1226.                 selected.TextTransparency = 0
  1227.                 if selected:FindFirstChild"TextLabel" then
  1228.                     selected.TextLabel.Visible = false
  1229.                 end
  1230.             end
  1231.             if self.labels[self.value] then
  1232.                 selected = self.labels[self.value]
  1233.                 selected.TextTransparency = 1
  1234.                 if selected:FindFirstChild"TextLabel" then
  1235.                     selected.TextLabel.Visible = true
  1236.                 end
  1237.             end
  1238.         end
  1239.         if not nocallback then
  1240.             self.callback(self.value)
  1241.         end
  1242.     end
  1243.     delay(1, function()
  1244.         if library then
  1245.             option:SetValue(option.value)
  1246.         end
  1247.     end)
  1248.  
  1249.     function option:Close()
  1250.         library.popup = nil
  1251.         option.arrow.Rotation = 90
  1252.         self.open = false
  1253.         option.holder.Visible = false
  1254.         option.listvalue.BorderColor3 = Color3.new()
  1255.     end
  1256.  
  1257.     return option
  1258. end
  1259.  
  1260. library.createBox = function(option, parent)
  1261.     option.hasInit = true
  1262.  
  1263.     option.main = library:Create("Frame", {
  1264.         LayoutOrder = option.position,
  1265.         Size = UDim2.new(1, 0, 0, option.text == "nil" and 28 or 44),
  1266.         BackgroundTransparency = 1,
  1267.         Parent = parent
  1268.     })
  1269.  
  1270.     if option.text ~= "nil" then
  1271.         option.title = library:Create("TextLabel", {
  1272.             Position = UDim2.new(0, 6, 0, 0),
  1273.             Size = UDim2.new(1, - 12, 0, 18),
  1274.             BackgroundTransparency = 1,
  1275.             Text = option.text,
  1276.             TextSize = 15,
  1277.             Font = Enum.Font.Code,
  1278.             TextColor3 = Color3.fromRGB(210, 210, 210),
  1279.             TextXAlignment = Enum.TextXAlignment.Left,
  1280.             Parent = option.main
  1281.         })
  1282.     end
  1283.  
  1284.     option.holder = library:Create("Frame", {
  1285.         Position = UDim2.new(0, 6, 0, option.text == "nil" and 4 or 20),
  1286.         Size = UDim2.new(1, - 12, 0, 20),
  1287.         BackgroundColor3 = Color3.fromRGB(50, 50, 50),
  1288.         BorderColor3 = Color3.new(),
  1289.         Parent = option.main
  1290.     })
  1291.  
  1292.     library:Create("ImageLabel", {
  1293.         Size = UDim2.new(1, 0, 1, 0),
  1294.         BackgroundTransparency = 1,
  1295.         Image = "rbxassetid://2454009026",
  1296.         ImageColor3 = Color3.new(),
  1297.         ImageTransparency = 0.8,
  1298.         Parent = option.holder
  1299.     })
  1300.  
  1301.     library:Create("ImageLabel", {
  1302.         Size = UDim2.new(1, 0, 1, 0),
  1303.         BackgroundTransparency = 1,
  1304.         Image = "rbxassetid://2592362371",
  1305.         ImageColor3 = Color3.fromRGB(60, 60, 60),
  1306.         ScaleType = Enum.ScaleType.Slice,
  1307.         SliceCenter = Rect.new(2, 2, 62, 62),
  1308.         Parent = option.holder
  1309.     })
  1310.  
  1311.     library:Create("ImageLabel", {
  1312.         Size = UDim2.new(1, - 2, 1, - 2),
  1313.         Position = UDim2.new(0, 1, 0, 1),
  1314.         BackgroundTransparency = 1,
  1315.         Image = "rbxassetid://2592362371",
  1316.         ImageColor3 = Color3.new(),
  1317.         ScaleType = Enum.ScaleType.Slice,
  1318.         SliceCenter = Rect.new(2, 2, 62, 62),
  1319.         Parent = option.holder
  1320.     })
  1321.  
  1322.     local inputvalue = library:Create("TextBox", {
  1323.         Position = UDim2.new(0, 4, 0, 0),
  1324.         Size = UDim2.new(1, - 4, 1, 0),
  1325.         BackgroundTransparency = 1,
  1326.         Text = "  " .. option.value,
  1327.         TextSize = 15,
  1328.         Font = Enum.Font.Code,
  1329.         TextColor3 = Color3.new(1, 1, 1),
  1330.         TextXAlignment = Enum.TextXAlignment.Left,
  1331.         TextWrapped = true,
  1332.         ClearTextOnFocus = false,
  1333.         Parent = option.holder
  1334.     })
  1335.  
  1336.     inputvalue.FocusLost:connect(function(enter)
  1337.         option.holder.BorderColor3 = Color3.new()
  1338.         option:SetValue(inputvalue.Text, enter)
  1339.     end)
  1340.  
  1341.     inputvalue.Focused:connect(function()
  1342.         option.holder.BorderColor3 = library.flags["Menu Accent Color"]
  1343.     end)
  1344.  
  1345.     inputvalue.InputBegan:connect(function(input)
  1346.         if input.UserInputType.Name == "MouseButton1" then
  1347.             inputvalue.Text = ""
  1348.         end
  1349.         if input.UserInputType.Name == "MouseMovement" then
  1350.             if not library.warning and not library.slider then
  1351.                 option.holder.BorderColor3 = library.flags["Menu Accent Color"]
  1352.             end
  1353.             if option.tip then
  1354.                 library.tooltip.Text = option.tip
  1355.                 library.tooltip.Size = UDim2.new(0, textService:GetTextSize(option.tip, 15, Enum.Font.Code, Vector2.new(9e9, 9e9)).X, 0, 20)
  1356.             end
  1357.         end
  1358.     end)
  1359.  
  1360.     inputvalue.InputChanged:connect(function(input)
  1361.         if input.UserInputType.Name == "MouseMovement" then
  1362.             if option.tip then
  1363.                 library.tooltip.Position = UDim2.new(0, input.Position.X + 26, 0, input.Position.Y + 36)
  1364.             end
  1365.         end
  1366.     end)
  1367.  
  1368.     inputvalue.InputEnded:connect(function(input)
  1369.         if input.UserInputType.Name == "MouseMovement" then
  1370.             if not inputvalue:IsFocused() then
  1371.                 option.holder.BorderColor3 = Color3.new()
  1372.             end
  1373.             library.tooltip.Position = UDim2.new(2)
  1374.         end
  1375.     end)
  1376.  
  1377.     function option:SetValue(value, enter)
  1378.         if tostring(value) == "" then
  1379.             inputvalue.Text = self.value
  1380.         else
  1381.             library.flags[self.flag] = tostring(value)
  1382.             self.value = tostring(value)
  1383.             inputvalue.Text = self.value
  1384.             self.callback(value, enter)
  1385.         end
  1386.     end
  1387.     delay(1, function()
  1388.         if library then
  1389.             option:SetValue(option.value)
  1390.         end
  1391.     end)
  1392. end
  1393.  
  1394. library.createColorPickerWindow = function(option)
  1395.     option.mainHolder = library:Create("TextButton", {
  1396.         ZIndex = 4,
  1397.         --Position = UDim2.new(1, -184, 1, 6),
  1398.         Size = UDim2.new(0, option.trans and 200 or 184, 0, 264),
  1399.         BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  1400.         BorderColor3 = Color3.new(),
  1401.         AutoButtonColor = false,
  1402.         Visible = false,
  1403.         Parent = library.base
  1404.     })
  1405.  
  1406.     option.rgbBox = library:Create("Frame", {
  1407.         Position = UDim2.new(0, 6, 0, 214),
  1408.         Size = UDim2.new(0, (option.mainHolder.AbsoluteSize.X - 12), 0, 20),
  1409.         BackgroundColor3 = Color3.fromRGB(57, 57, 57),
  1410.         BorderColor3 = Color3.new(),
  1411.         ZIndex = 5;
  1412.         Parent = option.mainHolder
  1413.     })
  1414.  
  1415.     library:Create("ImageLabel", {
  1416.         Size = UDim2.new(1, 0, 1, 0),
  1417.         BackgroundTransparency = 1,
  1418.         Image = "rbxassetid://2454009026",
  1419.         ImageColor3 = Color3.new(),
  1420.         ImageTransparency = 0.8,
  1421.         ZIndex = 6;
  1422.         Parent = option.rgbBox
  1423.     })
  1424.  
  1425.     library:Create("ImageLabel", {
  1426.         Size = UDim2.new(1, 0, 1, 0),
  1427.         BackgroundTransparency = 1,
  1428.         Image = "rbxassetid://2592362371",
  1429.         ImageColor3 = Color3.fromRGB(60, 60, 60),
  1430.         ScaleType = Enum.ScaleType.Slice,
  1431.         SliceCenter = Rect.new(2, 2, 62, 62),
  1432.         ZIndex = 6;
  1433.         Parent = option.rgbBox
  1434.     })
  1435.  
  1436.     library:Create("ImageLabel", {
  1437.         Size = UDim2.new(1, - 2, 1, - 2),
  1438.         Position = UDim2.new(0, 1, 0, 1),
  1439.         BackgroundTransparency = 1,
  1440.         Image = "rbxassetid://2592362371",
  1441.         ImageColor3 = Color3.new(),
  1442.         ScaleType = Enum.ScaleType.Slice,
  1443.         SliceCenter = Rect.new(2, 2, 62, 62),
  1444.         ZIndex = 6;
  1445.         Parent = option.rgbBox
  1446.     })
  1447.  
  1448.     option.rgbInput = library:Create("TextBox", {
  1449.         Position = UDim2.new(0, 4, 0, 0),
  1450.         Size = UDim2.new(1, - 4, 1, 0),
  1451.         BackgroundTransparency = 1,
  1452.         Text = tostring(option.color),
  1453.         TextSize = 14,
  1454.         Font = Enum.Font.Code,
  1455.         TextColor3 = Color3.new(1, 1, 1),
  1456.         TextXAlignment = Enum.TextXAlignment.Center,
  1457.         TextWrapped = true,
  1458.         ClearTextOnFocus = false,
  1459.         ZIndex = 6;
  1460.         Parent = option.rgbBox
  1461.     })
  1462.  
  1463.     option.hexBox = option.rgbBox:Clone()
  1464.     option.hexBox.Position = UDim2.new(0, 6, 0, 238)
  1465.     -- option.hexBox.Size = UDim2.new(0, (option.mainHolder.AbsoluteSize.X/2 - 10), 0, 20)
  1466.     option.hexBox.Parent = option.mainHolder
  1467.     option.hexInput = option.hexBox.TextBox;
  1468.  
  1469.     library:Create("ImageLabel", {
  1470.         ZIndex = 4,
  1471.         Size = UDim2.new(1, 0, 1, 0),
  1472.         BackgroundTransparency = 1,
  1473.         Image = "rbxassetid://2592362371",
  1474.         ImageColor3 = Color3.fromRGB(60, 60, 60),
  1475.         ScaleType = Enum.ScaleType.Slice,
  1476.         SliceCenter = Rect.new(2, 2, 62, 62),
  1477.         Parent = option.mainHolder
  1478.     })
  1479.  
  1480.     library:Create("ImageLabel", {
  1481.         ZIndex = 4,
  1482.         Size = UDim2.new(1, - 2, 1, - 2),
  1483.         Position = UDim2.new(0, 1, 0, 1),
  1484.         BackgroundTransparency = 1,
  1485.         Image = "rbxassetid://2592362371",
  1486.         ImageColor3 = Color3.new(),
  1487.         ScaleType = Enum.ScaleType.Slice,
  1488.         SliceCenter = Rect.new(2, 2, 62, 62),
  1489.         Parent = option.mainHolder
  1490.     })
  1491.  
  1492.     local hue, sat, val = Color3.toHSV(option.color)
  1493.     hue, sat, val = hue == 0 and 1 or hue, sat + 0.005, val - 0.005
  1494.     local editinghue
  1495.     local editingsatval
  1496.     local editingtrans
  1497.  
  1498.     local transMain
  1499.     if option.trans then
  1500.         transMain = library:Create("ImageLabel", {
  1501.             ZIndex = 5,
  1502.             Size = UDim2.new(1, 0, 1, 0),
  1503.             BackgroundTransparency = 1,
  1504.             Image = "rbxassetid://2454009026",
  1505.             ImageColor3 = Color3.fromHSV(hue, 1, 1),
  1506.             Rotation = 180,
  1507.             Parent = library:Create("ImageLabel", {
  1508.                 ZIndex = 4,
  1509.                 AnchorPoint = Vector2.new(1, 0),
  1510.                 Position = UDim2.new(1, - 6, 0, 6),
  1511.                 Size = UDim2.new(0, 10, 1, - 60),
  1512.                 BorderColor3 = Color3.new(),
  1513.                 Image = "rbxassetid://4632082392",
  1514.                 ScaleType = Enum.ScaleType.Tile,
  1515.                 TileSize = UDim2.new(0, 5, 0, 5),
  1516.                 Parent = option.mainHolder
  1517.             })
  1518.         })
  1519.  
  1520.         option.transSlider = library:Create("Frame", {
  1521.             ZIndex = 5,
  1522.             Position = UDim2.new(0, 0, option.trans, 0),
  1523.             Size = UDim2.new(1, 0, 0, 2),
  1524.             BackgroundColor3 = Color3.fromRGB(38, 41, 65),
  1525.             BorderColor3 = Color3.fromRGB(255, 255, 255),
  1526.             Parent = transMain
  1527.         })
  1528.  
  1529.         transMain.InputBegan:connect(function(Input)
  1530.             if Input.UserInputType.Name == "MouseButton1" then
  1531.                 editingtrans = true
  1532.                 option:SetTrans(1 - ((Input.Position.Y - transMain.AbsolutePosition.Y) / transMain.AbsoluteSize.Y))
  1533.             end
  1534.         end)
  1535.  
  1536.         transMain.InputEnded:connect(function(Input)
  1537.             if Input.UserInputType.Name == "MouseButton1" then
  1538.                 editingtrans = false
  1539.             end
  1540.         end)
  1541.     end
  1542.  
  1543.     local hueMain = library:Create("Frame", {
  1544.         ZIndex = 4,
  1545.         AnchorPoint = Vector2.new(0, 1),
  1546.         Position = UDim2.new(0, 6, 1, - 54),
  1547.         Size = UDim2.new(1, option.trans and - 28 or - 12, 0, 10),
  1548.         BackgroundColor3 = Color3.new(1, 1, 1),
  1549.         BorderColor3 = Color3.new(),
  1550.         Parent = option.mainHolder
  1551.     })
  1552.  
  1553.     local Gradient = library:Create("UIGradient", {
  1554.         Color = ColorSequence.new({
  1555.             ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
  1556.             ColorSequenceKeypoint.new(0.17, Color3.fromRGB(255, 0, 255)),
  1557.             ColorSequenceKeypoint.new(0.33, Color3.fromRGB(0, 0, 255)),
  1558.             ColorSequenceKeypoint.new(0.5, Color3.fromRGB(0, 255, 255)),
  1559.             ColorSequenceKeypoint.new(0.67, Color3.fromRGB(0, 255, 0)),
  1560.             ColorSequenceKeypoint.new(0.83, Color3.fromRGB(255, 255, 0)),
  1561.             ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 0)),
  1562.         }),
  1563.         Parent = hueMain
  1564.     })
  1565.  
  1566.     local hueSlider = library:Create("Frame", {
  1567.         ZIndex = 4,
  1568.         Position = UDim2.new(1 - hue, 0, 0, 0),
  1569.         Size = UDim2.new(0, 2, 1, 0),
  1570.         BackgroundColor3 = Color3.fromRGB(38, 41, 65),
  1571.         BorderColor3 = Color3.fromRGB(255, 255, 255),
  1572.         Parent = hueMain
  1573.     })
  1574.  
  1575.     hueMain.InputBegan:connect(function(Input)
  1576.         if Input.UserInputType.Name == "MouseButton1" then
  1577.             editinghue = true
  1578.             X = (hueMain.AbsolutePosition.X + hueMain.AbsoluteSize.X) - hueMain.AbsolutePosition.X
  1579.             X = math.clamp((Input.Position.X - hueMain.AbsolutePosition.X) / X, 0, 0.995)
  1580.             option:SetColor(Color3.fromHSV(1 - X, sat, val))
  1581.         end
  1582.     end)
  1583.  
  1584.     hueMain.InputEnded:connect(function(Input)
  1585.         if Input.UserInputType.Name == "MouseButton1" then
  1586.             editinghue = false
  1587.         end
  1588.     end)
  1589.  
  1590.     local satval = library:Create("ImageLabel", {
  1591.         ZIndex = 4,
  1592.         Position = UDim2.new(0, 6, 0, 6),
  1593.         Size = UDim2.new(1, option.trans and - 28 or - 12, 1, - 74),
  1594.         BackgroundColor3 = Color3.fromHSV(hue, 1, 1),
  1595.         BorderColor3 = Color3.new(),
  1596.         Image = "rbxassetid://4155801252",
  1597.         ClipsDescendants = true,
  1598.         Parent = option.mainHolder
  1599.     })
  1600.  
  1601.     local satvalSlider = library:Create("Frame", {
  1602.         ZIndex = 4,
  1603.         AnchorPoint = Vector2.new(0.5, 0.5),
  1604.         Position = UDim2.new(sat, 0, 1 - val, 0),
  1605.         Size = UDim2.new(0, 4, 0, 4),
  1606.         Rotation = 45,
  1607.         BackgroundColor3 = Color3.fromRGB(255, 255, 255),
  1608.         Parent = satval
  1609.     })
  1610.  
  1611.     satval.InputBegan:connect(function(Input)
  1612.         if Input.UserInputType.Name == "MouseButton1" then
  1613.             editingsatval = true
  1614.             X = (satval.AbsolutePosition.X + satval.AbsoluteSize.X) - satval.AbsolutePosition.X
  1615.             Y = (satval.AbsolutePosition.Y + satval.AbsoluteSize.Y) - satval.AbsolutePosition.Y
  1616.             X = math.clamp((Input.Position.X - satval.AbsolutePosition.X) / X, 0.005, 1)
  1617.             Y = math.clamp((Input.Position.Y - satval.AbsolutePosition.Y) / Y, 0, 0.995)
  1618.             option:SetColor(Color3.fromHSV(hue, X, 1 - Y))
  1619.         end
  1620.     end)
  1621.  
  1622.     library:AddConnection(inputService.InputChanged, function(Input)
  1623.         if Input.UserInputType.Name == "MouseMovement" then
  1624.             if editingsatval then
  1625.                 X = (satval.AbsolutePosition.X + satval.AbsoluteSize.X) - satval.AbsolutePosition.X
  1626.                 Y = (satval.AbsolutePosition.Y + satval.AbsoluteSize.Y) - satval.AbsolutePosition.Y
  1627.                 X = math.clamp((Input.Position.X - satval.AbsolutePosition.X) / X, 0.005, 1)
  1628.                 Y = math.clamp((Input.Position.Y - satval.AbsolutePosition.Y) / Y, 0, 0.995)
  1629.                 option:SetColor(Color3.fromHSV(hue, X, 1 - Y))
  1630.             elseif editinghue then
  1631.                 X = (hueMain.AbsolutePosition.X + hueMain.AbsoluteSize.X) - hueMain.AbsolutePosition.X
  1632.                 X = math.clamp((Input.Position.X - hueMain.AbsolutePosition.X) / X, 0, 0.995)
  1633.                 option:SetColor(Color3.fromHSV(1 - X, sat, val))
  1634.             elseif editingtrans then
  1635.                 option:SetTrans(1 - ((Input.Position.Y - transMain.AbsolutePosition.Y) / transMain.AbsoluteSize.Y))
  1636.             end
  1637.         end
  1638.     end)
  1639.  
  1640.     satval.InputEnded:connect(function(Input)
  1641.         if Input.UserInputType.Name == "MouseButton1" then
  1642.             editingsatval = false
  1643.         end
  1644.     end)
  1645.  
  1646.     local r, g, b = library.round(option.color)
  1647.     option.hexInput.Text = string.format("#%02x%02x%02x", r, g, b)
  1648.     option.rgbInput.Text = table.concat({
  1649.         r,
  1650.         g,
  1651.         b
  1652.     }, ",")
  1653.  
  1654.     option.rgbInput.FocusLost:connect(function()
  1655.         local r, g, b = option.rgbInput.Text:gsub("%s+", ""):match("(%d+),(%d+),(%d+)")
  1656.         if r and g and b then
  1657.             local color = Color3.fromRGB(tonumber(r), tonumber(g), tonumber(b))
  1658.             return option:SetColor(color)
  1659.         end
  1660.  
  1661.         local r, g, b = library.round(option.color)
  1662.         option.rgbInput.Text = table.concat({
  1663.             r,
  1664.             g,
  1665.             b
  1666.         }, ",")
  1667.     end)
  1668.  
  1669.     option.hexInput.FocusLost:connect(function()
  1670.         local r, g, b = option.hexInput.Text:match("#?(..)(..)(..)")
  1671.         if r and g and b then
  1672.             local color = Color3.fromRGB(tonumber("0x" .. r), tonumber("0x" .. g), tonumber("0x" .. b))
  1673.             return option:SetColor(color)
  1674.         end
  1675.  
  1676.         local r, g, b = library.round(option.color)
  1677.         option.hexInput.Text = string.format("#%02x%02x%02x", r, g, b)
  1678.     end)
  1679.  
  1680.     function option:updateVisuals(Color)
  1681.         hue, sat, val = Color3.toHSV(Color)
  1682.         hue = hue == 0 and 1 or hue
  1683.         satval.BackgroundColor3 = Color3.fromHSV(hue, 1, 1)
  1684.         if option.trans then
  1685.             transMain.ImageColor3 = Color3.fromHSV(hue, 1, 1)
  1686.         end
  1687.         hueSlider.Position = UDim2.new(1 - hue, 0, 0, 0)
  1688.         satvalSlider.Position = UDim2.new(sat, 0, 1 - val, 0)
  1689.  
  1690.         local r, g, b = library.round(Color3.fromHSV(hue, sat, val))
  1691.  
  1692.         option.hexInput.Text = string.format("#%02x%02x%02x", r, g, b)
  1693.         option.rgbInput.Text = table.concat({
  1694.             r,
  1695.             g,
  1696.             b
  1697.         }, ",")
  1698.     end
  1699.  
  1700.     return option
  1701. end
  1702.  
  1703. library.createColor = function(option, parent)
  1704.     option.hasInit = true
  1705.  
  1706.     if option.sub then
  1707.         option.main = option:getMain()
  1708.     else
  1709.         option.main = library:Create("Frame", {
  1710.             LayoutOrder = option.position,
  1711.             Size = UDim2.new(1, 0, 0, 20),
  1712.             BackgroundTransparency = 1,
  1713.             Parent = parent
  1714.         })
  1715.  
  1716.         option.title = library:Create("TextLabel", {
  1717.             Position = UDim2.new(0, 6, 0, 0),
  1718.             Size = UDim2.new(1, - 12, 1, 0),
  1719.             BackgroundTransparency = 1,
  1720.             Text = option.text,
  1721.             TextSize = 15,
  1722.             Font = Enum.Font.Code,
  1723.             TextColor3 = Color3.fromRGB(210, 210, 210),
  1724.             TextXAlignment = Enum.TextXAlignment.Left,
  1725.             Parent = option.main
  1726.         })
  1727.     end
  1728.  
  1729.     option.visualize = library:Create(option.sub and "TextButton" or "Frame", {
  1730.         Position = UDim2.new(1, - (option.subpos or 0) - 24, 0, 4),
  1731.         Size = UDim2.new(0, 18, 0, 12),
  1732.         SizeConstraint = Enum.SizeConstraint.RelativeYY,
  1733.         BackgroundColor3 = option.color,
  1734.         BorderColor3 = Color3.new(),
  1735.         Parent = option.main
  1736.     })
  1737.  
  1738.     library:Create("ImageLabel", {
  1739.         Size = UDim2.new(1, 0, 1, 0),
  1740.         BackgroundTransparency = 1,
  1741.         Image = "rbxassetid://2454009026",
  1742.         ImageColor3 = Color3.new(),
  1743.         ImageTransparency = 0.6,
  1744.         Parent = option.visualize
  1745.     })
  1746.  
  1747.     library:Create("ImageLabel", {
  1748.         Size = UDim2.new(1, 0, 1, 0),
  1749.         BackgroundTransparency = 1,
  1750.         Image = "rbxassetid://2592362371",
  1751.         ImageColor3 = Color3.fromRGB(60, 60, 60),
  1752.         ScaleType = Enum.ScaleType.Slice,
  1753.         SliceCenter = Rect.new(2, 2, 62, 62),
  1754.         Parent = option.visualize
  1755.     })
  1756.  
  1757.     library:Create("ImageLabel", {
  1758.         Size = UDim2.new(1, - 2, 1, - 2),
  1759.         Position = UDim2.new(0, 1, 0, 1),
  1760.         BackgroundTransparency = 1,
  1761.         Image = "rbxassetid://2592362371",
  1762.         ImageColor3 = Color3.new(),
  1763.         ScaleType = Enum.ScaleType.Slice,
  1764.         SliceCenter = Rect.new(2, 2, 62, 62),
  1765.         Parent = option.visualize
  1766.     })
  1767.  
  1768.     local interest = option.sub and option.visualize or option.main
  1769.  
  1770.     if option.sub then
  1771.         option.visualize.Text = ""
  1772.         option.visualize.AutoButtonColor = false
  1773.     end
  1774.  
  1775.     interest.InputBegan:connect(function(input)
  1776.         if input.UserInputType.Name == "MouseButton1" then
  1777.             if not option.mainHolder then
  1778.                 library.createColorPickerWindow(option)
  1779.             end
  1780.             if library.popup == option then
  1781.                 library.popup:Close()
  1782.                 return
  1783.             end
  1784.             if library.popup then
  1785.                 library.popup:Close()
  1786.             end
  1787.             option.open = true
  1788.             local pos = option.main.AbsolutePosition
  1789.             option.mainHolder.Position = UDim2.new(0, pos.X + 36 + (option.trans and - 16 or 0), 0, pos.Y + 56)
  1790.             option.mainHolder.Visible = true
  1791.             library.popup = option
  1792.             option.visualize.BorderColor3 = library.flags["Menu Accent Color"]
  1793.         end
  1794.         if input.UserInputType.Name == "MouseMovement" then
  1795.             if not library.warning and not library.slider then
  1796.                 option.visualize.BorderColor3 = library.flags["Menu Accent Color"]
  1797.             end
  1798.             if option.tip then
  1799.                 library.tooltip.Text = option.tip
  1800.                 library.tooltip.Size = UDim2.new(0, textService:GetTextSize(option.tip, 15, Enum.Font.Code, Vector2.new(9e9, 9e9)).X, 0, 20)
  1801.             end
  1802.         end
  1803.     end)
  1804.  
  1805.     interest.InputChanged:connect(function(input)
  1806.         if input.UserInputType.Name == "MouseMovement" then
  1807.             if option.tip then
  1808.                 library.tooltip.Position = UDim2.new(0, input.Position.X + 26, 0, input.Position.Y + 36)
  1809.             end
  1810.         end
  1811.     end)
  1812.  
  1813.     interest.InputEnded:connect(function(input)
  1814.         if input.UserInputType.Name == "MouseMovement" then
  1815.             if not option.open then
  1816.                 option.visualize.BorderColor3 = Color3.new()
  1817.             end
  1818.             library.tooltip.Position = UDim2.new(2)
  1819.         end
  1820.     end)
  1821.  
  1822.     function option:SetColor(newColor, nocallback)
  1823.         if typeof(newColor) == "table" then
  1824.             newColor = Color3.new(newColor[1], newColor[2], newColor[3])
  1825.         end
  1826.         newColor = newColor or Color3.new(1, 1, 1)
  1827.         if self.mainHolder then
  1828.             self:updateVisuals(newColor)
  1829.         end
  1830.         option.visualize.BackgroundColor3 = newColor
  1831.         library.flags[self.flag] = newColor
  1832.         self.color = newColor
  1833.         if not nocallback then
  1834.             self.callback(newColor)
  1835.         end
  1836.     end
  1837.  
  1838.     if option.trans then
  1839.         function option:SetTrans(value, manual)
  1840.             value = math.clamp(tonumber(value) or 0, 0, 1)
  1841.             if self.transSlider then
  1842.                 self.transSlider.Position = UDim2.new(0, 0, value, 0)
  1843.             end
  1844.             self.trans = value
  1845.             library.flags[self.flag .. " Transparency"] = 1 - value
  1846.             self.calltrans(value)
  1847.         end
  1848.         option:SetTrans(option.trans)
  1849.     end
  1850.  
  1851.     delay(1, function()
  1852.         if library then
  1853.             option:SetColor(option.color)
  1854.         end
  1855.     end)
  1856.  
  1857.     function option:Close()
  1858.         library.popup = nil
  1859.         self.open = false
  1860.         self.mainHolder.Visible = false
  1861.         option.visualize.BorderColor3 = Color3.new()
  1862.     end
  1863. end
  1864.  
  1865. function library:AddTab(title, pos)
  1866.     local tab = {
  1867.         canInit = true,
  1868.         tabs = {},
  1869.         columns = {},
  1870.         title = tostring(title)
  1871.     }
  1872.     table.insert(self.tabs, pos or # self.tabs + 1, tab)
  1873.  
  1874.     function tab:AddColumn()
  1875.         local column = {
  1876.             sections = {},
  1877.             position = # self.columns,
  1878.             canInit = true,
  1879.             tab = self
  1880.         }
  1881.         table.insert(self.columns, column)
  1882.  
  1883.         function column:AddSection(title)
  1884.             local section = {
  1885.                 title = tostring(title),
  1886.                 options = {},
  1887.                 canInit = true,
  1888.                 column = self
  1889.             }
  1890.             table.insert(self.sections, section)
  1891.  
  1892.             function section:AddLabel(text)
  1893.                 local option = {
  1894.                     text = text
  1895.                 }
  1896.                 option.section = self
  1897.                 option.type = "label"
  1898.                 option.position = # self.options
  1899.                 option.canInit = true
  1900.                 table.insert(self.options, option)
  1901.  
  1902.                 if library.hasInit and self.hasInit then
  1903.                     library.createLabel(option, self.content)
  1904.                 else
  1905.                     option.Init = library.createLabel
  1906.                 end
  1907.  
  1908.                 return option
  1909.             end
  1910.  
  1911.             function section:AddDivider(text)
  1912.                 local option = {
  1913.                     text = text
  1914.                 }
  1915.                 option.section = self
  1916.                 option.type = "divider"
  1917.                 option.position = # self.options
  1918.                 option.canInit = true
  1919.                 table.insert(self.options, option)
  1920.  
  1921.                 if library.hasInit and self.hasInit then
  1922.                     library.createDivider(option, self.content)
  1923.                 else
  1924.                     option.Init = library.createDivider
  1925.                 end
  1926.  
  1927.                 return option
  1928.             end
  1929.  
  1930.             function section:AddToggle(option)
  1931.                 option = typeof(option) == "table" and option or {}
  1932.                 option.section = self
  1933.                 option.text = tostring(option.text)
  1934.                 option.state = option.state == nil and nil or (typeof(option.state) == "boolean" and option.state or false)
  1935.                 option.callback = typeof(option.callback) == "function" and option.callback or function()
  1936.                 end
  1937.                 option.type = "toggle"
  1938.                 option.position = # self.options
  1939.                 option.flag = (library.flagprefix and library.flagprefix .. " " or "") .. (option.flag or option.text)
  1940.                 option.subcount = 0
  1941.                 option.canInit = (option.canInit ~= nil and option.canInit) or true
  1942.                 option.tip = option.tip and tostring(option.tip)
  1943.                 option.style = option.style == 2
  1944.                 library.flags[option.flag] = option.state
  1945.                 table.insert(self.options, option)
  1946.                 library.options[option.flag] = option
  1947.  
  1948.                 function option:AddColor(subOption)
  1949.                     subOption = typeof(subOption) == "table" and subOption or {}
  1950.                     subOption.sub = true
  1951.                     subOption.subpos = self.subcount * 24
  1952.                     function subOption:getMain()
  1953.                         return option.main
  1954.                     end
  1955.                     self.subcount = self.subcount + 1
  1956.                     return section:AddColor(subOption)
  1957.                 end
  1958.  
  1959.                 function option:AddBind(subOption)
  1960.                     subOption = typeof(subOption) == "table" and subOption or {}
  1961.                     subOption.sub = true
  1962.                     subOption.subpos = self.subcount * 24
  1963.                     function subOption:getMain()
  1964.                         return option.main
  1965.                     end
  1966.                     self.subcount = self.subcount + 1
  1967.                     return section:AddBind(subOption)
  1968.                 end
  1969.  
  1970.                 function option:AddList(subOption)
  1971.                     subOption = typeof(subOption) == "table" and subOption or {}
  1972.                     subOption.sub = true
  1973.                     function subOption:getMain()
  1974.                         return option.main
  1975.                     end
  1976.                     self.subcount = self.subcount + 1
  1977.                     return section:AddList(subOption)
  1978.                 end
  1979.  
  1980.                 function option:AddSlider(subOption)
  1981.                     subOption = typeof(subOption) == "table" and subOption or {}
  1982.                     subOption.sub = true
  1983.                     function subOption:getMain()
  1984.                         return option.main
  1985.                     end
  1986.                     self.subcount = self.subcount + 1
  1987.                     return section:AddSlider(subOption)
  1988.                 end
  1989.  
  1990.                 if library.hasInit and self.hasInit then
  1991.                     library.createToggle(option, self.content)
  1992.                 else
  1993.                     option.Init = library.createToggle
  1994.                 end
  1995.  
  1996.                 return option
  1997.             end
  1998.  
  1999.             function section:AddButton(option)
  2000.                 option = typeof(option) == "table" and option or {}
  2001.                 option.section = self
  2002.                 option.text = tostring(option.text)
  2003.                 option.callback = typeof(option.callback) == "function" and option.callback or function()
  2004.                 end
  2005.                 option.type = "button"
  2006.                 option.position = # self.options
  2007.                 option.flag = (library.flagprefix and library.flagprefix .. " " or "") .. (option.flag or option.text)
  2008.                 option.subcount = 0
  2009.                 option.canInit = (option.canInit ~= nil and option.canInit) or true
  2010.                 option.tip = option.tip and tostring(option.tip)
  2011.                 table.insert(self.options, option)
  2012.                 library.options[option.flag] = option
  2013.  
  2014.                 function option:AddBind(subOption)
  2015.                     subOption = typeof(subOption) == "table" and subOption or {}
  2016.                     subOption.sub = true
  2017.                     subOption.subpos = self.subcount * 24
  2018.                     function subOption:getMain()
  2019.                         option.main.Size = UDim2.new(1, 0, 0, 40)
  2020.                         return option.main
  2021.                     end
  2022.                     self.subcount = self.subcount + 1
  2023.                     return section:AddBind(subOption)
  2024.                 end
  2025.  
  2026.                 function option:AddColor(subOption)
  2027.                     subOption = typeof(subOption) == "table" and subOption or {}
  2028.                     subOption.sub = true
  2029.                     subOption.subpos = self.subcount * 24
  2030.                     function subOption:getMain()
  2031.                         option.main.Size = UDim2.new(1, 0, 0, 40)
  2032.                         return option.main
  2033.                     end
  2034.                     self.subcount = self.subcount + 1
  2035.                     return section:AddColor(subOption)
  2036.                 end
  2037.  
  2038.                 if library.hasInit and self.hasInit then
  2039.                     library.createButton(option, self.content)
  2040.                 else
  2041.                     option.Init = library.createButton
  2042.                 end
  2043.  
  2044.                 return option
  2045.             end
  2046.  
  2047.             function section:AddBind(option)
  2048.                 option = typeof(option) == "table" and option or {}
  2049.                 option.section = self
  2050.                 option.text = tostring(option.text)
  2051.                 option.key = (option.key and option.key.Name) or option.key or "none"
  2052.                 option.nomouse = typeof(option.nomouse) == "boolean" and option.nomouse or false
  2053.                 option.mode = typeof(option.mode) == "string" and (option.mode == "toggle" or option.mode == "hold" and option.mode) or "toggle"
  2054.                 option.callback = typeof(option.callback) == "function" and option.callback or function()
  2055.                 end
  2056.                 option.type = "bind"
  2057.                 option.position = # self.options
  2058.                 option.flag = (library.flagprefix and library.flagprefix .. " " or "") .. (option.flag or option.text)
  2059.                 option.canInit = (option.canInit ~= nil and option.canInit) or true
  2060.                 option.tip = option.tip and tostring(option.tip)
  2061.                 table.insert(self.options, option)
  2062.                 library.options[option.flag] = option
  2063.  
  2064.                 if library.hasInit and self.hasInit then
  2065.                     library.createBind(option, self.content)
  2066.                 else
  2067.                     option.Init = library.createBind
  2068.                 end
  2069.  
  2070.                 return option
  2071.             end
  2072.  
  2073.             function section:AddSlider(option)
  2074.                 option = typeof(option) == "table" and option or {}
  2075.                 option.section = self
  2076.                 option.text = tostring(option.text)
  2077.                 option.min = typeof(option.min) == "number" and option.min or 0
  2078.                 option.max = typeof(option.max) == "number" and option.max or 0
  2079.                 option.value = option.min < 0 and 0 or math.clamp(typeof(option.value) == "number" and option.value or option.min, option.min, option.max)
  2080.                 option.callback = typeof(option.callback) == "function" and option.callback or function()
  2081.                 end
  2082.                 option.float = typeof(option.value) == "number" and option.float or 1
  2083.                 option.suffix = option.suffix and tostring(option.suffix) or ""
  2084.                 option.textpos = option.textpos == 2
  2085.                 option.type = "slider"
  2086.                 option.position = # self.options
  2087.                 option.flag = (library.flagprefix and library.flagprefix .. " " or "") .. (option.flag or option.text)
  2088.                 option.subcount = 0
  2089.                 option.canInit = (option.canInit ~= nil and option.canInit) or true
  2090.                 option.tip = option.tip and tostring(option.tip)
  2091.                 library.flags[option.flag] = option.value
  2092.                 table.insert(self.options, option)
  2093.                 library.options[option.flag] = option
  2094.  
  2095.                 function option:AddColor(subOption)
  2096.                     subOption = typeof(subOption) == "table" and subOption or {}
  2097.                     subOption.sub = true
  2098.                     subOption.subpos = self.subcount * 24
  2099.                     function subOption:getMain()
  2100.                         return option.main
  2101.                     end
  2102.                     self.subcount = self.subcount + 1
  2103.                     return section:AddColor(subOption)
  2104.                 end
  2105.  
  2106.                 function option:AddBind(subOption)
  2107.                     subOption = typeof(subOption) == "table" and subOption or {}
  2108.                     subOption.sub = true
  2109.                     subOption.subpos = self.subcount * 24
  2110.                     function subOption:getMain()
  2111.                         return option.main
  2112.                     end
  2113.                     self.subcount = self.subcount + 1
  2114.                     return section:AddBind(subOption)
  2115.                 end
  2116.  
  2117.                 if library.hasInit and self.hasInit then
  2118.                     library.createSlider(option, self.content)
  2119.                 else
  2120.                     option.Init = library.createSlider
  2121.                 end
  2122.  
  2123.                 return option
  2124.             end
  2125.  
  2126.             function section:AddList(option)
  2127.                 option = typeof(option) == "table" and option or {}
  2128.                 option.section = self
  2129.                 option.text = tostring(option.text)
  2130.                 option.values = typeof(option.values) == "table" and option.values or {}
  2131.                 option.callback = typeof(option.callback) == "function" and option.callback or function()
  2132.                 end
  2133.                 option.multiselect = typeof(option.multiselect) == "boolean" and option.multiselect or false
  2134.                 --option.groupbox = (not option.multiselect) and (typeof(option.groupbox) == "boolean" and option.groupbox or false)
  2135.                 option.value = option.multiselect and (typeof(option.value) == "table" and option.value or {}) or tostring(option.value or option.values[1] or "")
  2136.                 if option.multiselect then
  2137.                     for i, v in next, option.values do
  2138.                         option.value[v] = false
  2139.                     end
  2140.                 end
  2141.                 option.max = option.max or 4
  2142.                 option.open = false
  2143.                 option.type = "list"
  2144.                 option.position = # self.options
  2145.                 option.labels = {}
  2146.                 option.flag = (library.flagprefix and library.flagprefix .. " " or "") .. (option.flag or option.text)
  2147.                 option.subcount = 0
  2148.                 option.canInit = (option.canInit ~= nil and option.canInit) or true
  2149.                 option.tip = option.tip and tostring(option.tip)
  2150.                 library.flags[option.flag] = option.value
  2151.                 table.insert(self.options, option)
  2152.                 library.options[option.flag] = option
  2153.  
  2154.                 function option:AddValue(value, state)
  2155.                     if self.multiselect then
  2156.                         self.values[value] = state
  2157.                     else
  2158.                         table.insert(self.values, value)
  2159.                     end
  2160.                 end
  2161.  
  2162.                 function option:AddColor(subOption)
  2163.                     subOption = typeof(subOption) == "table" and subOption or {}
  2164.                     subOption.sub = true
  2165.                     subOption.subpos = self.subcount * 24
  2166.                     function subOption:getMain()
  2167.                         return option.main
  2168.                     end
  2169.                     self.subcount = self.subcount + 1
  2170.                     return section:AddColor(subOption)
  2171.                 end
  2172.  
  2173.                 function option:AddBind(subOption)
  2174.                     subOption = typeof(subOption) == "table" and subOption or {}
  2175.                     subOption.sub = true
  2176.                     subOption.subpos = self.subcount * 24
  2177.                     function subOption:getMain()
  2178.                         return option.main
  2179.                     end
  2180.                     self.subcount = self.subcount + 1
  2181.                     return section:AddBind(subOption)
  2182.                 end
  2183.  
  2184.                 if library.hasInit and self.hasInit then
  2185.                     library.createList(option, self.content)
  2186.                 else
  2187.                     option.Init = library.createList
  2188.                 end
  2189.  
  2190.                 return option
  2191.             end
  2192.  
  2193.             function section:AddBox(option)
  2194.                 option = typeof(option) == "table" and option or {}
  2195.                 option.section = self
  2196.                 option.text = tostring(option.text)
  2197.                 option.value = tostring(option.value or "")
  2198.                 option.callback = typeof(option.callback) == "function" and option.callback or function()
  2199.                 end
  2200.                 option.type = "box"
  2201.                 option.position = # self.options
  2202.                 option.flag = (library.flagprefix and library.flagprefix .. " " or "") .. (option.flag or option.text)
  2203.                 option.canInit = (option.canInit ~= nil and option.canInit) or true
  2204.                 option.tip = option.tip and tostring(option.tip)
  2205.                 library.flags[option.flag] = option.value
  2206.                 table.insert(self.options, option)
  2207.                 library.options[option.flag] = option
  2208.  
  2209.                 if library.hasInit and self.hasInit then
  2210.                     library.createBox(option, self.content)
  2211.                 else
  2212.                     option.Init = library.createBox
  2213.                 end
  2214.  
  2215.                 return option
  2216.             end
  2217.  
  2218.             function section:AddColor(option)
  2219.                 option = typeof(option) == "table" and option or {}
  2220.                 option.section = self
  2221.                 option.text = tostring(option.text)
  2222.                 option.color = typeof(option.color) == "table" and Color3.new(option.color[1], option.color[2], option.color[3]) or option.color or Color3.new(1, 1, 1)
  2223.                 option.callback = typeof(option.callback) == "function" and option.callback or function()
  2224.                 end
  2225.                 option.calltrans = typeof(option.calltrans) == "function" and option.calltrans or (option.calltrans == 1 and option.callback) or function()
  2226.                 end
  2227.                 option.open = false
  2228.                 option.trans = tonumber(option.trans)
  2229.                 option.subcount = 1
  2230.                 option.type = "color"
  2231.                 option.position = # self.options
  2232.                 option.flag = (library.flagprefix and library.flagprefix .. " " or "") .. (option.flag or option.text)
  2233.                 option.canInit = (option.canInit ~= nil and option.canInit) or true
  2234.                 option.tip = option.tip and tostring(option.tip)
  2235.                 library.flags[option.flag] = option.color
  2236.                 table.insert(self.options, option)
  2237.                 library.options[option.flag] = option
  2238.  
  2239.                 function option:AddColor(subOption)
  2240.                     subOption = typeof(subOption) == "table" and subOption or {}
  2241.                     subOption.sub = true
  2242.                     subOption.subpos = self.subcount * 24
  2243.                     function subOption:getMain()
  2244.                         return option.main
  2245.                     end
  2246.                     self.subcount = self.subcount + 1
  2247.                     return section:AddColor(subOption)
  2248.                 end
  2249.  
  2250.                 if option.trans then
  2251.                     library.flags[option.flag .. " Transparency"] = option.trans
  2252.                 end
  2253.  
  2254.                 if library.hasInit and self.hasInit then
  2255.                     library.createColor(option, self.content)
  2256.                 else
  2257.                     option.Init = library.createColor
  2258.                 end
  2259.  
  2260.                 return option
  2261.             end
  2262.  
  2263.             function section:SetTitle(newTitle)
  2264.                 self.title = tostring(newTitle)
  2265.                 if self.titleText then
  2266.                     self.titleText.Text = tostring(newTitle)
  2267.                 end
  2268.             end
  2269.  
  2270.             function section:Init()
  2271.                 if self.hasInit then
  2272.                     return
  2273.                 end
  2274.                 self.hasInit = true
  2275.  
  2276.                 self.main = library:Create("Frame", {
  2277.                     BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  2278.                     BorderColor3 = Color3.new(),
  2279.                     Parent = column.main
  2280.                 })
  2281.  
  2282.                 self.content = library:Create("Frame", {
  2283.                     Size = UDim2.new(1, 0, 1, 0),
  2284.                     BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  2285.                     BorderColor3 = Color3.fromRGB(60, 60, 60),
  2286.                     BorderMode = Enum.BorderMode.Inset,
  2287.                     Parent = self.main
  2288.                 })
  2289.  
  2290.                 library:Create("ImageLabel", {
  2291.                     Size = UDim2.new(1, - 2, 1, - 2),
  2292.                     Position = UDim2.new(0, 1, 0, 1),
  2293.                     BackgroundTransparency = 1,
  2294.                     Image = "rbxassetid://2592362371",
  2295.                     ImageColor3 = Color3.new(),
  2296.                     ScaleType = Enum.ScaleType.Slice,
  2297.                     SliceCenter = Rect.new(2, 2, 62, 62),
  2298.                     Parent = self.main
  2299.                 })
  2300.  
  2301.                 table.insert(library.theme, library:Create("Frame", {
  2302.                     Size = UDim2.new(1, 0, 0, 1),
  2303.                     BackgroundColor3 = library.flags["Menu Accent Color"],
  2304.                     BorderSizePixel = 0,
  2305.                     BorderMode = Enum.BorderMode.Inset,
  2306.                     Parent = self.main
  2307.                 }))
  2308.  
  2309.                 local layout = library:Create("UIListLayout", {
  2310.                     HorizontalAlignment = Enum.HorizontalAlignment.Center,
  2311.                     SortOrder = Enum.SortOrder.LayoutOrder,
  2312.                     Padding = UDim.new(0, 2),
  2313.                     Parent = self.content
  2314.                 })
  2315.  
  2316.                 library:Create("UIPadding", {
  2317.                     PaddingTop = UDim.new(0, 12),
  2318.                     Parent = self.content
  2319.                 })
  2320.  
  2321.                 self.titleText = library:Create("TextLabel", {
  2322.                     AnchorPoint = Vector2.new(0, 0.5),
  2323.                     Position = UDim2.new(0, 12, 0, 0),
  2324.                     Size = UDim2.new(0, textService:GetTextSize(self.title, 15, Enum.Font.Code, Vector2.new(9e9, 9e9)).X + 10, 0, 3),
  2325.                     BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  2326.                     BorderSizePixel = 0,
  2327.                     Text = self.title,
  2328.                     TextSize = 15,
  2329.                     Font = Enum.Font.Code,
  2330.                     TextColor3 = Color3.new(1, 1, 1),
  2331.                     Parent = self.main
  2332.                 })
  2333.  
  2334.                 layout.Changed:connect(function()
  2335.                     self.main.Size = UDim2.new(1, 0, 0, layout.AbsoluteContentSize.Y + 16)
  2336.                 end)
  2337.  
  2338.                 for _, option in next, self.options do
  2339.                     if option.canInit then
  2340.                         option.Init(option, self.content)
  2341.                     end
  2342.                 end
  2343.             end
  2344.  
  2345.             if library.hasInit and self.hasInit then
  2346.                 section:Init()
  2347.             end
  2348.  
  2349.             return section
  2350.         end
  2351.  
  2352.         function column:Init()
  2353.             if self.hasInit then
  2354.                 return
  2355.             end
  2356.             self.hasInit = true
  2357.  
  2358.             self.main = library:Create("ScrollingFrame", {
  2359.                 ZIndex = 2,
  2360.                 Position = UDim2.new(0, 6 + (self.position * 239), 0, 2),
  2361.                 Size = UDim2.new(0, 233, 1, - 4),
  2362.                 BackgroundTransparency = 1,
  2363.                 BorderSizePixel = 0,
  2364.                 ScrollBarImageColor3 = Color3.fromRGB(),
  2365.                 ScrollBarThickness = 4,
  2366.                 VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar,
  2367.                 ScrollingDirection = Enum.ScrollingDirection.Y,
  2368.                 Visible = false,
  2369.                 Parent = library.columnHolder
  2370.             })
  2371.  
  2372.             local layout = library:Create("UIListLayout", {
  2373.                 HorizontalAlignment = Enum.HorizontalAlignment.Center,
  2374.                 SortOrder = Enum.SortOrder.LayoutOrder,
  2375.                 Padding = UDim.new(0, 12),
  2376.                 Parent = self.main
  2377.             })
  2378.  
  2379.             library:Create("UIPadding", {
  2380.                 PaddingTop = UDim.new(0, 8),
  2381.                 PaddingLeft = UDim.new(0, 2),
  2382.                 PaddingRight = UDim.new(0, 2),
  2383.                 Parent = self.main
  2384.             })
  2385.  
  2386.             layout.Changed:connect(function()
  2387.                 self.main.CanvasSize = UDim2.new(0, 0, 0, layout.AbsoluteContentSize.Y + 14)
  2388.             end)
  2389.  
  2390.             for _, section in next, self.sections do
  2391.                 if section.canInit and # section.options > 0 then
  2392.                     section:Init()
  2393.                 end
  2394.             end
  2395.         end
  2396.  
  2397.         if library.hasInit and self.hasInit then
  2398.             column:Init()
  2399.         end
  2400.  
  2401.         return column
  2402.     end
  2403.  
  2404.     function tab:Init()
  2405.         if self.hasInit then
  2406.             return
  2407.         end
  2408.         self.hasInit = true
  2409.         local size = textService:GetTextSize(self.title, 18, Enum.Font.Code, Vector2.new(9e9, 9e9)).X + 10
  2410.  
  2411.         self.button = library:Create("TextLabel", {
  2412.             Position = UDim2.new(0, library.tabSize, 0, 22),
  2413.             Size = UDim2.new(0, size, 0, 30),
  2414.             BackgroundTransparency = 1,
  2415.             Text = self.title,
  2416.             TextColor3 = Color3.new(1, 1, 1),
  2417.             TextSize = 15,
  2418.             Font = Enum.Font.Code,
  2419.             TextWrapped = true,
  2420.             ClipsDescendants = true,
  2421.             Parent = library.main
  2422.         })
  2423.         library.tabSize = library.tabSize + size
  2424.  
  2425.         self.button.InputBegan:connect(function(input)
  2426.             if input.UserInputType.Name == "MouseButton1" then
  2427.                 library:selectTab(self)
  2428.             end
  2429.         end)
  2430.  
  2431.         for _, column in next, self.columns do
  2432.             if column.canInit then
  2433.                 column:Init()
  2434.             end
  2435.         end
  2436.     end
  2437.  
  2438.     if self.hasInit then
  2439.         tab:Init()
  2440.     end
  2441.  
  2442.     return tab
  2443. end
  2444.  
  2445. function library:AddWarning(warning)
  2446.     warning = typeof(warning) == "table" and warning or {}
  2447.     warning.text = tostring(warning.text)
  2448.     warning.type = warning.type == "confirm" and "confirm" or ""
  2449.  
  2450.     local answer
  2451.     function warning:Show()
  2452.         library.warning = warning
  2453.         if warning.main and warning.type == "" then
  2454.             return
  2455.         end
  2456.         if library.popup then
  2457.             library.popup:Close()
  2458.         end
  2459.         if not warning.main then
  2460.             warning.main = library:Create("TextButton", {
  2461.                 ZIndex = 2,
  2462.                 Size = UDim2.new(1, 0, 1, 0),
  2463.                 BackgroundTransparency = 0.6,
  2464.                 BackgroundColor3 = Color3.new(),
  2465.                 BorderSizePixel = 0,
  2466.                 Text = "",
  2467.                 AutoButtonColor = false,
  2468.                 Parent = library.main
  2469.             })
  2470.  
  2471.             warning.message = library:Create("TextLabel", {
  2472.                 ZIndex = 2,
  2473.                 Position = UDim2.new(0, 20, 0.5, - 60),
  2474.                 Size = UDim2.new(1, - 40, 0, 40),
  2475.                 BackgroundTransparency = 1,
  2476.                 TextSize = 16,
  2477.                 Font = Enum.Font.Code,
  2478.                 TextColor3 = Color3.new(1, 1, 1),
  2479.                 TextWrapped = true,
  2480.                 RichText = true,
  2481.                 Parent = warning.main
  2482.             })
  2483.  
  2484.             if warning.type == "confirm" then
  2485.                 local button = library:Create("TextLabel", {
  2486.                     ZIndex = 2,
  2487.                     Position = UDim2.new(0.5, - 105, 0.5, - 10),
  2488.                     Size = UDim2.new(0, 100, 0, 20),
  2489.                     BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  2490.                     BorderColor3 = Color3.new(),
  2491.                     Text = "Yes",
  2492.                     TextSize = 16,
  2493.                     Font = Enum.Font.Code,
  2494.                     TextColor3 = Color3.new(1, 1, 1),
  2495.                     Parent = warning.main
  2496.                 })
  2497.  
  2498.                 library:Create("ImageLabel", {
  2499.                     ZIndex = 2,
  2500.                     Size = UDim2.new(1, 0, 1, 0),
  2501.                     BackgroundTransparency = 1,
  2502.                     Image = "rbxassetid://2454009026",
  2503.                     ImageColor3 = Color3.new(),
  2504.                     ImageTransparency = 0.8,
  2505.                     Parent = button
  2506.                 })
  2507.  
  2508.                 library:Create("ImageLabel", {
  2509.                     ZIndex = 2,
  2510.                     Size = UDim2.new(1, 0, 1, 0),
  2511.                     BackgroundTransparency = 1,
  2512.                     Image = "rbxassetid://2592362371",
  2513.                     ImageColor3 = Color3.fromRGB(60, 60, 60),
  2514.                     ScaleType = Enum.ScaleType.Slice,
  2515.                     SliceCenter = Rect.new(2, 2, 62, 62),
  2516.                     Parent = button
  2517.                 })
  2518.  
  2519.                 local button1 = library:Create("TextLabel", {
  2520.                     ZIndex = 2,
  2521.                     Position = UDim2.new(0.5, 5, 0.5, - 10),
  2522.                     Size = UDim2.new(0, 100, 0, 20),
  2523.                     BackgroundColor3 = Color3.fromRGB(40, 40, 40),
  2524.                     BorderColor3 = Color3.new(),
  2525.                     Text = "No",
  2526.                     TextSize = 16,
  2527.                     Font = Enum.Font.Code,
  2528.                     TextColor3 = Color3.new(1, 1, 1),
  2529.                     Parent = warning.main
  2530.                 })
  2531.  
  2532.                 library:Create("ImageLabel", {
  2533.                     ZIndex = 2,
  2534.                     Size = UDim2.new(1, 0, 1, 0),
  2535.                     BackgroundTransparency = 1,
  2536.                     Image = "rbxassetid://2454009026",
  2537.                     ImageColor3 = Color3.new(),
  2538.                     ImageTransparency = 0.8,
  2539.                     Parent = button1
  2540.                 })
  2541.  
  2542.                 library:Create("ImageLabel", {
  2543.                     ZIndex = 2,
  2544.                     Size = UDim2.new(1, 0, 1, 0),
  2545.                     BackgroundTransparency = 1,
  2546.                     Image = "rbxassetid://2592362371",
  2547.                     ImageColor3 = Color3.fromRGB(60, 60, 60),
  2548.                     ScaleType = Enum.ScaleType.Slice,
  2549.                     SliceCenter = Rect.new(2, 2, 62, 62),
  2550.                     Parent = button1
  2551.                 })
  2552.  
  2553.                 button.InputBegan:connect(function(input)
  2554.                     if input.UserInputType.Name == "MouseButton1" then
  2555.                         answer = true
  2556.                     end
  2557.                 end)
  2558.  
  2559.                 button1.InputBegan:connect(function(input)
  2560.                     if input.UserInputType.Name == "MouseButton1" then
  2561.                         answer = false
  2562.                     end
  2563.                 end)
  2564.             else
  2565.                 local button = library:Create("TextLabel", {
  2566.                     ZIndex = 2,
  2567.                     Position = UDim2.new(0.5, - 50, 0.5, - 10),
  2568.                     Size = UDim2.new(0, 100, 0, 20),
  2569.                     BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  2570.                     BorderColor3 = Color3.new(),
  2571.                     Text = "OK",
  2572.                     TextSize = 16,
  2573.                     Font = Enum.Font.Code,
  2574.                     TextColor3 = Color3.new(1, 1, 1),
  2575.                     Parent = warning.main
  2576.                 })
  2577.  
  2578.                 library:Create("ImageLabel", {
  2579.                     ZIndex = 2,
  2580.                     Size = UDim2.new(1, 0, 1, 0),
  2581.                     BackgroundTransparency = 1,
  2582.                     Image = "rbxassetid://2454009026",
  2583.                     ImageColor3 = Color3.new(),
  2584.                     ImageTransparency = 0.8,
  2585.                     Parent = button
  2586.                 })
  2587.  
  2588.                 library:Create("ImageLabel", {
  2589.                     ZIndex = 2,
  2590.                     AnchorPoint = Vector2.new(0.5, 0.5),
  2591.                     Position = UDim2.new(0.5, 0, 0.5, 0),
  2592.                     Size = UDim2.new(1, - 2, 1, - 2),
  2593.                     BackgroundTransparency = 1,
  2594.                     Image = "rbxassetid://3570695787",
  2595.                     ImageColor3 = Color3.fromRGB(50, 50, 50),
  2596.                     Parent = button
  2597.                 })
  2598.  
  2599.                 button.InputBegan:connect(function(input)
  2600.                     if input.UserInputType.Name == "MouseButton1" then
  2601.                         answer = true
  2602.                     end
  2603.                 end)
  2604.             end
  2605.         end
  2606.         warning.main.Visible = true
  2607.         warning.message.Text = warning.text
  2608.  
  2609.         repeat
  2610.             wait()
  2611.         until answer ~= nil
  2612.         spawn(warning.Close)
  2613.         library.warning = nil
  2614.         return answer
  2615.     end
  2616.  
  2617.     function warning:Close()
  2618.         answer = nil
  2619.         if not warning.main then
  2620.             return
  2621.         end
  2622.         warning.main.Visible = false
  2623.     end
  2624.  
  2625.     return warning
  2626. end
  2627.  
  2628. function library:Close()
  2629.     self.open = not self.open
  2630.     if self.open then
  2631.         inputService.MouseIconEnabled = false
  2632.     else
  2633.         inputService.MouseIconEnabled = self.mousestate
  2634.     end
  2635.     if self.main then
  2636.         if self.popup then
  2637.             self.popup:Close()
  2638.         end
  2639.         self.main.Visible = self.open
  2640.         self.cursor.Visible = self.open
  2641.         self.cursor1.Visible = self.open
  2642.     end
  2643. end
  2644.  
  2645. function library:Init()
  2646.     if self.hasInit then
  2647.         return
  2648.     end
  2649.     self.hasInit = true
  2650.  
  2651.     self.base = library:Create("ScreenGui", {
  2652.         IgnoreGuiInset = true,
  2653.         ZIndexBehavior = Enum.ZIndexBehavior.Global
  2654.     })
  2655.     if runService:IsStudio() then
  2656.         self.base.Parent = script.Parent.Parent
  2657.     elseif syn then
  2658.         pcall(function()
  2659.             syn.protect_gui(self.base)
  2660.         end)
  2661.         self.base.Parent = game:GetService"CoreGui"
  2662.     end
  2663.  
  2664.     self.main = self:Create("ImageButton", {
  2665.         AutoButtonColor = false,
  2666.         Position = UDim2.new(0, 100, 0, 46),
  2667.         Size = UDim2.new(0, 500, 0, 600),
  2668.         BackgroundColor3 = Color3.fromRGB(20, 20, 20),
  2669.         BorderColor3 = Color3.new(),
  2670.         ScaleType = Enum.ScaleType.Tile,
  2671.         Modal = true,
  2672.         Visible = false,
  2673.         Parent = self.base
  2674.     })
  2675.  
  2676.     self.top = self:Create("Frame", {
  2677.         Size = UDim2.new(1, 0, 0, 50),
  2678.         BackgroundColor3 = Color3.fromRGB(30, 30, 30),
  2679.         BorderColor3 = Color3.new(),
  2680.         Parent = self.main
  2681.     })
  2682.  
  2683.     self:Create("TextLabel", {
  2684.         Position = UDim2.new(0, 6, 0, - 1),
  2685.         Size = UDim2.new(0, 0, 0, 20),
  2686.         BackgroundTransparency = 1,
  2687.         Text = tostring(self.title),
  2688.         Font = Enum.Font.Code,
  2689.         TextSize = 18,
  2690.         TextColor3 = Color3.new(1, 1, 1),
  2691.         TextXAlignment = Enum.TextXAlignment.Left,
  2692.         Parent = self.main
  2693.     })
  2694.  
  2695.     table.insert(library.theme, self:Create("Frame", {
  2696.         Size = UDim2.new(1, 0, 0, 1),
  2697.         Position = UDim2.new(0, 0, 0, 24),
  2698.         BackgroundColor3 = library.flags["Menu Accent Color"],
  2699.         BorderSizePixel = 0,
  2700.         Parent = self.main
  2701.     }))
  2702.  
  2703.     library:Create("ImageLabel", {
  2704.         Size = UDim2.new(1, 0, 1, 0),
  2705.         BackgroundTransparency = 1,
  2706.         Image = "rbxassetid://2454009026",
  2707.         ImageColor3 = Color3.new(),
  2708.         ImageTransparency = 0.4,
  2709.         Parent = top
  2710.     })
  2711.  
  2712.     self.tabHighlight = self:Create("Frame", {
  2713.         BackgroundColor3 = library.flags["Menu Accent Color"],
  2714.         BorderSizePixel = 0,
  2715.         Parent = self.main
  2716.     })
  2717.     table.insert(library.theme, self.tabHighlight)
  2718.  
  2719.     self.columnHolder = self:Create("Frame", {
  2720.         Position = UDim2.new(0, 5, 0, 55),
  2721.         Size = UDim2.new(1, - 10, 1, - 60),
  2722.         BackgroundTransparency = 1,
  2723.         Parent = self.main
  2724.     })
  2725.  
  2726.     self.cursor = self:Create("Triangle", {
  2727.         Color = Color3.fromRGB(180, 180, 180),
  2728.         Transparency = 0.6,
  2729.     })
  2730.     self.cursor1 = self:Create("Triangle", {
  2731.         Color = Color3.fromRGB(240, 240, 240),
  2732.         Transparency = 0.6,
  2733.     })
  2734.  
  2735.     self.tooltip = self:Create("TextLabel", {
  2736.         ZIndex = 2,
  2737.         BackgroundTransparency = 1,
  2738.         BorderSizePixel = 0,
  2739.         TextSize = 15,
  2740.         Font = Enum.Font.Code,
  2741.         TextColor3 = Color3.new(1, 1, 1),
  2742.         Visible = true,
  2743.         Parent = self.base
  2744.     })
  2745.  
  2746.     self:Create("Frame", {
  2747.         AnchorPoint = Vector2.new(0.5, 0),
  2748.         Position = UDim2.new(0.5, 0, 0, 0),
  2749.         Size = UDim2.new(1, 10, 1, 0),
  2750.         Style = Enum.FrameStyle.RobloxRound,
  2751.         Parent = self.tooltip
  2752.     })
  2753.  
  2754.     self:Create("ImageLabel", {
  2755.         Size = UDim2.new(1, 0, 1, 0),
  2756.         BackgroundTransparency = 1,
  2757.         Image = "rbxassetid://2592362371",
  2758.         ImageColor3 = Color3.fromRGB(60, 60, 60),
  2759.         ScaleType = Enum.ScaleType.Slice,
  2760.         SliceCenter = Rect.new(2, 2, 62, 62),
  2761.         Parent = self.main
  2762.     })
  2763.  
  2764.     self:Create("ImageLabel", {
  2765.         Size = UDim2.new(1, - 2, 1, - 2),
  2766.         Position = UDim2.new(0, 1, 0, 1),
  2767.         BackgroundTransparency = 1,
  2768.         Image = "rbxassetid://2592362371",
  2769.         ImageColor3 = Color3.new(),
  2770.         ScaleType = Enum.ScaleType.Slice,
  2771.         SliceCenter = Rect.new(2, 2, 62, 62),
  2772.         Parent = self.main
  2773.     })
  2774.  
  2775.     self.top.InputBegan:connect(function(input)
  2776.         if input.UserInputType.Name == "MouseButton1" then
  2777.             dragObject = self.main
  2778.             dragging = true
  2779.             dragStart = input.Position
  2780.             startPos = dragObject.Position
  2781.             if library.popup then
  2782.                 library.popup:Close()
  2783.             end
  2784.         end
  2785.     end)
  2786.     self.top.InputChanged:connect(function(input)
  2787.         if dragging and input.UserInputType.Name == "MouseMovement" then
  2788.             dragInput = input
  2789.         end
  2790.     end)
  2791.     self.top.InputEnded:connect(function(input)
  2792.         if input.UserInputType.Name == "MouseButton1" then
  2793.             dragging = false
  2794.         end
  2795.     end)
  2796.  
  2797.     function self:selectTab(tab)
  2798.         if self.currentTab == tab then
  2799.             return
  2800.         end
  2801.         if library.popup then
  2802.             library.popup:Close()
  2803.         end
  2804.         if self.currentTab then
  2805.             self.currentTab.button.TextColor3 = Color3.fromRGB(255, 255, 255)
  2806.             for _, column in next, self.currentTab.columns do
  2807.                 column.main.Visible = false
  2808.             end
  2809.         end
  2810.         self.main.Size = UDim2.new(0, 16 + ((# tab.columns < 2 and 2 or # tab.columns) * 239), 0, 600)
  2811.         self.currentTab = tab
  2812.         tab.button.TextColor3 = library.flags["Menu Accent Color"]
  2813.         if syn then
  2814.             self.tabHighlight:TweenPosition(UDim2.new(0, tab.button.Position.X.Offset, 0, 50), "Out", "Quad", 0.2, true)
  2815.             self.tabHighlight:TweenSize(UDim2.new(0, tab.button.AbsoluteSize.X, 0, - 1), "Out", "Quad", 0.1, true)
  2816.         end
  2817.         for _, column in next, tab.columns do
  2818.             column.main.Visible = true
  2819.         end
  2820.     end
  2821.  
  2822.     spawn(function()
  2823.         while library do
  2824.             wait(1)
  2825.             local Configs = self:GetConfigs()
  2826.             for _, config in next, Configs do
  2827.                 if not table.find(self.options["Config List"].values, config) then
  2828.                     self.options["Config List"]:AddValue(config)
  2829.                 end
  2830.             end
  2831.             for _, config in next, self.options["Config List"].values do
  2832.                 if not table.find(Configs, config) then
  2833.                     self.options["Config List"]:RemoveValue(config)
  2834.                 end
  2835.             end
  2836.         end
  2837.     end)
  2838.  
  2839.     for _, tab in next, self.tabs do
  2840.         if tab.canInit then
  2841.             tab:Init()
  2842.             self:selectTab(tab)
  2843.         end
  2844.     end
  2845.  
  2846.     self:AddConnection(inputService.InputEnded, function(input)
  2847.         if input.UserInputType.Name == "MouseButton1" and self.slider then
  2848.             self.slider.slider.BorderColor3 = Color3.new()
  2849.             self.slider = nil
  2850.         end
  2851.     end)
  2852.  
  2853.     self:AddConnection(inputService.InputChanged, function(input)
  2854.         if not self.open then
  2855.             return
  2856.         end
  2857.  
  2858.         if input.UserInputType.Name == "MouseMovement" then
  2859.             if self.cursor then
  2860.                 local mouse = inputService:GetMouseLocation()
  2861.                 local MousePos = Vector2.new(mouse.X, mouse.Y)
  2862.                 self.cursor.PointA = MousePos
  2863.                 self.cursor.PointB = MousePos + Vector2.new(12, 12)
  2864.                 self.cursor.PointC = MousePos + Vector2.new(12, 12)
  2865.                 self.cursor1.PointA = MousePos
  2866.                 self.cursor1.PointB = MousePos + Vector2.new(11, 11)
  2867.                 self.cursor1.PointC = MousePos + Vector2.new(11, 11)
  2868.             end
  2869.             if self.slider then
  2870.                 self.slider:SetValue(self.slider.min + ((input.Position.X - self.slider.slider.AbsolutePosition.X) / self.slider.slider.AbsoluteSize.X) * (self.slider.max - self.slider.min))
  2871.             end
  2872.         end
  2873.         if input == dragInput and dragging and library.draggable then
  2874.             local delta = input.Position - dragStart
  2875.             local yPos = (startPos.Y.Offset + delta.Y) < - 36 and - 36 or startPos.Y.Offset + delta.Y
  2876.             dragObject:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, yPos), "Out", "Quint", 0.1, true)
  2877.         end
  2878.     end)
  2879.  
  2880.     local Old_index
  2881.     Old_index = hookmetamethod(game, "__index", function(t, i)
  2882.         if checkcaller() then
  2883.             return Old_index(t, i)
  2884.         end
  2885.  
  2886.         if library and i == "MouseIconEnabled" then
  2887.             return library.mousestate
  2888.         end
  2889.  
  2890.         return Old_index(t, i)
  2891.     end)
  2892.  
  2893.     local Old_new
  2894.     Old_new = hookmetamethod(game, "__newindex", function(t, i, v)
  2895.         if checkcaller() then
  2896.             return Old_new(t, i, v)
  2897.         end
  2898.  
  2899.         if library and i == "MouseIconEnabled" then
  2900.             library.mousestate = v
  2901.             if library.open then
  2902.                 return
  2903.             end
  2904.         end
  2905.  
  2906.         return Old_new(t, i, v)
  2907.     end)
  2908.  
  2909.     if not getgenv().silent then
  2910.         delay(1, function()
  2911.             self:Close()
  2912.         end)
  2913.     end
  2914. end
  2915.  
  2916. library.SettingsTab = library:AddTab("Settings", 100)
  2917. library.SettingsColumn = library.SettingsTab:AddColumn()
  2918. library.SettingsColumn1 = library.SettingsTab:AddColumn()
  2919.  
  2920. library.SettingsMain = library.SettingsColumn:AddSection"Main"
  2921. library.SettingsMain:AddButton({
  2922.     text = "Unload Cheat",
  2923.     nomouse = true,
  2924.     callback = function()
  2925.         library:Unload()
  2926.         getgenv().Hacky_Criminality = nil
  2927.     end
  2928. })
  2929. library.SettingsMain:AddBind({
  2930.     text = "Panic Key",
  2931.     callback = library.options["Unload Cheat"].callback
  2932. })
  2933.  
  2934. library.SettingsMenu = library.SettingsColumn:AddSection"Menu"
  2935. library.SettingsMenu:AddBind({
  2936.     text = "Open / Close",
  2937.     flag = "UI Toggle",
  2938.     nomouse = true,
  2939.     key = "LeftAlt",
  2940.     callback = function()
  2941.         library:Close()
  2942.     end
  2943. })
  2944. library.SettingsMenu:AddColor({
  2945.     text = "Accent Color",
  2946.     flag = "Menu Accent Color",
  2947.     color = Color3.fromRGB(199, 255, 255),
  2948.     callback = function(Color)
  2949.         if library.currentTab then
  2950.             library.currentTab.button.TextColor3 = Color
  2951.         end
  2952.         for _, obj in next, library.theme do
  2953.             obj[(obj.ClassName == "TextLabel" and "TextColor3") or (obj.ClassName == "ImageLabel" and "ImageColor3") or "BackgroundColor3"] = Color
  2954.         end
  2955.     end
  2956. })
  2957.  
  2958. local Backgrounds = {
  2959.     ["Floral"] = 5553946656,
  2960.     ["Flowers"] = 6071575925,
  2961.     ["Circles"] = 6071579801,
  2962.     ["Hearts"] = 6073763717,
  2963.     ["Polka dots"] = 6214418014,
  2964.     ["Mountains"] = 6214412460,
  2965.     ["Zigzag"] = 6214416834,
  2966.     ["Zigzag 2"] = 6214375242,
  2967.     ["Tartan"] = 6214404863,
  2968.     ["Roses"] = 6214374619,
  2969.     ["Hexagons"] = 6214320051,
  2970.     ["Leopard print"] = 6214318622
  2971. }
  2972. library.SettingsMenu:AddList({
  2973.     text = "Background",
  2974.     flag = "UI Background",
  2975.     max = 6,
  2976.     values = {
  2977.         "Floral",
  2978.         "Flowers",
  2979.         "Circles",
  2980.         "Hearts",
  2981.         "Polka dots",
  2982.         "Mountains",
  2983.         "Zigzag",
  2984.         "Zigzag 2",
  2985.         "Tartan",
  2986.         "Roses",
  2987.         "Hexagons",
  2988.         "Leopard print"
  2989.     },
  2990.     callback = function(Value)
  2991.         if Backgrounds[Value] then
  2992.             library.main.Image = "rbxassetid://" .. Backgrounds[Value]
  2993.         end
  2994.     end
  2995. }):AddColor({
  2996.     flag = "Menu Background Color",
  2997.     color = Color3.new(),
  2998.     callback = function(Color)
  2999.         library.main.ImageColor3 = Color
  3000.     end,
  3001.     trans = 1,
  3002.     calltrans = function(Value)
  3003.         library.main.ImageTransparency = 1 - Value
  3004.     end
  3005. })
  3006. library.SettingsMenu:AddSlider({
  3007.     text = "Tile Size",
  3008.     value = 90,
  3009.     min = 50,
  3010.     max = 500,
  3011.     callback = function(Value)
  3012.         library.main.TileSize = UDim2.new(0, Value, 0, Value)
  3013.     end
  3014. })
  3015.  
  3016. library.ConfigSection = library.SettingsColumn1:AddSection"Configs"
  3017. library.ConfigSection:AddBox({
  3018.     text = "Config Name",
  3019.     skipflag = true
  3020. })
  3021. library.ConfigSection:AddButton({
  3022.     text = "Create",
  3023.     callback = function()
  3024.         library:GetConfigs()
  3025.         writefile(library.foldername .. "/" .. library.flags["Config Name"] .. library.fileext, "{}")
  3026.         library.options["Config List"]:AddValue(library.flags["Config Name"])
  3027.     end
  3028. })
  3029. library.ConfigWarning = library:AddWarning({
  3030.     type = "confirm"
  3031. })
  3032. library.ConfigSection:AddList({
  3033.     text = "Configs",
  3034.     skipflag = true,
  3035.     value = "",
  3036.     flag = "Config List",
  3037.     values = library:GetConfigs()
  3038. })
  3039. library.ConfigSection:AddButton({
  3040.     text = "Save",
  3041.     callback = function()
  3042.         local r, g, b = library.round(library.flags["Menu Accent Color"])
  3043.         library.ConfigWarning.text = "Are you sure you want to save the current settings to config <font color='rgb(" .. r .. "," .. g .. "," .. b .. ")'>" .. library.flags["Config List"] .. "</font>?"
  3044.         if library.ConfigWarning:Show() then
  3045.             library:SaveConfig(library.flags["Config List"])
  3046.         end
  3047.     end
  3048. })
  3049. library.ConfigSection:AddButton({
  3050.     text = "Load",
  3051.     callback = function()
  3052.         local r, g, b = library.round(library.flags["Menu Accent Color"])
  3053.         library.ConfigWarning.text = "Are you sure you want to load config <font color='rgb(" .. r .. "," .. g .. "," .. b .. ")'>" .. library.flags["Config List"] .. "</font>?"
  3054.         if library.ConfigWarning:Show() then
  3055.             library:LoadConfig(library.flags["Config List"])
  3056.         end
  3057.     end
  3058. })
  3059. library.ConfigSection:AddButton({
  3060.     text = "Delete",
  3061.     callback = function()
  3062.         local r, g, b = library.round(library.flags["Menu Accent Color"])
  3063.         library.ConfigWarning.text = "Are you sure you want to delete config <font color='rgb(" .. r .. "," .. g .. "," .. b .. ")'>" .. library.flags["Config List"] .. "</font>?"
  3064.         if ConfigWarning:Show() then
  3065.             local Config = library.flags["Config List"]
  3066.             if table.find(library:GetConfigs(), Config) and isfile(library.foldername .. "/" .. Config .. library.fileext) then
  3067.                 library.options["Config List"]:RemoveValue(Config)
  3068.                 delfile(library.foldername .. "/" .. Config .. library.fileext)
  3069.             end
  3070.         end
  3071.     end
  3072. })
  3073. --LIBRARY END
  3074.  
  3075. --custom notification thing, library required for this to work
  3076. local LastNotification = 0
  3077. function library:SendNotification(duration, message)
  3078.     Notify({
  3079.         Description = message;
  3080.         Title = "Hacky Criminality";
  3081.         Duration = duration;
  3082.     });
  3083. end
  3084.  
  3085. local GameTitle = ""
  3086. local GameList = {
  3087.     ["Criminality"] = 8343259840,
  3088.     ["Combat Warriors"] = 4282985734,
  3089.     ["Randomizer"] = 5307215810
  3090. }
  3091. for Name, ID in next, GameList do
  3092.     if game.GameId == ID then
  3093.         GameTitle = Name
  3094.     elseif game.PlaceId == ID then
  3095.         GameTitle = Name
  3096.     end
  3097. end
  3098.  
  3099. --Compatibility functions
  3100. local function mouse1click(delay)
  3101.     spawn(function()
  3102.         mouse1press()
  3103.         wait(delay or 0.1)
  3104.         mouse1release()
  3105.     end)
  3106. end
  3107. local function mouse2click(delay)
  3108.     spawn(function()
  3109.         keypress(2)
  3110.         wait(delay or 0.1)
  3111.         keprelease(2)
  3112.     end)
  3113. end
  3114. local function keytap(key, delay)
  3115.     spawn(function()
  3116.         keypress(key)
  3117.         wait(delay or 0.1)
  3118.         keyrelease(key)
  3119.     end)
  3120. end
  3121.  
  3122. --Variables
  3123. local RepStorage = game:GetService"ReplicatedStorage"
  3124. local PlayerServ = game:GetService"Players"
  3125. local Client = PlayerServ["LocalPlayer"]
  3126. local Mouse = Client:GetMouse()
  3127. local Settings = settings()
  3128. local Players = {}
  3129. local Camera = workspace.CurrentCamera
  3130. local WTSP = Camera.WorldToScreenPoint
  3131. local WTVP = Camera.WorldToViewportPoint
  3132. local CameraSpoof = {
  3133.     FieldOfView = Camera.FieldOfView
  3134. }
  3135. local Lighting = game:GetService"Lighting"
  3136. local LightingSpoof = {
  3137.     ClockTime = Lighting.ClockTime,
  3138.     Brightness = Lighting.Brightness,
  3139.     Ambient = Lighting.Ambient,
  3140.     OutdoorAmbient = Lighting.OutdoorAmbient,
  3141.     ColorShift_Top = Lighting.ColorShift_Top,
  3142. }
  3143. local NameRequest
  3144. local TeamRequest
  3145. local HealthRequest
  3146. local ClientCharRequest
  3147. local Cowboys, Sheriffs = {}, {}
  3148. local FFC = workspace.FindFirstChild
  3149. local GBB = workspace.GetBoundingBox
  3150. local FFA = workspace.FindFirstAncestor
  3151. local FFCoC = workspace.FindFirstChildOfClass
  3152. local V3Empty = Vector3.new()
  3153. local V3101 = Vector3.new(1, 0, 1)
  3154. local V2Empty = Vector2.new()
  3155. local V211 = Vector2.new(1, 1)
  3156. local V222 = Vector2.new(2, 2)
  3157. local V233 = Vector2.new(3, 3)
  3158.  
  3159. local UniversalBodyParts = {
  3160.     "Head",
  3161.     "UpperTorso",
  3162.     "LowerTorso",
  3163.     "Torso",
  3164.     "Left Arm",
  3165.     "LeftUpperArm",
  3166.     "LeftLowerArm",
  3167.     "LeftHand",
  3168.     "Right Arm",
  3169.     "RightUpperArm",
  3170.     "RightLowerArm",
  3171.     "RightHand",
  3172.     "Left Leg",
  3173.     "LeftUpperLeg",
  3174.     "LeftLowerLeg",
  3175.     "LeftFoot",
  3176.     "Right Leg",
  3177.     "RightUpperLeg",
  3178.     "RightLowerLeg",
  3179.     "RightFoot"
  3180. }
  3181. local BBBodyParts = {
  3182.     "Head",
  3183.     "Neck",
  3184.     "Chest",
  3185.     "Abdomen",
  3186.     "Hips",
  3187.     "LeftHand",
  3188.     "LeftArm",
  3189.     "LeftForearm",
  3190.     "RightHand",
  3191.     "RightArm",
  3192.     "RightForearm",
  3193.     "LeftFoot",
  3194.     "LeftLeg",
  3195.     "LeftForeleg",
  3196.     "RightFoot",
  3197.     "RightLeg",
  3198.     "RightForeleg"
  3199. }
  3200. local R6BodyParts = {
  3201.     "Head",
  3202.     "Torso",
  3203.     "Left Arm",
  3204.     "Right Arm",
  3205.     "Left Leg",
  3206.     "Right Leg"
  3207. }
  3208. local AOSBodyParts = {
  3209.     "Head",
  3210.     "Shoulders",
  3211.     "Torso",
  3212.     "UpperTorso",
  3213.     "MidTorso",
  3214.     "LowerTorso",
  3215.     "UpperLeftArm",
  3216.     "LowerLeftArm",
  3217.     "LeftHandle",
  3218.     "UpperLeftLeg",
  3219.     "LowerLeftLeg",
  3220.     "LeftFoot",
  3221.     "UpperRightArm",
  3222.     "LowerRightArm",
  3223.     "RightHandle",
  3224.     "UpperRightLeg",
  3225.     "LowerRightLeg",
  3226.     "RightFoot"
  3227. }
  3228. local SOABodyParts = {
  3229.     "Head",
  3230.     "Base",
  3231.     "LeftArmUpper",
  3232.     "LeftArmMid",
  3233.     "LeftArmLower",
  3234.     "RightArmUpper",
  3235.     "RightArmMid",
  3236.     "RightArmLower",
  3237.     "LeftLegUpper",
  3238.     "LeftLegMid",
  3239.     "LeftLegLower",
  3240.     "RightLegUpper",
  3241.     "RighLegMid",
  3242.     "RightLegLower",
  3243. }
  3244. local UseBodyParts = GameTitle == "Bad Business" and BBBodyParts or GameTitle == "Phantom Forces" and R6BodyParts or GameTitle == "Ace Of Spadez" and AOSBodyParts or GameTitle == "State Of Anarchy" and SOABodyParts or UniversalBodyParts
  3245.  
  3246. --Get functions
  3247. local function GetHitboxFromChar(Character, BodyPart)
  3248.     BodyPart = BodyPart or "Head"
  3249.     if not Character then
  3250.         return
  3251.     end
  3252.     if GameTitle == "Bad Business" then
  3253.         return FFC(Character.Body, BodyPart) or FFC(Character.Body, "Chest")
  3254.     elseif GameTitle == "Project Lazarus" then
  3255.         BodyPart = BodyPart == "Head" and "HeadBox" or "Torso"
  3256.         return FFC(Character, BodyPart)
  3257.     else
  3258.         return FFC(Character, BodyPart) or FFC(Character, "UpperTorso")
  3259.     end
  3260. end
  3261.  
  3262. local RayParams = RaycastParams.new()
  3263. RayParams.FilterType = Enum.RaycastFilterType.Blacklist
  3264. RayParams.IgnoreWater = true
  3265. local function RayCheck(ClientChar, To, Distance)
  3266.     local Ignores = {
  3267.         Camera,
  3268.         ClientChar
  3269.     }
  3270.     if GameTitle == "Bad Business" then
  3271.         Ignores[3] = FFC(workspace, "Arms")
  3272.         --Ignores[#Ignores + 1] = ClientChar and FFC(workspace, ClientChar.Backpack.Equipped.Value.Name)
  3273.         Ignores[4] = workspace.NonProjectileGeometry
  3274.         Ignores[5] = workspace.Effects
  3275.         Ignores[6] = workspace.Spawns
  3276.         Ignores[7] = workspace.Ragdolls
  3277.         Ignores[8] = workspace.Gameplay
  3278.         Ignores[9] = workspace.Throwables
  3279.     elseif GameTitle == "Phantom Forces" then
  3280.         Ignores[3] = workspace.Ignore
  3281.     end
  3282.     RayParams.FilterDescendantsInstances = Ignores
  3283.     return workspace:Raycast(Camera.CFrame.p, (To - Camera.CFrame.p).Unit * Distance, RayParams)
  3284. end
  3285.  
  3286. local Sub = Vector3.new(- 0.1, - 0.1, - 0.1)
  3287. local function GetCorners(Object, Esp)
  3288.     local CF = Object.CFrame
  3289.     local Size = (Object.Size / 2)
  3290.     Size = Esp and Size or Size - Sub
  3291.     return {
  3292.         Vector3.new(CF.X + Size.X, CF.Y + Size.Y, CF.Z + Size.Z);
  3293.         Vector3.new(CF.X - Size.X, CF.Y + Size.Y, CF.Z + Size.Z);
  3294.  
  3295.         Vector3.new(CF.X - Size.X, CF.Y - Size.Y, CF.Z - Size.Z);
  3296.         Vector3.new(CF.X + Size.X, CF.Y - Size.Y, CF.Z - Size.Z);
  3297.  
  3298.         Vector3.new(CF.X - Size.X, CF.Y + Size.Y, CF.Z - Size.Z);
  3299.         Vector3.new(CF.X + Size.X, CF.Y + Size.Y, CF.Z - Size.Z);
  3300.  
  3301.         Vector3.new(CF.X - Size.X, CF.Y - Size.Y, CF.Z + Size.Z);
  3302.         Vector3.new(CF.X + Size.X, CF.Y - Size.Y, CF.Z + Size.Z);
  3303.     }
  3304. end
  3305.  
  3306. --Player data
  3307. local ESPObjects = {}
  3308.  
  3309. local function Track(Player)
  3310.     -- too lazy to add a proper check, discontinued anyway so
  3311.     if not (Player.ClassName == "Player" or Player.ClassName == "Folder") then
  3312.         return
  3313.     end
  3314.  
  3315.     for i, v in next, ESPObjects do
  3316.         if not v.Active then
  3317.             v.Active = true
  3318.             ESPObjects[Player] = v
  3319.             break
  3320.         end
  3321.     end
  3322.     if not ESPObjects[Player] then
  3323.         ESPObjects[Player] = {
  3324.             ChamsOutline = library:Create("Folder", {
  3325.                 Parent = library.base
  3326.             }),
  3327.             Chams = library:Create("Folder", {
  3328.                 Parent = library.base
  3329.             }),
  3330.             ChamsStep = 0,
  3331.             BoxOutline = library:Create("Square", {
  3332.                 Thickness = 1
  3333.             }),
  3334.             BoxInline = library:Create("Square", {
  3335.                 Thickness = 1
  3336.             }),
  3337.             Box = library:Create("Square", {
  3338.                 Thickness = 1
  3339.             }),
  3340.             LookAt = library:Create("Line", {
  3341.                 Thickness = 1
  3342.             }),
  3343.             NameText = library:Create("Text", {
  3344.                 Size = 15,
  3345.                 Font = 3,
  3346.                 Center = true,
  3347.                 Outline = true
  3348.             }),
  3349.             ToolText = library:Create("Text", {
  3350.                 Size = 15,
  3351.                 Font = 3,
  3352.                 Center = true,
  3353.                 Outline = true
  3354.             }),
  3355.             InventoryText = library:Create("Text", {
  3356.                 Size = 15,
  3357.                 Font = 3,
  3358.                 Center = true,
  3359.                 Outline = true
  3360.             }),
  3361.             DistanceText = library:Create("Text", {
  3362.                 Size = 15,
  3363.                 Font = 3,
  3364.                 Center = true,
  3365.                 Outline = true
  3366.             }),
  3367.             BarOutline = library:Create("Square", {
  3368.                 Filled = true
  3369.             }),
  3370.             Bar = library:Create("Square", {
  3371.                 Filled = true
  3372.             }),
  3373.             HealthText = library:Create("Text", {
  3374.                 Color = Color3.new(1, 1, 1),
  3375.                 Size = 14,
  3376.                 Font = 3,
  3377.                 Center = true,
  3378.                 Outline = true
  3379.             }),
  3380.             DirectionLine = library:Create("Line", {
  3381.                 Thickness = 1
  3382.             }),
  3383.             DirectionDot = library:Create("Square", {
  3384.                 Size = Vector2.new(7, 7),
  3385.                 Filled = true
  3386.             }),
  3387.             --RadarHeight = library:Create("TextLabel", {BackgroundTransparency = 1, Text = "T", TextColor3 = Color3.new(), Font = Enum.Font.SciFi, TextSize = 13}),
  3388.             RadarBlip = library:Create("Circle", {
  3389.                 Radius = 4,
  3390.                 Filled = true
  3391.             }),
  3392.             OOVArrow = library:Create"Triangle",
  3393.             Active = true,
  3394.  
  3395.             Invis = function()
  3396.                 ESPObjects[Player].Visible = false
  3397.                 ESPObjects[Player].BoxOutline.Visible = false
  3398.                 ESPObjects[Player].BoxInline.Visible = false
  3399.                 ESPObjects[Player].Box.Visible = false
  3400.                 ESPObjects[Player].BarOutline.Visible = false
  3401.                 ESPObjects[Player].Bar.Visible = false
  3402.                 ESPObjects[Player].HealthText.Visible = false
  3403.                 ESPObjects[Player].LookAt.Visible = false
  3404.                 ESPObjects[Player].NameText.Visible = false
  3405.                 ESPObjects[Player].ToolText.Visible = false
  3406.                 ESPObjects[Player].InventoryText.Visible = false
  3407.                 ESPObjects[Player].DistanceText.Visible = false
  3408.                 ESPObjects[Player].DirectionLine.Visible = false
  3409.                 ESPObjects[Player].DirectionDot.Visible = false
  3410.             end,
  3411.  
  3412.             InvisChams = function()
  3413.                 ESPObjects[Player].ChamsVisible = false
  3414.                 for _, Cham in next, ESPObjects[Player].Chams:GetChildren() do
  3415.                     Cham.Transparency = 1
  3416.                 end
  3417.             end,
  3418.  
  3419.             InvisChamsOutline = function()
  3420.                 ESPObjects[Player].ChamsOutlineVisible = false
  3421.                 for _, Cham in next, ESPObjects[Player].ChamsOutline:GetChildren() do
  3422.                     Cham.Transparency = 1
  3423.                 end
  3424.             end,
  3425.  
  3426.             InvisRadar = function()
  3427.                 ESPObjects[Player].RadarVisible = false
  3428.                 ESPObjects[Player].RadarBlip.Visible = false
  3429.             end
  3430.         }
  3431.     end
  3432.  
  3433.     local Character
  3434.     local MaxHealth
  3435.     Players[Player] = setmetatable({
  3436.         Priority = false,
  3437.         Whitelist = false,
  3438.         LastPosition = V3Empty
  3439.     }, {
  3440.         __index = function(self, index)
  3441.             if index == "Character" then
  3442.                 if Player.ClassName == "Model" then
  3443.                     Character = Player
  3444.                 else
  3445.                     if GameTitle == "Phantom Forces" then
  3446.                         if Player == Client then
  3447.                             Character = Client.Character and FFC(Client.Character, "HumanoidRootPart") and Client.Character
  3448.                         else
  3449.                             if NameRequest[Player] and NameRequest[Player].torso then
  3450.                                 Character = NameRequest[Player].torso.Parent
  3451.                             end
  3452.                         end
  3453.                     elseif GameTitle == "Bad Business" then
  3454.                         Character = NameRequest[Player]
  3455.                         Character = Character and Character.Parent == workspace.Characters and Character
  3456.                     elseif GameTitle == "Operation Scorpion" then
  3457.                         Character = FFC(Player, "Vars") and Player.Vars["isAlive"].Value and Player.Character
  3458.                     elseif GameTitle == "Hedgerows" then
  3459.                         Character = Player.Character and Player.Character.Parent and Player.Character
  3460.                     elseif GameTitle == "Recoil" then
  3461.                         Character = FFC(workspace, Player.Name)
  3462.                     else
  3463.                         Character = Player.Character or FFC(workspace, Player.Name)
  3464.                         if Character then
  3465.                             if GameTitle == "Arsenal" then
  3466.                                 Character = FFC(Character, "Spawned") and Character
  3467.                             elseif GameTitle == "MURDER" then
  3468.                                 Character = FFC(Player, "Status") and Player.Status.Alive.Value and Character
  3469.                             elseif GameTitle == "Ace Of Spadez" then
  3470.                                 Character = Character.Parent and Character.Parent.Name ~= "Spectators" and Character
  3471.                             elseif GameTitle == "Q-Clash" then
  3472.                                 Character = FFCoC(Character, "BillboardGui", true)
  3473.                             end
  3474.                         end
  3475.                     end
  3476.                 end
  3477.                 if Character then
  3478.                     if Player ~= Client and not library.flags["Aimbot Ignore Spawn Protection"] then
  3479.                         if GameTitle == "Bad Business" then
  3480.                             if FFC(Character, "ShieldEmitter", true) then
  3481.                                 if Character.Root.ShieldEmitter.Enabled then
  3482.                                     return
  3483.                                 end
  3484.                             end
  3485.                         elseif GameTitle ~= "Phantom Forces" then
  3486.                             if FFC(Character, "ForceField") then
  3487.                                 return
  3488.                             end
  3489.                         end
  3490.                     end
  3491.                     return Character
  3492.                 end
  3493.             else
  3494.                 if not Character then
  3495.                     return (index == "Health" or index == "MaxHealth" and 0)
  3496.                 end
  3497.                 if index == "Health" then
  3498.                     local Health
  3499.                     if GameTitle == "Bad Business" then
  3500.                         Health, MaxHealth = FFC(Character, "Health") and Character.Health.Value, 150
  3501.                     elseif GameTitle == "Phantom Forces" then
  3502.                         Health, MaxHealth = HealthRequest:getplayerhealth(Player), 100
  3503.                     elseif GameTitle == "MURDER" or GameTitle == "Arsenal" or GameTitle == "Unit: Classified" then
  3504.                         Health, MaxHealth = FFC(Player, "NRPBS") and Player.NRPBS.Health.Value, Player.NRPBS.MaxHealth.Value
  3505.                         --elseif GameTitle == "Q-Clash" then
  3506.                         --  Health, MaxHealth = HealthRequest(Character)
  3507.                     else
  3508.                         local Humanoid = FFCoC(Character, "Humanoid")
  3509.                         if Humanoid then
  3510.                             Health, MaxHealth = Humanoid.Health, Humanoid.MaxHealth
  3511.                         end
  3512.                     end
  3513.                     return Health and (Health > 0 and Health) or 0
  3514.                 elseif index == "MaxHealth" then
  3515.                     return MaxHealth or 0
  3516.                 elseif index == "Enemy" then
  3517.                     if Player.ClassName == "Model" then
  3518.                         return GameTitle == "Blackhawk Rescue Mission" and (Player.Name:find("Infantry") and true or false) or true
  3519.                     else
  3520.                         if GameTitle == "Blackhawk Rescue Mission" or GameTitle == "R2DA" or GameTitle == "Resurrection" or GameTitle == "Project Lazarus" or GameTitle == "MMC Zombies Project" or GameTitle == "Zombie Rush" or GameTitle == "Zombie Attack" then
  3521.                             return false
  3522.                         elseif GameTitle == "Bad Business" then
  3523.                             return TeamRequest({}, Client) ~= TeamRequest({}, Player)
  3524.                         elseif GameTitle == "Q-Clash!" then
  3525.                             local ClientChar = Client.Character
  3526.                             return Character and ClientChar and Character.Parent ~= ClientChar.Parent
  3527.                         elseif GameTitle == "Recoil" then
  3528.                             return FFC(Player, "GameStats") and Client.GameStats.Team.value ~= Player.GameStats.Team.value
  3529.                         elseif GameTitle == "Shoot Out" then
  3530.                             return (Cowboys[Client] and Cowboys or Sheriffs) ~= (Cowboys[Player] and Cowboys or Sheriffs)
  3531.                         else
  3532.                             if Client.Team then
  3533.                                 return Client.Team ~= Player.Team
  3534.                             else
  3535.                                 return true
  3536.                             end
  3537.                         end
  3538.                     end
  3539.                 end
  3540.             end
  3541.         end
  3542.     })
  3543. end
  3544.  
  3545. local function AddTracker(Tracking)
  3546.     for _, Player in next, Tracking:GetChildren() do
  3547.         if GameTitle == "Blackhawk Rescue Mission" then
  3548.             if Tracking == PlayerServ then
  3549.                 Track(Player)
  3550.             else
  3551.                 if Player.Name:find("Infantry") or Player.Name:find("Civilian") then
  3552.                     Track(Player)
  3553.                 end
  3554.             end
  3555.         else
  3556.             Track(Player)
  3557.         end
  3558.     end
  3559.  
  3560.     library:AddConnection(Tracking.ChildAdded, function(Player)
  3561.         wait(1)
  3562.         if Tracking == PlayerServ and library then
  3563.             library.options["Player List"]:AddValue(Player.Name)
  3564.         end
  3565.         if GameTitle == "Blackhawk Rescue Mission" then
  3566.             if Tracking == PlayerServ then
  3567.                 Track(Player)
  3568.             else
  3569.                 if Player.Name:find"Infantry" or Player.Name:find"Civilian" then
  3570.                     Track(Player)
  3571.                 end
  3572.             end
  3573.         else
  3574.             Track(Player)
  3575.         end
  3576.     end)
  3577.  
  3578.     library:AddConnection(Tracking.ChildRemoved, function(Player)
  3579.         if Players[Player] then
  3580.             if table.find(library.options["Player List"].values, Player.Name) then
  3581.                 if library.hasInit then
  3582.                     library.options["Player List"]:RemoveValue(Player.Name)
  3583.                 end
  3584.             end
  3585.             Players[Player] = nil
  3586.             if ESPObjects[Player] then
  3587.                 ESPObjects[Player].Active = false
  3588.                 ESPObjects[Player].OOVArrow.Visible = false
  3589.                 ESPObjects[Player].Invis()
  3590.                 ESPObjects[Player].InvisChams()
  3591.                 ESPObjects[Player].InvisChamsOutline()
  3592.                 ESPObjects[Player].InvisRadar()
  3593.             end
  3594.         end
  3595.     end)
  3596. end
  3597.  
  3598. library:AddConnection(workspace.ChildAdded, function(Obj)
  3599.     if Obj.ClassName == "Camera" then
  3600.         Camera = Obj
  3601.         WTSP = Obj.WorldToScreenPoint
  3602.         WTVP = Obj.WorldToViewportPoint
  3603.     end
  3604. end)
  3605.  
  3606. --UI
  3607. --local RadarWindow = library:Create("Circle", {NumSides = 64, Radius = 100, Filled = true, Color = Color3.fromRGB(30, 30, 30)})
  3608. local Draw = library:Create("Circle", {
  3609.     NumSides = 64,
  3610.     Thickness = 1
  3611. })
  3612.  
  3613. local CrosshairTop = library:Create("Square", {
  3614.     Filled = true
  3615. })
  3616. local CrosshairLeft = library:Create("Square", {
  3617.     Filled = true
  3618. })
  3619. local CrosshairRight = library:Create("Square", {
  3620.     Filled = true
  3621. })
  3622. local CrosshairBottom = library:Create("Square", {
  3623.     Filled = true
  3624. })
  3625.  
  3626. --Aimbot Module
  3627. local AimbotRayParams = RaycastParams.new()
  3628. AimbotRayParams.FilterType = Enum.RaycastFilterType.Whitelist
  3629. AimbotRayParams.IgnoreWater = true
  3630.  
  3631. local AimbotHitboxes = {}
  3632.  
  3633. library.Aimbot = {
  3634.     Target = nil,
  3635.     Player = nil,
  3636.     Distance = nil,
  3637.     Position = nil,
  3638.     Position3d = nil,
  3639.     LastPosition = V3Empty,
  3640.     PositionOffset = nil,
  3641.     PositionOffset2d = nil,
  3642.     Part = nil,
  3643.     OnScreen = false,
  3644.     LastVisible = false,
  3645.     Step = 0,
  3646.     OldStep = 0,
  3647.     AutoShootStep = 0
  3648. }
  3649.  
  3650. library.Aimbot.Reset = function()
  3651.     library.Aimbot.Target = nil
  3652.     library.Aimbot.Player = nil
  3653.     library.Aimbot.Distance = 9e9
  3654.     library.Aimbot.Position = nil
  3655.     library.Aimbot.Position3d = nil
  3656.     library.Aimbot.LastPosition = V3Empty
  3657.     library.Aimbot.PositionOffset = nil
  3658.     library.Aimbot.PositionOffset2d = nil
  3659.     library.Aimbot.Part = nil
  3660.     library.Aimbot.OnScreen = false
  3661.     library.Aimbot.LastVisible = false
  3662.     library.Aimbot.Step = 0
  3663.     library.Aimbot.SwitchStep = 0
  3664.     library.Aimbot.AutoShootStep = 0
  3665. end
  3666.  
  3667. library.Aimbot.Check = function(Player, Steady, Step)
  3668.     if not Players[Player] then
  3669.         return
  3670.     end
  3671.     local Character, ClientChar = Players[Player].Character, Players[Client].Character
  3672.     if Players[Player].Health > 0.1 and Character and ClientChar then
  3673.         local MX, MY = Mouse.X, Mouse.Y
  3674.         if library.flags["Mouse Offset"] then
  3675.             MX = MX + library.flags["MXO Amount"]
  3676.             MY = MY + library.flags["MYO Amount"]
  3677.         end
  3678.  
  3679.         local Target
  3680.         local OldDist = 9e9
  3681.         if library.flags["Aimbot Randomize Hitbox"] then
  3682.             if library.Aimbot.Part then
  3683.                 Target = GetHitboxFromChar(Character, library.Aimbot.Part)
  3684.             else
  3685.                 if not Target then
  3686.                     local PartName = AimbotHitboxes[math.random(1, # AimbotHitboxes)]
  3687.                     Target = GetHitboxFromChar(Character, PartName)
  3688.                     library.Aimbot.Part = PartName
  3689.                 end
  3690.             end
  3691.         else
  3692.             for i, v in next, library.flags["Aimbot Hitboxes"] do
  3693.                 if not v then
  3694.                     continue
  3695.                 end
  3696.  
  3697.                 local Part = GetHitboxFromChar(Character, i)
  3698.                 if not Part then
  3699.                     continue
  3700.                 end
  3701.  
  3702.                 local ScreenPos = WTSP(Camera, Part.Position)
  3703.                 local Dist = (Vector2.new(MX, MY) - Vector2.new(ScreenPos.X, ScreenPos.Y)).Magnitude
  3704.  
  3705.                 if Dist > OldDist then
  3706.                     continue
  3707.                 end
  3708.  
  3709.                 OldDist = Dist
  3710.                 Target = Part          
  3711.             end
  3712.         end
  3713.         if not Target then
  3714.             return
  3715.         end
  3716.  
  3717.         local Position, OnScreen = WTSP(Camera, Target.Position)
  3718.         if library.flags["Aimbot Mode"] ~= "Silent" then
  3719.             if not OnScreen then
  3720.                 return
  3721.             end
  3722.         end
  3723.  
  3724.         local DistanceFromCharacter = (Target.Position - Camera.CFrame.p).Magnitude
  3725.         if DistanceFromCharacter > library.flags["Aimbot Max Distance"] then
  3726.             return
  3727.         end
  3728.  
  3729.         local DistanceFromMouse = (Vector2.new(MX, MY) - Vector2.new(Position.X, Position.Y)).Magnitude
  3730.         if library.flags["Use FOV"] then
  3731.             local FoVSize = library.flags["FOV Size"]
  3732.             if DistanceFromMouse > FoVSize + (library.flags["Dynamic FOV"] and ((120 - Camera.FieldOfView) * 4) or FoVSize) then
  3733.                 return
  3734.             end
  3735.         end
  3736.  
  3737.         local Hit
  3738.         if library.flags["Aimbot Vis Check"] or library.flags["Auto Shoot"] or library.flags["Aimbot Prioritize"] then
  3739.             Hit = RayCheck(ClientChar, Target.Position, library.flags["Aimbot Max Distance"])
  3740.             Hit = Hit and Hit.Instance and FFA(Hit.Instance, Character.Name) == Character
  3741.             if Hit then
  3742.                 if library.flags["Auto Shoot"] then
  3743.                     library.Aimbot.AutoShootStep = library.Aimbot.AutoShootStep + Step
  3744.                     if library.Aimbot.AutoShootStep > library.flags["Auto Shoot Interval"] * 0.001 then
  3745.                         library.Aimbot.AutoShootStep = 0
  3746.                         if library.flags["Aimbot Mode"] == "Silent" then
  3747.                             mouse1click()
  3748.                         else
  3749.                             AimbotRayParams.FilterDescendantsInstances = {
  3750.                                 Character
  3751.                             }
  3752.                             local Pos = Camera.CFrame.p
  3753.                             if workspace:Raycast(Pos, (Camera:ScreenPointToRay(MX, MY, 10000).Origin - Pos).Unit * library.flags["Aimbot Max Distance"], AimbotRayParams) then
  3754.                                 mouse1click()
  3755.                             end
  3756.                         end
  3757.                     end
  3758.                 end
  3759.             else
  3760.                 if library.flags["Aimbot Vis Check"] then
  3761.                     return
  3762.                 end
  3763.                 if library.flags[GameTitle .. " Wallbang"] and library.flags["Auto Shoot"] then
  3764.                     library.Aimbot.AutoShootStep = library.Aimbot.AutoShootStep + Step
  3765.                     if library.Aimbot.AutoShootStep > library.flags["Auto Shoot Interval"] * 0.001 then
  3766.                         library.Aimbot.AutoShootStep = 0
  3767.                         mouse1click()
  3768.                     end
  3769.                 end
  3770.             end
  3771.         end
  3772.  
  3773.         library.Aimbot.PositionOffset = library.Aimbot.PositionOffset or V3Empty
  3774.         library.Aimbot.PositionOffset2d = library.Aimbot.PositionOffset2d or V3Empty
  3775.         if library.flags["Velocity Prediction"] then
  3776.             local Diff = (Target.Position - library.Aimbot.LastPosition)
  3777.             if Diff.Magnitude > (library.flags["Aimbot Mode"] == "Legit" and 0.05 or 0.01) then
  3778.                 library.Aimbot.PositionOffset = Diff.Unit * library.flags["Velocity Prediction Multiplier"]
  3779.                 library.Aimbot.PositionOffset2d = WTSP(Camera, Target.Position + library.Aimbot.PositionOffset) - Position
  3780.             else
  3781.                 library.Aimbot.PositionOffset = V3Empty
  3782.                 library.Aimbot.PositionOffset2d = V3Empty
  3783.             end
  3784.         end
  3785.  
  3786.         if Players[Player].Priority then
  3787.             library.Aimbot.Target = Target
  3788.             library.Aimbot.Player = Player
  3789.             library.Aimbot.Position3d = Target.Position + library.Aimbot.PositionOffset
  3790.             library.Aimbot.Position = Position + library.Aimbot.PositionOffset2d
  3791.             library.Aimbot.OnScreen = OnScreen
  3792.             return true
  3793.         end
  3794.  
  3795.         if not Steady then
  3796.             if library.flags["Aimbot Priority"] == "Mouse" then
  3797.                 if DistanceFromMouse <= library.Aimbot.Distance then
  3798.                     library.Aimbot.Distance = DistanceFromMouse
  3799.                 else
  3800.                     return
  3801.                 end
  3802.             else
  3803.                 if DistanceFromCharacter <= library.Aimbot.Distance then
  3804.                     library.Aimbot.Distance = DistanceFromCharacter
  3805.                 else
  3806.                     return
  3807.                 end
  3808.             end
  3809.         end
  3810.  
  3811.         if library.flags["Aimbot Prioritize"] then
  3812.             if not Hit then
  3813.                 if library.Aimbot.LastVisible then
  3814.                     return
  3815.                 end
  3816.             end
  3817.         end
  3818.  
  3819.         library.Aimbot.Target = Target
  3820.         library.Aimbot.Player = Player
  3821.         library.Aimbot.Position3d = Target.Position + library.Aimbot.PositionOffset
  3822.         library.Aimbot.Position = Position + library.Aimbot.PositionOffset2d
  3823.         library.Aimbot.OnScreen = OnScreen
  3824.         return true
  3825.     end
  3826. end
  3827.  
  3828. library.Aimbot.Run = function(Step)
  3829.     if library.Aimbot.Check(library.Aimbot.Player, true, Step) then
  3830.         if library.flags["Aimbot Mode"] == "Legit" then
  3831.             local AimAtX, AimAtY = library.Aimbot.Position.X, library.Aimbot.Position.Y
  3832.             local MX, MY = Mouse.X, Mouse.Y
  3833.  
  3834.             if library.flags["Mouse Offset"] then
  3835.                 MX = MX + library.flags["MXO Amount"]
  3836.                 MY = MY + library.flags["MYO Amount"]
  3837.             end
  3838.  
  3839.             AimAtX, AimAtY = AimAtX - MX, AimAtY - MY
  3840.  
  3841.             --local MinDist = 10
  3842.             --local mouseSens = UserSettings():GetService"UserGameSettings".MouseSensitivity
  3843.             local Smoothness = library.flags["Aimbot Smoothness"]
  3844.             if library.flags["Aimbot Snap"] then
  3845.                 if math.abs(AimAtX) >= Smoothness or math.abs(AimAtY) >= Smoothness then
  3846.                     AimAtX = AimAtX / Smoothness
  3847.                     AimAtY = AimAtY / Smoothness
  3848.                 end
  3849.             else
  3850.                 if Smoothness > 1 then
  3851.                     AimAtX = AimAtX / Smoothness
  3852.                     AimAtY = AimAtY / Smoothness
  3853.                 end
  3854.             end
  3855.  
  3856.             mousemoverel(AimAtX, AimAtY)
  3857.         end
  3858.  
  3859.         library.Aimbot.LastPosition = library.Aimbot.Target.Position
  3860.         if library.flags["Aim Lock"] then
  3861.             return
  3862.         end
  3863.     else
  3864.         library.Aimbot.Reset()
  3865.     end
  3866.     library.Aimbot.SwitchStep = library.Aimbot.SwitchStep + Step
  3867.     if library.Aimbot.Player then
  3868.         if library.Aimbot.SwitchStep < library.flags["Aimbot Switch Delay"] * 0.001 then
  3869.             return
  3870.         end
  3871.     end
  3872.     library.Aimbot.SwitchStep = 0
  3873.     library.Aimbot.Distance = 9e9
  3874.     for Player, Data in next, Players do
  3875.         if Player == Client or Data.Whitelist then
  3876.             continue
  3877.         end
  3878.         if (library.flags["Aimbot At Teammates"] or Data.Enemy) then
  3879.             if library.Aimbot.Check(Player, false, 0) and Data.Priority then
  3880.                 break
  3881.             end
  3882.         end
  3883.     end
  3884. end
  3885.  
  3886. local TriggerStep = 0
  3887. local function RunTriggerbot()
  3888.     local ClientChar = Players[Client].Character
  3889.     if not ClientChar then
  3890.         return
  3891.     end
  3892.     for _, Data in next, Players do
  3893.         local Character = Data.Character
  3894.         if Character and (library.flags["Triggerbot Teammates"] or Data.Enemy) then
  3895.             local MX, MY = Mouse.X, Mouse.Y
  3896.             if library.flags["Mouse Offset"] then
  3897.                 MX = MX + library.flags["MXO Amount"]
  3898.                 MY = MY + library.flags["MYO Amount"]
  3899.             end
  3900.             local Hit = RayCheck(ClientChar, Camera:ScreenPointToRay(MX, MY, 2000).Origin, 2000)
  3901.             if Hit and Hit.Instance then
  3902.                 if library.flags["Triggerbot Hitbox"] == "Character" and Hit.Instance:IsDescendantOf(Character) or Hit.Instance.Name == library.flags["Triggerbot Hitbox"] then
  3903.                     --if library.flags["Triggerbot Magnet"] then
  3904.                     --  local ScreenPos = WTSP(Camera, Hit.Instance.Position)
  3905.                     --  local AimAtX, AimAtY = (ScreenPos.X - Mouse.X) - MX, (ScreenPos.Y - Mouse.Y) - MY
  3906.                     --  mousemoverel(AimAtX, AimAtY)
  3907.                     --end
  3908.                     --print"click"
  3909.                     mouse1click()
  3910.                 end
  3911.             end
  3912.         end
  3913.     end
  3914. end
  3915.  
  3916. local AimbotTab = library:AddTab"Aimbot"
  3917. local AimbotColumn = AimbotTab:AddColumn()
  3918. local AimbotColumn1 = AimbotTab:AddColumn()
  3919.  
  3920. local AimbotMain = AimbotColumn:AddSection"Main"
  3921. local AimbotTargeting = AimbotColumn:AddSection"Targeting"
  3922. local AimbotMisc = AimbotColumn1:AddSection"Misc"
  3923. local TriggerbotMain = AimbotColumn1:AddSection"Triggerbot"
  3924.  
  3925. AimbotMain:AddToggle({
  3926.     text = "Enabled",
  3927.     flag = "Aimbot",
  3928.     callback = function(State)
  3929.         Draw.Visible = State and library.flags["Use FOV"] and library.flags["Draw Circle"]
  3930.         if library.flags["Aimbot Always On"] then
  3931.             library.options["Aimbot Always On"]:SetState(true)
  3932.         end
  3933.     end
  3934. }):AddList({
  3935.     text = "Mode",
  3936.     flag = "Aimbot Mode",
  3937.     values = {
  3938.         "Legit",
  3939.         "Rage"
  3940.     },
  3941.     callback = function(Value)
  3942.         library.options["Aimbot Smoothness"].main.Visible = Value == "Legit"
  3943.         library.options["Aimbot Snap"].main.Visible = Value == "Legit"
  3944.         library.options["Mouse Offset"].main.Visible = Value == "Legit"
  3945.         library.options["MXO Amount"].main.Visible = Value == "Legit" and library.flags["Mouse Offset"]
  3946.         library.options["MYO Amount"].main.Visible = Value == "Legit" and library.flags["Mouse Offset"]
  3947.         library.options["Silent FieldOfView"].main.Visible = Value == "Silent"
  3948.         library.options["Silent HitChance"].main.Visible = Value == "Silent"
  3949.         library.options["Silent TargetPart"].main.Visible = Value == "Silent"
  3950.     end
  3951. }):AddBind({
  3952.     flag = "Aimbot Key",
  3953.     mode = "hold",
  3954.     callback = function(Ended, Step)
  3955.         if library.flags["Aimbot"] and not library.flags["Aimbot Always On"] then
  3956.             if library.open or Ended then
  3957.                 library.Aimbot.Reset()
  3958.             else
  3959.                 library.Aimbot.Step = library.Aimbot.Step + Step
  3960.                 if library.Aimbot.Step > 0.016 then
  3961.                     library.Aimbot.Step = 0
  3962.                     library.Aimbot.Run(Step)
  3963.                 end
  3964.             end
  3965.         end
  3966.     end
  3967. })
  3968. AimbotMain:AddToggle({
  3969.     text = "Always On",
  3970.     flag = "Aimbot Always On",
  3971.     callback = function(State)
  3972.         if not State then
  3973.             return
  3974.         end
  3975.         library:AddConnection(runService.RenderStepped, "Aimbot", function(Step)
  3976.             if library.open then
  3977.                 library.Aimbot.Reset()
  3978.                 return
  3979.             end
  3980.             if library.flags["Aimbot"] and library.flags["Aimbot Always On"] then
  3981.                 library.Aimbot.Step = library.Aimbot.Step + Step
  3982.                 if library.Aimbot.Step > 0.016 then
  3983.                     library.Aimbot.Step = 0
  3984.                     library.Aimbot.Run(Step)
  3985.                 end
  3986.             else
  3987.                 library.connections["Aimbot"]:Disconnect()
  3988.                 library.Aimbot.Reset()
  3989.             end
  3990.         end)
  3991.     end
  3992. })
  3993. AimbotMain:AddSlider({
  3994.     text = "Smoothness",
  3995.     flag = "Aimbot Smoothness",
  3996.     min = 1,
  3997.     max = 40
  3998. })
  3999. AimbotMain:AddSlider({
  4000.     text = "FieldOfView",
  4001.     flag = "Silent FieldOfView",
  4002.     min = 1,
  4003.     value = 1,
  4004.     max = 360,
  4005. })
  4006. AimbotMain:AddSlider({
  4007.     text = "HitChance",
  4008.     flag = "Silent HitChance",
  4009.     min = 1,
  4010.     value = 1,
  4011.     max = 100,
  4012. })
  4013. AimbotMain:AddList({
  4014.     text = "TargetPart",
  4015.     flag = "Silent TargetPart",
  4016.     values = {
  4017.         "Random",
  4018.         "Head",
  4019.         "Torso"
  4020.     },
  4021.     value = "Random"
  4022. })
  4023. AimbotMain:AddToggle({
  4024.     text = "Velocity Prediction",
  4025.     state = false,
  4026.     callback = function(State)
  4027.         library.options["Velocity Prediction Multiplier"].main.Visible = State
  4028.     end
  4029. })
  4030. AimbotMain:AddSlider({
  4031.     text = "Multiplier",
  4032.     textpos = 2,
  4033.     flag = "Velocity Prediction Multiplier",
  4034.     min = 1,
  4035.     max = 5,
  4036.     float = 0.1
  4037. })
  4038. --AimbotMain:AddSlider({text = "Prediction Interval", min = 1, max = 1000})
  4039. AimbotMain:AddToggle({
  4040.     text = "Snap Near Target",
  4041.     flag = "Aimbot Snap"
  4042. })--:AddSlider({text = "Snap Range" flag = "Aimbot Snap Range", min = 5, max = 50})
  4043. --AimbotMain:AddToggle({text = "Curve", flag = "Aimbot Curve"}):AddSlider({text = "Size", flag = "Aimbot Curve Size", min = 1, max = 50})
  4044. AimbotMain:AddToggle({
  4045.     text = "Lock Target",
  4046.     flag = "Aim Lock"
  4047. })
  4048. AimbotMain:AddToggle({
  4049.     text = "Auto Shoot",
  4050.     callback = function(State)
  4051.         library.options["Auto Shoot Interval"].main.Visible = State
  4052.         if State then
  4053.             library.options["Triggerbot"]:SetState()
  4054.         end
  4055.     end
  4056. })
  4057. AimbotMain:AddSlider({
  4058.     text = "Interval",
  4059.     textpos = 2,
  4060.     flag = "Auto Shoot Interval",
  4061.     min = 16,
  4062.     max = 1000,
  4063.     suffix = "ms"
  4064. })
  4065. --AimbotMain:AddToggle({text = "Randomization"})
  4066. --AimbotMain:AddSlider({text = "Amount", flag = "Randomize Amount", min = 40, max = 100})
  4067. AimbotMain:AddSlider({
  4068.     text = "Target Switch Delay",
  4069.     flag = "Aimbot Switch Delay",
  4070.     min = 16,
  4071.     max = 500,
  4072.     suffix = "ms"
  4073. })
  4074. AimbotMain:AddToggle({
  4075.     text = "Ignore Spawn Protection",
  4076.     flag = "Aimbot Ignore Spawn Protection"
  4077. })
  4078.  
  4079. AimbotTargeting:AddToggle({
  4080.     text = "Visible Only",
  4081.     flag = "Aimbot Vis Check",
  4082.     callback = function(State)
  4083.         if State then
  4084.             --library.options["Aimbot Prioritize"]:SetState()
  4085.         end
  4086.     end
  4087. })
  4088. --AimbotTargeting:AddToggle({text = "Prioritize Visible", flag = "Aimbot Prioritize", callback = function(State)
  4089. --  if State then
  4090. --      library.options["Aimbot Vis Check"]:SetState()
  4091. --  end
  4092. --end})
  4093. AimbotTargeting:AddToggle({
  4094.     text = "At Teammates",
  4095.     flag = "Aimbot At Teammates"
  4096. })
  4097. AimbotTargeting:AddList({
  4098.     text = "Priority",
  4099.     flag = "Aimbot Priority",
  4100.     values = {
  4101.         "Mouse",
  4102.         "Distance"
  4103.     }
  4104. })
  4105. AimbotTargeting:AddList({
  4106.     text = "Hitboxes",
  4107.     flag = "Aimbot Hitboxes",
  4108.     max = 6,
  4109.     multiselect = true,
  4110.     values = UseBodyParts,
  4111.     callback = function(Values)
  4112.         for i, v in next, Values do
  4113.             if v then
  4114.                 if table.find(AimbotHitboxes, i) then
  4115.                     continue
  4116.                 end
  4117.                 table.insert(AimbotHitboxes, i)
  4118.             else
  4119.                 local pos = table.find(AimbotHitboxes, i)
  4120.                 if not pos then
  4121.                     continue
  4122.                 end
  4123.                 table.remove(AimbotHitboxes, pos)
  4124.             end
  4125.         end
  4126.     end
  4127. })
  4128. AimbotTargeting:AddToggle({
  4129.     text = "Randomize Hitbox",
  4130.     flag = "Aimbot Randomize Hitbox"
  4131. })
  4132.  
  4133. AimbotTargeting:AddSlider({
  4134.     text = "Max Distance",
  4135.     flag = "Aimbot Max Distance",
  4136.     value = 10000,
  4137.     min = 0,
  4138.     max = 10000
  4139. })
  4140.  
  4141. AimbotMisc:AddToggle({
  4142.     text = "Mouse Offset",
  4143.     callback = function(State)
  4144.         if library.flags["Aimbot Mode"] == "Legit" then
  4145.             library.options["MXO Amount"].main.Visible = State
  4146.             library.options["MYO Amount"].main.Visible = State
  4147.         end
  4148.     end
  4149. })
  4150. AimbotMisc:AddSlider({
  4151.     text = "X",
  4152.     textpos = 2,
  4153.     flag = "MXO Amount",
  4154.     min = - 100,
  4155.     max = 100,
  4156.     value = 0
  4157. })
  4158. AimbotMisc:AddSlider({
  4159.     text = "Y",
  4160.     textpos = 2,
  4161.     flag = "MYO Amount",
  4162.     min = - 100,
  4163.     max = 100,
  4164.     value = 0
  4165. })
  4166. AimbotMisc:AddToggle({
  4167.     text = "Highlight Target"
  4168. }):AddColor({
  4169.     flag = "Aimbot Highlight Color",
  4170.     color = Color3.fromRGB(240, 20, 255)
  4171. })
  4172. AimbotMisc:AddToggle({
  4173.     text = "Use FOV",
  4174.     callback = function(State)
  4175.         Draw.Visible = State and library.flags["Aimbot"] and library.flags["Draw Circle"]
  4176.     end
  4177. }):AddSlider({
  4178.     text = "Size",
  4179.     flag = "FOV Size",
  4180.     min = 10,
  4181.     max = 300,
  4182.     callback = function(Value)
  4183.         if not library.flags["Dynamic FOV"] then
  4184.             Draw.Radius = Value * 2
  4185.         end
  4186.     end
  4187. })
  4188. AimbotMisc:AddToggle({
  4189.     text = "Dynamic",
  4190.     flag = "Dynamic FOV",
  4191.     callback = function(State)
  4192.         if State then
  4193.             library:AddConnection(runService.RenderStepped, "Dynamic FOV", function()
  4194.                 if library and library.flags["Dynamic FOV"] then
  4195.                     Draw.Radius = library.flags["FOV Size"] + ((120 - Camera.FieldOfView) * 4)
  4196.                 else
  4197.                     library.connections["Dynamic FOV"]:Disconnect()
  4198.                     Draw.Radius = library.flags["FOV Size"] * 2
  4199.                 end
  4200.             end)
  4201.         end
  4202.     end
  4203. })
  4204. AimbotMisc:AddToggle({
  4205.     text = "Draw Circle",
  4206.     callback = function(State)
  4207.         Draw.Visible = State and library.flags["Aimbot"] and library.flags["Use FOV"]
  4208.     end
  4209. }):AddColor({
  4210.     flag = "FOV Circle Color",
  4211.     Color3.fromRGB(240, 20, 255),
  4212.     trans = 1,
  4213.     callback = function(Color)
  4214.         Draw.Color = Color
  4215.     end,
  4216.     calltrans = function(Value)
  4217.         Draw.Transparency = Value
  4218.     end
  4219. })
  4220. AimbotMisc:AddToggle({
  4221.     text = "Fill",
  4222.     flag = "FOV Fill",
  4223.     callback = function(State)
  4224.         Draw.Filled = State
  4225.     end
  4226. })
  4227.  
  4228. TriggerbotMain:AddToggle({
  4229.     text = "Enabled",
  4230.     flag = "Triggerbot",
  4231.     callback = function(State)
  4232.         if State then
  4233.             library.options["Auto Shoot"]:SetState()
  4234.             if library.flags["Triggerbot Always On"] then
  4235.                 library.options["Triggerbot Always On"]:SetState(true)
  4236.             end
  4237.         end
  4238.     end
  4239. }):AddSlider({
  4240.     text = "Delay",
  4241.     flag = "Triggerbot Delay",
  4242.     min = 16,
  4243.     max = 1000,
  4244.     suffix = "ms"
  4245. }):AddBind({
  4246.     flag = "Triggerbot Key",
  4247.     mode = "hold",
  4248.     callback = function(Ended, Step)
  4249.         if library.flags["Triggerbot"] and not library.flags["Triggerbot Always On"] then
  4250.             if not library.open then
  4251.                 TriggerStep = TriggerStep + Step
  4252.                 if TriggerStep > library.flags["Triggerbot Delay"] * 0.001 then
  4253.                     TriggerStep = 0
  4254.                     RunTriggerbot()
  4255.                 end
  4256.             end
  4257.         end
  4258.     end
  4259. })
  4260. TriggerbotMain:AddToggle({
  4261.     text = "Always On",
  4262.     flag = "Triggerbot Always On",
  4263.     callback = function(State)
  4264.         if State then
  4265.             library:AddConnection(runService.RenderStepped, "Triggerbot", function(Step)
  4266.                 if library.open then
  4267.                     return
  4268.                 end
  4269.                 if library.flags["Triggerbot"] and library.flags["Triggerbot Always On"] then
  4270.                     TriggerStep = TriggerStep + Step
  4271.                     if TriggerStep > library.flags["Triggerbot Delay"] * 0.001 then
  4272.                         TriggerStep = 0
  4273.                         RunTriggerbot(Step)
  4274.                     end
  4275.                 else
  4276.                     library.connections["Triggerbot"]:Disconnect()
  4277.                 end
  4278.             end)
  4279.         end
  4280.     end
  4281. })
  4282. --TriggerbotMain:AddToggle({text = "Magnet", flag = "Triggerbot Magnet"})
  4283. TriggerbotMain:AddList({
  4284.     text = "Hitbox",
  4285.     flag = "Triggerbot Hitbox",
  4286.     values = {
  4287.         "Head",
  4288.         "Torso",
  4289.         "Character"
  4290.     }
  4291. })
  4292. TriggerbotMain:AddToggle({
  4293.     text = "At Teammates",
  4294.     flag = "Triggerbot Teammates"
  4295. })
  4296.  
  4297. --Esp module
  4298.  
  4299. local VisualsTab = library:AddTab"Visuals"
  4300. local VisualsColumn = VisualsTab:AddColumn()
  4301. local VisualsColumn1 = VisualsTab:AddColumn()
  4302. local VisualsColumn2 = VisualsTab:AddColumn()
  4303.  
  4304. local HealthBarAddon = Vector2.new(3)
  4305. local PlayerEspSection = VisualsColumn:AddSection"ESP"
  4306. local OldStep = 0
  4307. PlayerEspSection:AddToggle({
  4308.     text = "Enabled",
  4309.     flag = "Esp Enabled",
  4310.     callback = function(State)
  4311.         if not State then
  4312.             --RadarWindow.Visible = false
  4313.             if library.connections["Player ESP"] then
  4314.                 library.connections["Player ESP"]:Disconnect()
  4315.                 for _, v in next, ESPObjects do
  4316.                     v.OOVArrow.Visible = false
  4317.                     v.Invis()
  4318.                     v.InvisChams()
  4319.                     v.InvisChamsOutline()
  4320.                 end
  4321.             end
  4322.             return
  4323.         end
  4324.  
  4325.         --RadarWindow.Visible = library.flags["Radar Enabled"]
  4326.         library:AddConnection(runService.RenderStepped, "Player ESP", function(Step)
  4327.             OldStep = OldStep + Step
  4328.             if OldStep < 0.016 then
  4329.                 return
  4330.             end
  4331.             OldStep = 0
  4332.             for Player, Data in next, Players do
  4333.                 if Player == Client then
  4334.                     continue
  4335.                 end
  4336.                 local Objects = ESPObjects[Player]
  4337.                 local Character = Data.Character
  4338.                 local Show
  4339.                 local Team = Data.Enemy
  4340.                 if Data.Whitelist then
  4341.                     Show = library.flags["Esp Show Whitelisted"]
  4342.                 else
  4343.                     Show = Data.Priority or library.flags["Esp Enabled For"][Team and "Enemies" or "Teammates"]
  4344.                 end
  4345.                 if Show and Character then
  4346.                     local Health = Data.Health
  4347.                     if Health > 0.1 then
  4348.                         Team = Team and "Enemy" or "Team"
  4349.                         local Pos, Size = GBB(Character)
  4350.                         local RootPart = FFC(Character, "HumanoidRootPart")
  4351.                         if RootPart and (Pos.Position - RootPart.Position).Magnitude > 5 then
  4352.                             Pos = RootPart.CFrame
  4353.                         end
  4354.                         local Distance = (Camera.CFrame.p - Pos.Position).Magnitude
  4355.                         if Distance < library.flags["Esp Max Distance"] then
  4356.                             local ScreenPosition, OnScreen = WTVP(Camera, Pos.Position)
  4357.                             local ClientChar = Players[Client].Character
  4358.                             local Ignores = {
  4359.                                 Camera,
  4360.                                 ClientChar
  4361.                             }
  4362.                             if GameTitle == "Bad Business" then
  4363.                                 Ignores[3] = FFC(workspace, "Arms")
  4364.                                 --Ignores[4] = ClientChar and FFC(workspace, ClientChar.Backpack.Equipped.Value.Name)
  4365.                                 Ignores[5] = workspace.NonProjectileGeometry
  4366.                                 Ignores[6] = workspace.Effects
  4367.                                 Ignores[7] = workspace.Spawns
  4368.                                 Ignores[8] = workspace.Ragdolls
  4369.                                 Ignores[9] = workspace.Gameplay
  4370.                                 Ignores[10] = workspace.Throwables
  4371.                             elseif GameTitle == "Phantom Forces" then
  4372.                                 Ignores[3] = workspace.Ignore
  4373.                             end
  4374.                             if library.flags[GameTitle .. " Visible Check"] then
  4375.                                 local Hit = RayCheck(ClientChar, Pos.Position, Distance)
  4376.                                 Hit = Hit and Hit.Instance and FFA(Hit.Instance, Character.Name)
  4377.                                 Hit = Hit and Hit == Character
  4378.                             end
  4379.                             local Occluded = Hit and " " or " Occluded "
  4380.                             local Visible = true
  4381.                             if library.flags[Team .. " Visible Only"] then
  4382.                                 Visible = Hit ~= nil
  4383.                             end
  4384.                             local Color = (library.flags["Highlight Target"] and library.Aimbot.Player == Player and library.flags["Aimbot Highlight Color"])
  4385.                             Color = Color or (Data.Priority and library.flags["Player Priority Color"] or Data.Whitelist and library.flags["Player Whitelist Color"])
  4386.                             Color = Color or (GameTitle == "KAT" and (workspace.Gamemode.Value == "Murder" and ((FFC(Player.Backpack, "Knife") or FFC(Character, "Knife")) and library.flags[GameTitle .. " Murderer Color"] or (FFC(Player.Backpack, "Revolver") or FFC(Character, "Revolver")) or library.flags[GameTitle .. " Sheriff Color"])) or GameTitle == "MURDER" and ((Player.Status.Role.Value == "Murderer" and library.flags[GameTitle .. " Murderer Color"]) or (Player.Status.HasRevolver.Value and library.flags[GameTitle .. " Detective Color"])) or GameTitle == "Arsenal" and Player.NRPBS.EquippedTool.Value:find("Golden") and library.flags[GameTitle .. " Golden Weapon Color"])
  4387.  
  4388.                             --
  4389.                             if library.flags["Radar Enabled"] and Distance < RadarWindow.Radius then
  4390.                                 Objects.RadarBlip.Visible = true
  4391.                                 local RelativePos = Camera.CFrame:Inverse() * Pos.Position
  4392.                                 local Middle = Camera.ViewportSize / 2
  4393.                                 local Degrees = math.deg(math.atan2(- RelativePos.Y, RelativePos.X)) * math.pi / 180
  4394.                                 local EndPos = Middle + (Vector2.new(math.cos(Degrees), math.sin(Degrees)) * Distance)
  4395.                                 Objects.RadarBlip.Position = EndPos
  4396.                                 Objects.RadarBlip.Color = Color or Color3.new(1, 1, 1)
  4397.                                 if not Objects.Visible then
  4398.                                     continue
  4399.                                 end
  4400.                             else
  4401.                                 Objects.RadarBlip.Visible = false
  4402.                             end
  4403.                             --]]
  4404.                             if Visible then
  4405.                                 local Transparency = (library.Aimbot.Player == Player or Data.Priority) and 1 or 1 - (Distance / library.flags["Esp Max Distance"])
  4406.                                 if OnScreen then
  4407.                                     Objects.Visible = true
  4408.                                     Objects.OOVArrow.Visible = false
  4409.  
  4410.                                     --local xMin, yMin = 9e9, 9e9
  4411.                                     --local xMax, yMax = 0, 0
  4412.                                     local BoxColor = Color or library.flags[Team .. Occluded .. "Box Color"]
  4413.                                     local TextColor = Color or library.flags[Team .. Occluded .. "Info Color"]
  4414.                                     local ToolColor = Color or library.flags[Team .. Occluded .. "Tool Color"]
  4415.                                     local InventoryColor = Color or library.flags[Team .. Occluded .. "Inventory Color"]
  4416.                                     local LookColor = Color or library.flags[Team .. Occluded .. "Look Color"]
  4417.                                     local ChamsColor = Color or library.flags[Team .. Occluded .. "Chams Color"]
  4418.                                     local ChamsOutlineColor = Color or library.flags[Team .. Occluded .. "Chams Outline Color"]
  4419.                                     local DirectionColor = Color or library.flags[Team .. Occluded .. "Direction Color"]
  4420.  
  4421.                                     --Chams
  4422.                                     if library.flags[Team .. " Chams Enabled"] and Distance < 600 then
  4423.                                         Objects.ChamsVisible = true
  4424.                                         Objects.Chams.Parent = library.base
  4425.                                         Objects.ChamsStep = Objects.ChamsStep + Step
  4426.                                         if Objects.ChamsStep > 0.2 then
  4427.                                             Objects.ChamsStep = 0
  4428.                                             for _, PartName in next, UseBodyParts do
  4429.                                                 local Part = FFC((GameTitle == "Bad Business" and Character.Body or Character), PartName, true)
  4430.                                                 if Part then
  4431.                                                     local Cham = FFC(Objects.Chams, PartName) or (function()
  4432.                                                         return library:Create("BoxHandleAdornment", {
  4433.                                                             Name = PartName,
  4434.                                                             AlwaysOnTop = true,
  4435.                                                             ZIndex = 2,
  4436.                                                             Parent = Objects.Chams
  4437.                                                         })
  4438.                                                     end)()
  4439.                                                     Cham.Size = Part.Size
  4440.                                                     Cham.Adornee = Part
  4441.                                                     Cham.Transparency = library.flags[Team .. " Chams Transparency"]
  4442.                                                     Cham.Color3 = ChamsColor
  4443.                                                     if library.flags[Team .. " Chams Outline"] then
  4444.                                                         Objects.ChamsOutlineVisible = true
  4445.                                                         Objects.ChamsOutline.Parent = library.base
  4446.                                                         Cham = FFC(Objects.ChamsOutline, PartName) or (function()
  4447.                                                             return library:Create("BoxHandleAdornment", {
  4448.                                                                 Name = PartName,
  4449.                                                                 AlwaysOnTop = true,
  4450.                                                                 ZIndex = 1,
  4451.                                                                 Parent = Objects.ChamsOutline
  4452.                                                             })
  4453.                                                         end)()
  4454.                                                         Cham.Size = Part.Size * 1.2
  4455.                                                         Cham.Adornee = Part
  4456.                                                         Cham.Transparency = library.flags[Team .. " Chams Transparency"]
  4457.                                                         Cham.Color3 = ChamsOutlineColor
  4458.                                                     else
  4459.                                                         if Objects.ChamsOutlineVisible then
  4460.                                                             Objects.InvisChamsOutline()
  4461.                                                         end
  4462.                                                     end
  4463.                                                 else
  4464.                                                     local Cham = FFC(Objects.Chams, PartName)
  4465.                                                     if Cham then
  4466.                                                         Cham.Visible = false
  4467.                                                     end
  4468.                                                     Cham = FFC(Objects.ChamsOutline, PartName)
  4469.                                                     if Cham then
  4470.                                                         Cham.Visible = true
  4471.                                                     end
  4472.                                                 end
  4473.                                             end
  4474.                                         end
  4475.                                     else
  4476.                                         if Objects.ChamsVisible then
  4477.                                             Objects.InvisChams()
  4478.                                             Objects.InvisChamsOutline()
  4479.                                         end
  4480.                                     end
  4481.  
  4482.                                     --ESP
  4483.                                     local Height = (Camera.CFrame - Camera.CFrame.p) * Vector3.new(0, (math.clamp(Size.Y, 1, 10) + 0.5) / 2, 0)
  4484.                                     Height = math.abs(WTSP(Camera, Pos.Position + Height).Y - WTSP(Camera, Pos.Position - Height).Y)
  4485.                                     --local ViewportSize = Camera.ViewportSize
  4486.                                     --local Size = ((ViewportSize.X + ViewportSize.Y) / Distance) * (1 - (Camera.FieldOfView / 200))
  4487.                                     Size = library.round(Vector2.new(Height / 2, Height))
  4488.                                     local Position = library.round(Vector2.new(ScreenPosition.X, ScreenPosition.Y) - (Size / 2))
  4489.                                     if library.flags[Team .. " Box Enabled"] then
  4490.                                         Objects.Box.Visible = true
  4491.                                         Objects.Box.Color = BoxColor
  4492.                                         Objects.Box.Size = Size
  4493.                                         Objects.Box.Position = Position
  4494.                                         Objects.Box.Transparency = Transparency
  4495.                                         Objects.BoxOutline.Visible = true
  4496.                                         Objects.BoxOutline.Size = Size + V222
  4497.                                         Objects.BoxOutline.Position = Position - V211
  4498.                                         Objects.BoxOutline.Transparency = Transparency
  4499.                                         Objects.BoxInline.Visible = true
  4500.                                         Objects.BoxInline.Size = Size - V222
  4501.                                         Objects.BoxInline.Position = Position + V211
  4502.                                         Objects.BoxInline.Transparency = Transparency
  4503.                                     else
  4504.                                         Objects.Box.Visible = false
  4505.                                         Objects.BoxOutline.Visible = false
  4506.                                         Objects.BoxInline.Visible = false
  4507.                                     end
  4508.                                     if library.flags[Team .. " Health Enabled"] then
  4509.                                         local MaxHealth = Data.MaxHealth
  4510.                                         local HealthPerc = Health / MaxHealth
  4511.                                         local Position = Position - HealthBarAddon
  4512.                                         local Size = Vector2.new(1, Size.Y)
  4513.                                         Objects.BarOutline.Visible = true
  4514.                                         Objects.BarOutline.Position = Position - V211
  4515.                                         Objects.BarOutline.Size = Size + V222
  4516.                                         Objects.BarOutline.Transparency = Transparency
  4517.                                         Objects.Bar.Visible = true
  4518.                                         Objects.Bar.Color = Color3.new(1 - HealthPerc, HealthPerc, 0.2)
  4519.                                         Objects.Bar.Position = Position + Vector2.new(0, Size.Y)
  4520.                                         Objects.Bar.Size = Vector2.new(1, - Size.Y * HealthPerc)
  4521.                                         Objects.Bar.Transparency = Transparency
  4522.                                         Objects.HealthText.Visible = HealthPerc < 0.99
  4523.                                         Objects.HealthText.Position = Objects.Bar.Position + Objects.Bar.Size - Vector2.new(0, 7)
  4524.                                         Objects.HealthText.Text = tostring(library.round(Health)) or ""
  4525.                                         Objects.HealthText.Transparency = Transparency
  4526.                                     else
  4527.                                         Objects.BarOutline.Visible = false
  4528.                                         Objects.Bar.Visible = false
  4529.                                         Objects.HealthText.Visible = false
  4530.                                     end
  4531.                                     if library.flags[Team .. " Info"] then
  4532.                                         Objects.NameText.Visible = true
  4533.                                         Objects.NameText.Text = GameTitle == "Blackhawk Rescue Mission" and (Player.ClassName == "Model" and (Player.Name:find("Infantry") and "Infantry" or "Civilian")) or Player.Name
  4534.                                         Objects.NameText.Position = Position + Vector2.new(Size.X / 2, - Objects.NameText.TextBounds.Y - 1)
  4535.                                         Objects.NameText.Color = TextColor
  4536.                                         Objects.NameText.Transparency = Transparency
  4537.                                         Objects.DistanceText.Visible = true
  4538.                                         Objects.DistanceText.Text = "[" .. library.round(Distance) .. "m]"
  4539.                                         Objects.DistanceText.Position = Position + Vector2.new(Size.X / 2, Size.Y + 2)
  4540.                                         Objects.DistanceText.Color = TextColor
  4541.                                         Objects.DistanceText.Transparency = Transparency
  4542.                                     else
  4543.                                         Objects.NameText.Visible = false
  4544.                                         Objects.DistanceText.Visible = false
  4545.                                     end
  4546.                                     if library.flags[Team .. " Tool"] then
  4547.                                         Objects.ToolText.Visible = true
  4548.                                         if Character:FindFirstChildOfClass("Tool") then
  4549.                                             Objects.ToolText.Text = "[" .. Character:FindFirstChildOfClass("Tool").Name .. "]"
  4550.                                         else
  4551.                                             Objects.ToolText.Visible = false
  4552.                                         end
  4553.                                         Objects.ToolText.Position = Position + Vector2.new(Size.X / 16, Size.Y + 16)
  4554.                                         Objects.ToolText.Color = ToolColor
  4555.                                         Objects.ToolText.Transparency = Transparency
  4556.                                     else
  4557.                                         Objects.ToolText.Visible = false
  4558.                                     end
  4559.                                     local function getPlayerFromCharacter(character)
  4560.                                         for _, player in pairs(game:GetService("Players"):GetPlayers()) do
  4561.                                             if player.Character == character then
  4562.                                                 return player
  4563.                                             end
  4564.                                         end
  4565.                                     end
  4566.                                     local function getToolFromPlayer(player)
  4567.                                         local t = {}
  4568.                                         for _, Tool in next, player.Backpack:GetChildren() do
  4569.                                             if Tool:IsA("Tool") then
  4570.                                                 table.insert(t, Tool.Name)
  4571.                                             end
  4572.                                         end
  4573.                                         if t[1] and not t[2] then
  4574.                                             return t[1]
  4575.                                         end
  4576.                                         if t[2] and not t[3] then
  4577.                                             return t[1] .. ", " .. t[2]
  4578.                                         end
  4579.                                         if t[3] and not t[4] then
  4580.                                             return t[1] .. ", " .. t[2] .. ", " .. t[3]
  4581.                                         end
  4582.                                         if t[4] and not t[5] then
  4583.                                             return t[1] .. ", " .. t[2] .. ", " .. t[3] .. ", " .. t[4]
  4584.                                         end
  4585.                                         if t[5] and not t[6] then
  4586.                                             return t[1] .. ", " .. t[2] .. ", " .. t[3] .. ", " .. t[4] .. ", " .. t[5]
  4587.                                         end
  4588.                                         if t[6] and not t[7] then
  4589.                                             return t[1] .. ", " .. t[2] .. ", " .. t[3] .. ", " .. t[4] .. ", " .. t[5] .. ", " .. t[6]
  4590.                                         end
  4591.                                         if t[7] and not t[8] then
  4592.                                             return t[1] .. ", " .. t[2] .. ", " .. t[3] .. ", " .. t[4] .. ", " .. t[5] .. ", " .. t[6] .. ", " .. t[7]
  4593.                                         end
  4594.                                         if t[8] and not t[9] then
  4595.                                             return t[1] .. ", " .. t[2] .. ", " .. t[3] .. ", " .. t[4] .. ", " .. t[5] .. ", " .. t[6] .. ", " .. t[7] .. ", " .. t[8]
  4596.                                         end
  4597.                                         if t[9] and not t[10] then
  4598.                                             return t[1] .. ", " .. t[2] .. ", " .. t[3] .. ", " .. t[4] .. ", " .. t[5] .. ", " .. t[6] .. ", " .. t[7] .. ", " .. t[8] .. ", " .. t[9]
  4599.                                         end
  4600.                                         if t[10] and not t[11] then
  4601.                                             return t[1] .. ", " .. t[2] .. ", " .. t[3] .. ", " .. t[4] .. ", " .. t[5] .. ", " .. t[7] .. ", " .. t[7] .. ", " .. t[8] .. ", " .. t[9] .. ", " .. t[10]
  4602.                                         end
  4603.                                     end
  4604.                                     if library.flags[Team .. " Inventory"] then
  4605.                                         Objects.InventoryText.Visible = true
  4606.                                         if getPlayerFromCharacter(Character).Backpack:FindFirstChildOfClass("Tool") then
  4607.                                             Objects.InventoryText.Text = "[" .. getToolFromPlayer(getPlayerFromCharacter(Character)) .. "]"
  4608.                                         else
  4609.                                             Objects.InventoryText.Visible = false
  4610.                                         end
  4611.                                         Objects.InventoryText.Position = Position + Vector2.new(Size.X / 30, Size.Y + 30)
  4612.                                         Objects.InventoryText.Color = InventoryColor
  4613.                                         Objects.InventoryText.Transparency = Transparency
  4614.                                     else
  4615.                                         Objects.InventoryText.Visible = false
  4616.                                     end
  4617.                                     if library.flags[Team .. " Look Enabled"] then
  4618.                                         HeadPosition = GetHitboxFromChar(Character, "Head")
  4619.                                         if HeadPosition then
  4620.                                             Objects.LookAt.Visible = true
  4621.                                             HeadPosition1 = WTVP(Camera, HeadPosition.Position)
  4622.                                             local To = WTVP(Camera, HeadPosition.Position + (HeadPosition.CFrame.LookVector * 8))
  4623.                                             Objects.LookAt.From = Vector2.new(HeadPosition1.X, HeadPosition1.Y)
  4624.                                             Objects.LookAt.To = Vector2.new(To.X, To.Y)
  4625.                                             Objects.LookAt.Color = LookColor
  4626.                                             Objects.LookAt.Transparency = Transparency
  4627.                                         else
  4628.                                             Objects.LookAt.Visible = false
  4629.                                         end
  4630.                                     else
  4631.                                         Objects.LookAt.Visible = false
  4632.                                     end
  4633.                                     if library.flags[Team .. " Direction Enabled"] then
  4634.                                         Objects.DirectionLine.Visible = true
  4635.                                         Position = Position + (Size / 2)
  4636.                                         local PositionOffset2d = V2Empty
  4637.                                         local Diff = (Pos.Position - Data.LastPosition)
  4638.                                         if Diff.Magnitude > 0.01 then
  4639.                                             PositionOffset2d = library.round(Vector2.new(WTSP(Camera, Pos.Position + (Diff.Unit * 4)).X, Position.Y) - Position)
  4640.                                         end
  4641.                                         Objects.DirectionLine.From = Position
  4642.                                         Objects.DirectionLine.To = Position + PositionOffset2d
  4643.                                         Objects.DirectionLine.Color = DirectionColor
  4644.                                         Objects.DirectionLine.Transparency = Transparency
  4645.                                         if Distance < 600 then
  4646.                                             Objects.DirectionDot.Visible = true
  4647.                                             Objects.DirectionDot.Position = Objects.DirectionLine.To - V233
  4648.                                             Objects.DirectionDot.Color = DirectionColor
  4649.                                             Objects.DirectionDot.Transparency = Transparency
  4650.                                         else
  4651.                                             Objects.DirectionDot.Visible = false
  4652.                                         end
  4653.                                     else
  4654.                                         Objects.DirectionLine.Visible = false
  4655.                                         Objects.DirectionDot.Visible = false
  4656.                                     end
  4657.                                     Data.LastPosition = Pos.Position
  4658.                                     continue
  4659.                                 end
  4660.                                 if library.flags[Team .. " OOV Arrows"] then
  4661.                                     Objects.OOVArrow.Visible = true
  4662.                                     Objects.OOVArrow.Color = Color or library.flags[Team .. Occluded .. "OOV Arrows Color"]
  4663.                                     local RelativePos = Camera.CFrame:Inverse() * Pos.Position
  4664.                                     local Middle = Camera.ViewportSize / 2
  4665.                                     local Degrees = math.deg(math.atan2(- RelativePos.Y, RelativePos.X)) * math.pi / 180
  4666.                                     local EndPos = Middle + (Vector2.new(math.cos(Degrees), math.sin(Degrees)) * library.flags[Team .. " Out Of View Scale"])
  4667.                                     Objects.OOVArrow.PointB = EndPos + (- (Middle - EndPos).Unit * 15)
  4668.                                     Objects.OOVArrow.PointA = EndPos
  4669.                                     Objects.OOVArrow.PointC = EndPos
  4670.                                     Objects.OOVArrow.Transparency = Transparency
  4671.                                     if not Objects.Visible then
  4672.                                         continue
  4673.                                     end
  4674.                                 end
  4675.                             end
  4676.                         end
  4677.                     end
  4678.                 end
  4679.                 Objects.OOVArrow.Visible = false
  4680.                 if Objects.Visible then
  4681.                     Objects.Invis()
  4682.                     Objects.InvisChams()
  4683.                     Objects.InvisChamsOutline()
  4684.                     Objects.InvisRadar()
  4685.                 end
  4686.             end
  4687.         end)
  4688.     end
  4689. }):AddList({
  4690.     flag = "Esp Enabled For",
  4691.     values = {
  4692.         "Enemies",
  4693.         "Teammates"
  4694.     },
  4695.     multiselect = true
  4696. }):AddBind({
  4697.     callback = function()
  4698.         library.options["Esp Enabled"]:SetState(not library.flags["Esp Enabled"])
  4699.     end
  4700. })
  4701. PlayerEspSection:AddSlider({
  4702.     text = "Max Distance",
  4703.     textpos = 2,
  4704.     flag = "Esp Max Distance",
  4705.     value = 10000,
  4706.     min = 0,
  4707.     max = 10000
  4708. })
  4709. PlayerEspSection:AddToggle({
  4710.     text = "Show Whitelisted Players",
  4711.     flag = "Esp Show Whitelisted"
  4712. })
  4713.  
  4714. --PlayerEspSection:AddDivider"Radar"
  4715. --PlayerEspSection:AddToggle({text = "Enabled", flag = "Radar Enabled", callback = function(State)
  4716. --  RadarWindow.Visible = State and library.flags["Esp Enabled"]
  4717. --end})
  4718. local VisualsWorld = VisualsColumn:AddSection"Lighting"
  4719. VisualsWorld:AddToggle({
  4720.     text = "Clock Time"
  4721. }):AddSlider({
  4722.     flag = "Clock Time Amount",
  4723.     min = 0,
  4724.     max = 24,
  4725.     float = 0.1,
  4726.     value = LightingSpoof.ClockTime
  4727. })
  4728. VisualsWorld:AddToggle({
  4729.     text = "Brightness"
  4730. }):AddSlider({
  4731.     flag = "Brightness Amount",
  4732.     min = 0,
  4733.     max = 100,
  4734.     float = 0.1,
  4735.     value = LightingSpoof.Brightness
  4736. })
  4737. VisualsWorld:AddToggle({
  4738.     text = "Ambient",
  4739.     flag = "Ambient Lighting"
  4740. }):AddColor({
  4741.     flag = "Outdoor Ambient",
  4742.     color = LightingSpoof.OutdoorAmbient
  4743. }):AddColor({
  4744.     flag = "Indoor Ambient",
  4745.     color = LightingSpoof.Ambient
  4746. })
  4747. VisualsWorld:AddToggle({
  4748.     text = "Color Shift"
  4749. }):AddColor({
  4750.     flag = "Color Shift Top",
  4751.     color = LightingSpoof.ColorShift_Top
  4752. })
  4753.  
  4754. local VisualsMiscSection = VisualsColumn:AddSection"Misc"
  4755.  
  4756. VisualsMiscSection:AddToggle({
  4757.     text = "FOV Changer",
  4758.     callback = function(State)
  4759.         library.options["Dynamic Custom FOV"].main.Visible = State
  4760.     end
  4761. }):AddSlider({
  4762.     flag = "FOV Amount",
  4763.     min = 0,
  4764.     max = 120
  4765. })
  4766. VisualsMiscSection:AddToggle({
  4767.     text = "Dynamic",
  4768.     flag = "Dynamic Custom FOV"
  4769. })
  4770. VisualsMiscSection:AddToggle({
  4771.     text = "Zoom",
  4772.     flag = "FOV Zoom Enabled"
  4773. }):AddSlider({
  4774.     flag = "FOV Zoom Amount",
  4775.     min = 5,
  4776.     max = 50
  4777. }):AddBind({
  4778.     flag = "FOV Zoom Key",
  4779.     mode = "hold"
  4780. })
  4781.  
  4782. VisualsMiscSection:AddDivider"Crosshair"
  4783. VisualsMiscSection:AddToggle({
  4784.     text = "Enabled",
  4785.     flag = "Crosshair Enabled",
  4786.     callback = function(State)
  4787.         library.options["Crosshair T-Shape"].main.Visible = State
  4788.         library.options["Crosshair Size"].main.Visible = State
  4789.         library.options["Crosshair Gap"].main.Visible = State
  4790.         library.options["Crosshair Thickness"].main.Visible = State
  4791.         CrosshairTop.Visible = State and not library.flags["Crosshair T-Shape"]
  4792.         CrosshairLeft.Visible = State
  4793.         CrosshairRight.Visible = State
  4794.         CrosshairBottom.Visible = State
  4795.     end
  4796. }):AddColor({
  4797.     callback = function(Color)
  4798.         CrosshairTop.Color = Color
  4799.         CrosshairLeft.Color = Color
  4800.         CrosshairRight.Color = Color
  4801.         CrosshairBottom.Color = Color
  4802.     end,
  4803.     trans = 1,
  4804.     calltrans = function(Transparency)
  4805.         CrosshairTop.Transparency = Transparency
  4806.         CrosshairLeft.Transparency = Transparency
  4807.         CrosshairRight.Transparency = Transparency
  4808.         CrosshairBottom.Transparency = Transparency
  4809.     end
  4810. })
  4811. VisualsMiscSection:AddToggle({
  4812.     text = "T-Shape",
  4813.     flag = "Crosshair T-Shape",
  4814.     callback = function(State)
  4815.         CrosshairTop.Visible = library.flags["Crosshair Enabled"] and not State
  4816.     end
  4817. })
  4818. VisualsMiscSection:AddSlider({
  4819.     text = "Size",
  4820.     textpos = 2,
  4821.     flag = "Crosshair Size",
  4822.     min = 1,
  4823.     max = 500,
  4824.     callback = function(Value)
  4825.         local Thickness = library.flags["Crosshair Thickness"]
  4826.         CrosshairTop.Size = Vector2.new(Thickness, - Value)
  4827.         CrosshairLeft.Size = Vector2.new(- Value, Thickness)
  4828.         CrosshairRight.Size = Vector2.new(Value, Thickness)
  4829.         CrosshairBottom.Size = Vector2.new(Thickness, Value)
  4830.     end
  4831. })
  4832. VisualsMiscSection:AddSlider({
  4833.     text = "Gap",
  4834.     textpos = 2,
  4835.     flag = "Crosshair Gap",
  4836.     min = 0,
  4837.     max = 20,
  4838.     float = 0.5
  4839. })
  4840. VisualsMiscSection:AddSlider({
  4841.     text = "Thickness",
  4842.     textpos = 2,
  4843.     flag = "Crosshair Thickness",
  4844.     min = 1,
  4845.     max = 20,
  4846.     float = 0.5,
  4847.     callback = function(Value)
  4848.         local Size = library.flags["Crosshair Size"]
  4849.         CrosshairTop.Size = Vector2.new(Value, - Size)
  4850.         CrosshairLeft.Size = Vector2.new(- Size, Value)
  4851.         CrosshairRight.Size = Vector2.new(Size, Value)
  4852.         CrosshairBottom.Size = Vector2.new(Value, Size)
  4853.     end
  4854. })
  4855.  
  4856. local PlayerEspEnemySection = VisualsColumn1:AddSection"Enemies"
  4857. PlayerEspEnemySection:AddToggle({
  4858.     text = "Visible Only",
  4859.     flag = "Enemy Visible Only"
  4860. })
  4861.  
  4862. PlayerEspEnemySection:AddToggle({
  4863.     text = "Visible Check",
  4864. })
  4865.  
  4866. PlayerEspEnemySection:AddToggle({
  4867.     text = "Box",
  4868.     flag = "Enemy Box Enabled"
  4869. }):AddColor({
  4870.     flag = "Enemy Occluded Box Color",
  4871.     color = Color3.fromRGB(245, 120, 65)
  4872. }):AddColor({
  4873.     flag = "Enemy Box Color",
  4874.     color = Color3.fromRGB(240, 40, 50)
  4875. })
  4876.  
  4877. PlayerEspEnemySection:AddToggle({
  4878.     text = "Info",
  4879.     flag = "Enemy Info"
  4880. }):AddColor({
  4881.     flag = "Enemy Occluded Info Color",
  4882.     color = Color3.fromRGB(255, 140, 30)
  4883. }):AddColor({
  4884.     flag = "Enemy Info Color",
  4885.     color = Color3.fromRGB(240, 30, 40)
  4886. })
  4887.  
  4888. PlayerEspEnemySection:AddToggle({
  4889.     text = "Tool",
  4890.     flag = "Enemy Tool"
  4891. }):AddColor({
  4892.     flag = "Enemy Occluded Tool Color",
  4893.     color = Color3.fromRGB(255, 140, 30)
  4894. }):AddColor({
  4895.     flag = "Enemy Tool Color",
  4896.     color = Color3.fromRGB(240, 30, 40)
  4897. })
  4898.  
  4899. PlayerEspEnemySection:AddToggle({
  4900.     text = "Inventory",
  4901.     flag = "Enemy Inventory"
  4902. }):AddColor({
  4903.     flag = "Enemy Occluded Inventory Color",
  4904.     color = Color3.fromRGB(255, 140, 30)
  4905. }):AddColor({
  4906.     flag = "Enemy Inventory Color",
  4907.     color = Color3.fromRGB(240, 30, 40)
  4908. })
  4909.  
  4910. PlayerEspEnemySection:AddToggle({
  4911.     text = "Health",
  4912.     flag = "Enemy Health Enabled"
  4913. })
  4914.  
  4915. PlayerEspEnemySection:AddToggle({
  4916.     text = "Out Of View",
  4917.     flag = "Enemy OOV Arrows",
  4918.     callback = function(State)
  4919.         library.options["Enemy Out Of View Scale"].main.Visible = State
  4920.     end
  4921. }):AddColor({
  4922.     flag = "Enemy Occluded OOV Arrows Color",
  4923.     color = Color3.fromRGB(255, 140, 30)
  4924. }):AddColor({
  4925.     flag = "Enemy OOV Arrows Color",
  4926.     color = Color3.fromRGB(240, 30, 40)
  4927. })
  4928. PlayerEspEnemySection:AddSlider({
  4929.     text = "Scale",
  4930.     textpos = 2,
  4931.     flag = "Enemy Out Of View Scale",
  4932.     min = 100,
  4933.     max = 500
  4934. })
  4935.  
  4936. PlayerEspEnemySection:AddToggle({
  4937.     text = "Look Direction",
  4938.     flag = "Enemy Look Enabled"
  4939. }):AddColor({
  4940.     flag = "Enemy Occluded Look Color",
  4941.     color = Color3.fromRGB(240, 120, 80)
  4942. }):AddColor({
  4943.     flag = "Enemy Look Color",
  4944.     color = Color3.fromRGB(240, 60, 20)
  4945. })
  4946.  
  4947. --PlayerEspEnemySection:AddToggle({text = "Velocity", flag = "Enemy Direction Enabled"}):AddColor({flag = "Enemy Occluded Direction Color", color = Color3.fromRGB(240, 120, 80)}):AddColor({flag = "Enemy Direction Color", color = Color3.fromRGB(240, 60, 20)})
  4948.  
  4949. PlayerEspEnemySection:AddToggle({
  4950.     text = "Chams",
  4951.     flag = "Enemy Chams Enabled"
  4952. }):AddSlider({
  4953.     text = "Transparency",
  4954.     flag = "Enemy Chams Transparency",
  4955.     min = 0,
  4956.     max = 1,
  4957.     float = 0.1
  4958. }):AddColor({
  4959.     flag = "Enemy Occluded Chams Color",
  4960.     color = Color3.fromRGB(245, 120, 65)
  4961. }):AddColor({
  4962.     flag = "Enemy Chams Color",
  4963.     color = Color3.fromRGB(240, 40, 50)
  4964. })
  4965. PlayerEspEnemySection:AddToggle({
  4966.     text = "Outline",
  4967.     flag = "Enemy Chams Outline"
  4968. }):AddColor({
  4969.     flag = "Enemy Occluded Chams Outline Color",
  4970.     color = Color3.fromRGB(245, 120, 65)
  4971. }):AddColor({
  4972.     flag = "Enemy Chams Outline Color",
  4973.     color = Color3.fromRGB(240, 40, 50)
  4974. })
  4975.  
  4976. local PlayerEspTeamSection = VisualsColumn1:AddSection"Teammates"
  4977. PlayerEspTeamSection:AddToggle({
  4978.     text = "Visible Only",
  4979.     flag = "Team Visible Only"
  4980. })
  4981.  
  4982. PlayerEspTeamSection:AddToggle({
  4983.     text = "Box",
  4984.     flag = "Team Box Enabled"
  4985. }):AddColor({
  4986.     flag = "Team Occluded Box Color",
  4987.     color = Color3.fromRGB(20, 50, 255)
  4988. }):AddColor({
  4989.     flag = "Team Box Color",
  4990.     color = Color3.fromRGB(40, 255, 180)
  4991. })
  4992.  
  4993. PlayerEspTeamSection:AddToggle({
  4994.     text = "Info",
  4995.     flag = "Team Info"
  4996. }):AddColor({
  4997.     flag = "Team Occluded Info Color",
  4998.     color = Color3.fromRGB(20, 120, 255)
  4999. }):AddColor({
  5000.     flag = "Team Info Color",
  5001.     color = Color3.fromRGB(40, 240, 130)
  5002. })
  5003.  
  5004. PlayerEspTeamSection:AddToggle({
  5005.     text = "Health",
  5006.     flag = "Team Health Enabled"
  5007. })
  5008.  
  5009. PlayerEspTeamSection:AddToggle({
  5010.     text = "Out Of View",
  5011.     flag = "Team OOV Arrows",
  5012.     callback = function(State)
  5013.         library.options["Team Out Of View Scale"].main.Visible = State
  5014.     end
  5015. }):AddColor({
  5016.     flag = "Team Occluded OOV Arrows Color",
  5017.     color = Color3.fromRGB(20, 120, 255)
  5018. }):AddColor({
  5019.     flag = "Team OOV Arrows Color",
  5020.     color = Color3.fromRGB(40, 240, 130)
  5021. })
  5022. PlayerEspTeamSection:AddSlider({
  5023.     text = "Scale",
  5024.     textpos = 2,
  5025.     flag = "Team Out Of View Scale",
  5026.     min = 100,
  5027.     max = 500
  5028. })
  5029.  
  5030. PlayerEspTeamSection:AddToggle({
  5031.     text = "Look Direction",
  5032.     flag = "Team Look Enabled"
  5033. }):AddColor({
  5034.     flag = "Team Occluded Look Color",
  5035.     color = Color3.fromRGB(40, 80, 230)
  5036. }):AddColor({
  5037.     flag = "Team Look Color",
  5038.     color = Color3.fromRGB(40, 250, 100)
  5039. })
  5040.  
  5041. --PlayerEspTeamSection:AddToggle({text = "Velocity", flag = "Team Direction Enabled"}):AddColor({flag = "Team Occluded Direction Color", color = Color3.fromRGB(240, 120, 80)}):AddColor({flag = "Team Direction Color", color = Color3.fromRGB(240, 60, 20)})
  5042.  
  5043. PlayerEspTeamSection:AddToggle({
  5044.     text = "Chams",
  5045.     flag = "Team Chams Enabled"
  5046. }):AddSlider({
  5047.     text = "Transparency",
  5048.     flag = "Team Chams Transparency",
  5049.     min = 0,
  5050.     max = 1,
  5051.     float = 0.1
  5052. }):AddColor({
  5053.     flag = "Team Occluded Chams Color",
  5054.     color = Color3.fromRGB(20, 50, 255)
  5055. }):AddColor({
  5056.     flag = "Team Chams Color",
  5057.     color = Color3.fromRGB(40, 255, 180)
  5058. })
  5059. PlayerEspTeamSection:AddToggle({
  5060.     text = "Outline",
  5061.     flag = "Team Chams Outline"
  5062. }):AddColor({
  5063.     flag = "Team Occluded Chams Outline Color",
  5064.     color = Color3.fromRGB(80, 100, 255)
  5065. }):AddColor({
  5066.     flag = "Team Chams Outline Color",
  5067.     color = Color3.fromRGB(80, 255, 200)
  5068. })
  5069.  
  5070. local VisualsViewModel = VisualsColumn2:AddSection"ViewModel"
  5071.  
  5072. VisualsViewModel:AddToggle({
  5073.     text = "ViewModel",
  5074. })
  5075.  
  5076. --Misc stuff
  5077. local MiscTab = library:AddTab"Misc"
  5078. local MiscColumn = MiscTab:AddColumn()
  5079. local MiscColumn1 = MiscTab:AddColumn()
  5080. local MiscMain = MiscColumn:AddSection"Main"
  5081. MiscMain:AddButton({
  5082.     text = "Copy Hacky Discord invite",
  5083.     callback = function()
  5084.         setclipboard("https://dsc.gg/hacky")
  5085.         library:SendNotification(5, "Copied Discord To Clipboard")
  5086.     end
  5087. })
  5088. if syn then
  5089.     MiscMain:AddSlider({
  5090.         text = "Set FPS Cap",
  5091.         min = 60,
  5092.         value = 900,
  5093.         max = 1000,
  5094.         callback = function(Value)
  5095.             setfpscap(Value)
  5096.         end
  5097.     })
  5098. end
  5099. local Lagging
  5100. MiscMain:AddToggle({
  5101.     text = "Lag Switch",
  5102.     callback = function()
  5103.         Lagging = false
  5104.         Settings.Network.IncomingReplicationLag = 0
  5105.     end
  5106. }):AddSlider({
  5107.     text = "Timeout",
  5108.     flag = "Lag Switch Timeout",
  5109.     min = 1,
  5110.     max = 10,
  5111.     float = 0.1,
  5112.     suffix = "s"
  5113. }):AddBind({
  5114.     callback = function()
  5115.         if library.flags["Lag Switch"] then
  5116.             Lagging = not Lagging
  5117.             Settings.Network.IncomingReplicationLag = Lagging and 1000 or 0
  5118.             if Lagging then
  5119.                 local LagStart = tick()
  5120.                 while Lagging do
  5121.                     wait(1)
  5122.                     if tick() - LagStart >= library.flags["Lag Switch Timeout"] then
  5123.                         library.options["Lag Switch"].callback()
  5124.                     end
  5125.                 end
  5126.             end
  5127.         end
  5128.     end
  5129. })
  5130.  
  5131. local MiscClient = MiscColumn:AddSection"Client"
  5132.  
  5133. MiscClient:AddToggle({
  5134.     text = "Hide Name",
  5135.     callback = function(State)
  5136.         if State then
  5137.             for i, v in pairs(game:GetDescendants()) do
  5138.                 if v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("TextBox") then
  5139.                     if v.Text == game:GetService("Players").LocalPlayer.Name then
  5140.                         v.Text = "nil"
  5141.                     end
  5142.                 end
  5143.             end
  5144.         else
  5145.             for i, v in pairs(game:GetDescendants()) do
  5146.                 if v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("TextBox") then
  5147.                     if v.Text == "nil" then
  5148.                         v.Text = game:GetService("Players").LocalPlayer.Name
  5149.                     end
  5150.                 end
  5151.             end
  5152.         end
  5153.     end
  5154. })
  5155.  
  5156. local PlayerList = MiscColumn1:AddSection"Player List"
  5157. PlayerList:AddList({
  5158.     flag = "Player List",
  5159.     textpos = 2,
  5160.     skipflag = true,
  5161.     max = 10,
  5162.     values = (function()
  5163.         local t = {}
  5164.         for _, Player in next, PlayerServ:GetPlayers() do
  5165.             if Player ~= Client then
  5166.                 table.insert(t, Player.Name)
  5167.             end
  5168.         end
  5169.         return t
  5170.     end)(),
  5171.     callback = function(Value)
  5172.         PlayerList = Value
  5173.         local Player = Players[FFC(PlayerServ, Value)]
  5174.         library.options["Set Player Priority"]:SetState(Player and Player.Priority, true)
  5175.         library.options["Set Player Whitelist"]:SetState(Player and Player.Whitelist, true)
  5176.     end
  5177. })
  5178. PlayerList:AddToggle({
  5179.     text = "Priority",
  5180.     skipflag = true,
  5181.     style = 2,
  5182.     flag = "Set Player Priority",
  5183.     callback = function(State)
  5184.         local Player = Players[FFC(PlayerServ, library.flags["Player List"])]
  5185.         if Player then
  5186.             Player.Priority = State
  5187.             if State then
  5188.                 library.options["Set Player Whitelist"]:SetState(false)
  5189.             end
  5190.         end
  5191.     end
  5192. }):AddColor({
  5193.     flag = "Player Priority Color",
  5194.     color = Color3.fromRGB(255, 255, 0)
  5195. })
  5196. PlayerList:AddToggle({
  5197.     text = "Team",
  5198.     skipflag = true,
  5199.     style = 2,
  5200.     flag = "Set Player Whitelist",
  5201.     callback = function(State)
  5202.         local Player = Players[FFC(PlayerServ, library.flags["Player List"])]
  5203.         if Player then
  5204.             Player.Whitelist = State
  5205.             game:GetService("Players"):FindFirstChild(tostring(PlayerList)).Team = nil
  5206.             if State then
  5207.                 library.options["Set Player Priority"]:SetState(false)
  5208.                 if not game:GetService("Teams"):FindFirstChild("Whitelist") then
  5209.                     local Whitelist = Instance.new("Team")
  5210.                     Whitelist.Name = "Whitelist"
  5211.                     Whitelist.AutoAssignable = false
  5212.                     Whitelist.Parent = game:GetService("Teams")
  5213.                 end
  5214.                 game:GetService("Players"):FindFirstChild(tostring(PlayerList)).Team = game:GetService("Teams").Whitelist
  5215.             end
  5216.         end
  5217.     end
  5218. }):AddColor({
  5219.     flag = "Player Whitelist Color",
  5220.     color = Color3.fromRGB(0, 255, 255)
  5221. })
  5222.  
  5223.  
  5224. --Hooks
  5225. local OldCallingScript
  5226. OldCallingScript = hookfunction(getcallingscript, function()
  5227.     return OldCallingScript() or {}
  5228. end)
  5229.  
  5230. local Old_new
  5231. Old_new = hookmetamethod(game, "__newindex", function(t, i, v)
  5232.     if checkcaller() or not library then
  5233.         return Old_new(t, i, v)
  5234.     end
  5235.  
  5236.     if t == Camera then
  5237.         if i == "CFrame" then
  5238.             --CameraCF = v
  5239.             if library.flags["Freecam Enabled"] and library.flags["Freecam Key"] then
  5240.                 --v = CFrame.new(FreecamPos, CameraCF.LookVector)
  5241.             else
  5242.                 if library.flags["Aimbot Mode"] == "Rage" then
  5243.                     if library.Aimbot.Position3d then
  5244.                         v = CFrame.new(v.p, library.Aimbot.Position3d)
  5245.                     end
  5246.                 end
  5247.             end
  5248.         elseif i == "CameraSubject" then
  5249.             --CameraSubject = v
  5250.             --print("setting subject")
  5251.             --return not (library.flags["Freecam Enabled"] and library.flags["Freecam Key"]) and CameraSubject or nil
  5252.         elseif i == "CameraType" then
  5253.             --CameraType = v
  5254.             --print("setting type")
  5255.             --return (library.flags["Freecam Enabled"] and library.flags["Freecam Key"]) and "Scriptable" or CameraType
  5256.         end
  5257.     end
  5258.  
  5259.     if GameTitle == "Bad Business" then
  5260.         if i == "Velocity" then
  5261.             if library.flags["Jump Multiplier"] ~= 1 then
  5262.                 if OldCallingScript().Name == "ControlScript" then
  5263.                     v = Vector3.new(v.X, v.Y * library.flags[GameTitle .. " Jump Multiplier"], v.Z)
  5264.                 end
  5265.             end
  5266.             if library.flags["Speed Multiplier"] ~= 1 then
  5267.                 if t.Name == "Root" then
  5268.                     local X, Y, Z = v.X * library.flags[GameTitle .. " Speed Multiplier"], v.Y, v.Z * library.flags[GameTitle .. " Speed Multiplier"]
  5269.                     v = Vector3.new(X, Y, Z)
  5270.                 end
  5271.             end
  5272.         end
  5273.     elseif GameTitle == "Ace Of Spadez" then
  5274.         if library.flags[GameTitle .. " No Recoil"] then
  5275.             if t == Camera and i == "CFrame" then
  5276.                 if OldCallingScript().Name == "WeaponSystem" then
  5277.                     return
  5278.                 end
  5279.             end
  5280.         end
  5281.     elseif GameTitle == "Counter Blox" then
  5282.         if i == "WalkSpeed" then
  5283.             if library.flags[GameTitle .. " Bhop"] and not inputService:GetFocusedTextBox() then
  5284.                 if inputService:IsKeyDown(Enum.KeyCode.Space) then
  5285.                     v = library.flags[GameTitle .. " Bhop Speed"]
  5286.                 end
  5287.             end
  5288.         end
  5289.     end
  5290.  
  5291.     if t == Lighting then
  5292.         if i == "ClockTime" then
  5293.             LightingSpoof[i] = v
  5294.             v = library.flags["ClockTime"] and library.flags["Clock Time Amount"] or v
  5295.         elseif i == "Brightness" then
  5296.             LightingSpoof[i] = v
  5297.             v = library.flags["Brightness"] and library.flags["Brightness Amount"] or v
  5298.         elseif i == "Ambient" or i == "OutdoorAmbient" then
  5299.             LightingSpoof[i] = v
  5300.             v = library.flags["Ambient Lighting"] and (i == "Ambient" and library.flags["Indoor Ambient"] or library.flags["Outdoor Ambient"]) or v
  5301.         elseif i == "ColorShift_Top" then
  5302.             LightingSpoof[i] = v
  5303.             v = library.flags["Color Shift"] and library.flags["Color Shift Top"] or v
  5304.         end
  5305.     elseif t == Camera then
  5306.         if i == "FieldOfView" then
  5307.             CameraSpoof[i] = v
  5308.             v = (library.flags["FOV Zoom Enabled"] and library.flags["FOV Zoom Key"] and (50 - library.flags["FOV Zoom Amount"])) or library.flags["FOV Changer"] and (library.flags["Dynamic Custom FOV"] and (CameraSpoof.FieldOfView + library.flags["FOV Amount"]) or library.flags["FOV Amount"]) or v
  5309.         end
  5310.     end
  5311.  
  5312.     return Old_new(t, i, v)
  5313. end)
  5314.  
  5315. local Old_index
  5316. Old_index = hookmetamethod(game, "__index", function(t, i)
  5317.     if checkcaller() or not library then
  5318.         return Old_index(t, i)
  5319.     end
  5320.  
  5321.     if t == Camera then
  5322.         if i == "CFrame" then
  5323.             if library.flags["Freecam Enabled"] and library.flags["Freecam Key"] then
  5324.                 --return CameraCF
  5325.             end
  5326.             if library.Aimbot.Position3d then
  5327.                 if library.flags["Aimbot Mode"] == "Silent" then
  5328.                     if GameTitle == "Bad Business" then
  5329.                         if OldCallingScript().Name == "ItemControlScript" then
  5330.                             local OldCF = Old_index(t, i)
  5331.                             return CFrame.new(OldCF.Position, library.Aimbot.Position3d)
  5332.                         end
  5333.                     end
  5334.                 elseif library.flags["Aimbot Mode"] == "Rage" then
  5335.                     return CFrame.new(Old_index(t, i).Position, library.Aimbot.Position3d)
  5336.                 end
  5337.             end
  5338.         elseif i == "CameraSubject" then
  5339.             --return CameraSubject
  5340.         elseif i == "CameraType" then
  5341.             --return CameraType
  5342.         end
  5343.     end
  5344.  
  5345.     if t == Lighting then
  5346.         if i == "ClockTime" or i == "Brightness" or i == "Ambient" or i == "OutdoorAmbient" or i == "ColorShift_Top" then
  5347.             return LightingSpoof[i]
  5348.         end
  5349.     elseif t == Camera then
  5350.         if i == "FieldOfView" then
  5351.             return CameraSpoof[i]
  5352.         end
  5353.     end
  5354.  
  5355.     return Old_index(t, i)
  5356. end)
  5357.  
  5358. local Old_call
  5359. Old_call = hookmetamethod(game, "__namecall", function(self, ...)
  5360.     if checkcaller() or not library then
  5361.         return Old_call(self, ...)
  5362.     end
  5363.  
  5364.     local Args = {
  5365.         ...
  5366.     }
  5367.     local Method = getnamecallmethod()
  5368.  
  5369.     if Method == "FindPartOnRayWithWhitelist" then
  5370.         if GameTitle == "Bad Business" then
  5371.             if Args[2][1] and Args[2][2] and Args[2][1].Name == "Geometry" and Args[2][2].Name == "Terrain" then
  5372.                 if library.flags[GameTitle .. " Wallbang"] then
  5373.                     Args[2][1] = nil
  5374.                     Args[2][2] = nil
  5375.                 end
  5376.             end
  5377.         elseif GameTitle == "Ace Of Spadez" then
  5378.             if OldCallingScript().Name == "WeaponSystem" then
  5379.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5380.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).unit * library.flags["Aimbot Max Distance"])
  5381.                 end
  5382.                 if library.flags[GameTitle .. " Wallbang"] then
  5383.                     Args[2][1] = nil
  5384.                 else
  5385.                     Args[2][1] = workspace.Game.Map
  5386.                 end
  5387.             end
  5388.         elseif GameTitle == "Zombie Attack" then
  5389.             if OldCallingScript().Name == "GunController" then
  5390.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5391.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).unit * 1000)
  5392.                 end
  5393.             end
  5394.         end
  5395.     elseif Method == "FindPartOnRayWithIgnoreList" then
  5396.         if GameTitle == "Arsenal" then
  5397.             if library.flags[GameTitle .. " Wallbang"] and Args[2][1].Name == "Clips" then
  5398.                 local n = # Args[2]
  5399.                 Args[2][n + 1] = workspace.Map
  5400.             end
  5401.             if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5402.                 Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).Unit * library.flags["Aimbot Max Distance"])
  5403.             end
  5404.         elseif GameTitle == "Unit: Classified" then
  5405.             if # Args[2] > 15 then
  5406.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5407.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).unit * library.flags["Aimbot Max Distance"])
  5408.                 end
  5409.                 if library.flags[GameTitle .. " Wallbang"] then
  5410.                     local n = # Args[2]
  5411.                     Args[2][n + 1] = workspace.Map
  5412.                     Args[2][n + 2] = workspace.Terrain
  5413.                 end
  5414.             end
  5415.         elseif GameTitle == "MURDER" then
  5416.             if tostring(Args[2][3]) == "Debris" then
  5417.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5418.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).unit * library.flags["Aimbot Max Distance"])
  5419.                 end
  5420.                 if library.flags[GameTitle .. " Wallbang"] then
  5421.                     local n = # Args[2]
  5422.                     Args[2][n + 1] = workspace.Map
  5423.                 end
  5424.             end
  5425.         elseif GameTitle == "KAT" then
  5426.             if OldCallingScript().Name == "KnifeClient" or OldCallingScript().Name == "RevolverClient" then
  5427.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5428.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).unit * library.flags["Aimbot Max Distance"])
  5429.                 end
  5430.             end
  5431.         elseif GameTitle == "MMC Zombies Project" then
  5432.             if OldCallingScript().Name == "client_main" then
  5433.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5434.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).unit * library.flags["Aimbot Max Distance"])
  5435.                 end
  5436.                 if library.flags[GameTitle .. " Wallbang"] then
  5437.                     setnamecallmethod("FindPartOnRayWithWhitelist")
  5438.                     Args[2] = {
  5439.                         workspace.map.enemies,
  5440.                     }
  5441.                 end
  5442.             end
  5443.         elseif GameTitle == "Project Lazarus" then
  5444.             if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5445.                 Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).unit * library.flags["Aimbot Max Distance"])
  5446.             end
  5447.             if library.flags[GameTitle .. " Wallbang"] then
  5448.                 local n = # Args[2]
  5449.                 Args[2][n + 1] = workspace.Map
  5450.             end
  5451.         elseif GameTitle == "Zombie Rush" then
  5452.             if OldCallingScript().Name == "GunController" then
  5453.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5454.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).unit * 1000)
  5455.                 end
  5456.                 if library.flags[GameTitle .. " Wallbang"] then
  5457.                     local n = # Args[2]
  5458.                     Args[2][n + 1] = workspace["Map Storage"]
  5459.                 end
  5460.             end
  5461.         elseif GameTitle == "Resurrection" then
  5462.             if OldCallingScript().Name == "Client" then
  5463.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5464.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).unit * 1000)
  5465.                 end
  5466.                 if library.flags[GameTitle .. " Wallbang"] then
  5467.                     local n = # Args[2]
  5468.                     Args[2][n + 1] = workspace.Map
  5469.                     Args[2][n + 2] = workspace.Terrain
  5470.                 end
  5471.             end
  5472.         elseif GameTitle == "Blackhawk Rescue Mission" then
  5473.             if OldCallingScript().Name == "InputHandler" then
  5474.                 if library.flags[GameTitle .. " Wallbang"] then
  5475.                     local n = # Args[2]
  5476.                     Args[2][n + 1] = workspace.Terrain
  5477.                     Args[2][n + 2] = workspace.Custom["0"]
  5478.                 end
  5479.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5480.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).Unit * library.flags["Aimbot Max Distance"])
  5481.                 end
  5482.             end
  5483.         elseif GameTitle == "Shoot Out" then
  5484.             if OldCallingScript().Name == "Replication" then
  5485.                 if library.flags[GameTitle .. " Wallbang"] then
  5486.                     local n = # Args[2]
  5487.                     Args[2][n + 1] = workspace.Map
  5488.                 end
  5489.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5490.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).Unit * library.flags["Aimbot Max Distance"])
  5491.                 end
  5492.             end
  5493.         elseif GameTitle == "Weaponry" then
  5494.             if OldCallingScript().Name == "Client_Major_Framework" then
  5495.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5496.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).Unit * library.flags["Aimbot Max Distance"])
  5497.                 end
  5498.             end
  5499.         elseif GameTitle == "Counter Blox" then
  5500.             if # Args[2] > 10 then
  5501.                 if library.flags[GameTitle .. " No Spread"] then
  5502.                     local Char = Players[Client].Character
  5503.                     if Char then
  5504.                         Args[1] = Ray.new(Vector3.new(Char.HumanoidRootPart.Position.X, Char.Head.Position.Y, Char.HumanoidRootPart.Position.Z), Camera.CFrame.LookVector * 1000)
  5505.                     end
  5506.                 end
  5507.                 if library.flags[GameTitle .. " Wallbang"] then
  5508.                     Args[2][# Args[2] + 1] = workspace.Map
  5509.                 end
  5510.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5511.                     local Char = Players[Client].Character
  5512.                     if Char then
  5513.                         local Origin = Vector3.new(Char.HumanoidRootPart.Position.X, Char.Head.Position.Y, Char.HumanoidRootPart.Position.Z)
  5514.                         Args[1] = Ray.new(Origin, (library.Aimbot.Position3d - Origin).Unit * 1000)
  5515.                     end
  5516.                 end
  5517.             end
  5518.         elseif GameTitle == "Death Zone" then
  5519.             if OldCallingScript().Name == "GunScript" then
  5520.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5521.                     Args[1] = Ray.new(Camera.CFrame.p, (library.Aimbot.Position3d - Camera.CFrame.p).Unit * library.flags["Aimbot Max Distance"])
  5522.                 end
  5523.             end
  5524.         end
  5525.  
  5526.     elseif Method == "FireServer" then
  5527.         if GameTitle == "Arsenal" then
  5528.             if self.Name == "CreateProjectile" or self.Name == "ReplicateProjectile" then
  5529.                 local t = self.Name == "ReplicateProjectile" and Args[1] or Args
  5530.                 if library.flags["Aimbot Mode"] == "Silent" and library.Aimbot.Position3d then
  5531.                     t[3] = library.Aimbot.Position3d
  5532.                     t[4] = CFrame.new(library.Aimbot.Position3d) + Vector3.new(0, 0.5, 0)
  5533.                     t[10] = library.Aimbot.Position3d + Vector3.new(0, 0.5, 0)
  5534.                 end
  5535.             end
  5536.         elseif GameTitle == "Zombie Attack" then
  5537.             if library.flags[GameTitle .. " Always Headshot"] and FFCoC(Args["Hit"].Parent, "Humanoid") then
  5538.                 Args["Hit"] = Args["Hit"].Parent.Head
  5539.             end
  5540.         elseif GameTitle == "Counter Blox" then
  5541.             if self.Name == "ControlTurn" and library.flags[GameTitle .. " Anti-Aim"] then
  5542.                 Args[1] = library.flags[GameTitle .. " Pitch"]
  5543.                 --elseif string.len(self.Name) > 35 then
  5544.                 --  if library.flags[GameTitle .. " Unlock Skins"] and not eF then
  5545.                 --      eF = true
  5546.                 --      for V, v in next, e4 do
  5547.                 --          local eQ
  5548.                 --          for eC, eD in next, Args[1] do
  5549.                 --              if v[1] == eD[1] then
  5550.                 --                  eQ = true
  5551.                 --              end
  5552.                 --          end
  5553.                 --          if not eQ then
  5554.                 --              local n = #Args[1]
  5555.                 --              Args[1][n + 1] = v
  5556.                 --          end
  5557.                 --      end
  5558.                 --  end
  5559.                 --  return
  5560.             elseif self.Name == "HitPart" and (library.flags[GameTitle .. " Hitsound"] or library.flags[GameTitle .. " Bullet Tracers"]) then
  5561.                 spawn(function()
  5562.                     if library.flags[GameTitle .. " Hitsound"] then
  5563.                         if Args[1] and FFCoC(Args[1].Parent, "Humanoid") then
  5564.                             local Target = FFC(game.Players, Args[1].Parent.Name)
  5565.                             if Target and Target.Team ~= Client.Team then
  5566.                                 local Sounds = library.options[GameTitle .. " Hitsounds"].values
  5567.                                 local Sound = library.flags[GameTitle .. " Hitsounds"]
  5568.                                 library:Create("Sound", {
  5569.                                     PlayOnRemove = true,
  5570.                                     Volume = library.flags[GameTitle .. " Hitsound Volume"],
  5571.                                     SoundId = "rbxassetid://" .. (typeof(Sounds[Sound]) == "function" and Sounds[Sound]() or Sounds[Sound]),
  5572.                                     Parent = workspace
  5573.                                 }):Destroy()
  5574.                             end
  5575.                         end
  5576.                     end
  5577.                     if library.flags[GameTitle .. " Bullet Tracers"] then
  5578.                         local Char = Client.Character
  5579.                         local HumPart = FFC(Char, "HumanoidRootPart")
  5580.                         local Flash = FFC(Camera, "Flash", true)
  5581.                         if HumPart and Flash then
  5582.                             local d1 = library:Create("Part", {
  5583.                                 Anchored = true,
  5584.                                 Parent = workspace
  5585.                             })
  5586.                             local eV = library:Create("Attachment", {
  5587.                                 WorldPosition = Flash.Position,
  5588.                                 Parent = d1
  5589.                             })
  5590.                             local eW = library:Create("Attachment", {
  5591.                                 WorldPosition = Args[2],
  5592.                                 Parent = d1
  5593.                             })
  5594.                             library:Create("Beam", {
  5595.                                 Color = ColorSequence.new(library.flags[GameTitle .. " Bullet Tracer Color"]),
  5596.                                 LightEmission = 1,
  5597.                                 LightInfluence = 0,
  5598.                                 Texture = "rbxassetid://967852047",
  5599.                                 Transparency = NumberSequence.new(0.6),
  5600.                                 TextureLength = 0.1,
  5601.                                 TextureSpeed = 1,
  5602.                                 Attachment0 = eV,
  5603.                                 Attachment1 = eW,
  5604.                                 Segments = 1,
  5605.                                 FaceCamera = true,
  5606.                                 Width0 = 0.15,
  5607.                                 Width1 = 0.15,
  5608.                                 Parent = d1
  5609.                             })
  5610.                             library:Create("Beam", {
  5611.                                 Color = ColorSequence.new(library.flags[GameTitle .. " Bullet Tracer Color"]),
  5612.                                 LightEmission = 1,
  5613.                                 LightInfluence = 0,
  5614.                                 Texture = "rbxassetid://967852047",
  5615.                                 Transparency = NumberSequence.new(0.6),
  5616.                                 TextureLength = 0.1,
  5617.                                 TextureSpeed = 1,
  5618.                                 Attachment0 = eV,
  5619.                                 Attachment1 = eW,
  5620.                                 Segments = 1,
  5621.                                 FaceCamera = true,
  5622.                                 Width0 = 0.2,
  5623.                                 Width1 = 0.2,
  5624.                                 Parent = d1
  5625.                             })
  5626.                             game:GetService"Debris":AddItem(d1, library.flags[GameTitle .. " Lifetime"])
  5627.                         end
  5628.                     end
  5629.                 end)
  5630.             end
  5631.         elseif GameTitle == "Death Zone" then
  5632.             if self.Name == "Executioner" then
  5633.                 return wait(9e9)
  5634.             end
  5635.         end
  5636.  
  5637.     elseif Method == "InvokeServer" then
  5638.  
  5639.     elseif Method == "SetPrimaryPartCFrame" then
  5640.         if GameTitle == "Counter Blox" then
  5641.             if self.Name == "Arms" then
  5642.                 if library.flags[GameTitle .. " Viewmodel Changer"] then
  5643.                     if library.flags[GameTitle .. " Flip Z"] then
  5644.                         Args[1] = Args[1] * CFrame.new(1, 1, 1, 0, 0, 1, 0)
  5645.                     end
  5646.                     if library.flags[GameTitle .. " Flip Y"] then
  5647.                         Args[1] = Args[1] * CFrame.new(1, 1, 1, 0.5, 0, 0, 0)
  5648.                     end
  5649.                     local X = library.flags[GameTitle .. " X Offset"] * 120 / 500
  5650.                     local Y = library.flags[GameTitle .. " Y Offset"] * 120 / 500
  5651.                     local dl = library.flags[GameTitle .. " Z Offset"] * 120 / 500
  5652.                     Args[1] = Args[1] * CFrame.new(X, Y, library.flags[GameTitle .. " Flip Y"] and dl * 2 or dl)
  5653.                 end
  5654.             end
  5655.         end
  5656.     end
  5657.  
  5658.     return Old_call(self, unpack(Args))
  5659. end)
  5660.  
  5661. --Games
  5662. local Loaded, LoadError = true
  5663. library.flagprefix = GameTitle
  5664.  
  5665. Loaded, LoadError = pcall(function()
  5666.  
  5667.     if GameTitle == "Criminality" then
  5668.  
  5669.         --[[ Anti Cheat Bypass ]]
  5670.  
  5671.         for i,v in pairs(getgc(true)) do
  5672.             if typeof(v) == 'table' and typeof(rawget(v, 'B')) == "function" then
  5673.                 v.B = function()
  5674.  
  5675.                 end
  5676.             end
  5677.         end
  5678.  
  5679.         --[[ Anti Cheat Bypass ]]
  5680.  
  5681.         --[[ Silent Aim ]]
  5682.  
  5683.         coroutine.resume(coroutine.create(function()
  5684.  
  5685.             repeat
  5686.                 wait()
  5687.             until game:GetService("Players").LocalPlayer.Character and library.flags["Silent FieldOfView"] ~= nil and library.flags["Silent HitChance"] ~= nil and library.flags["Silent TargetPart"] ~= nil
  5688.  
  5689.             local Camera = workspace.CurrentCamera
  5690.             local Players = game:GetService("Players")
  5691.             local RunService = game:GetService("RunService")
  5692.             local GuiService = game:GetService("GuiService")
  5693.             local UserInputService = game:GetService("UserInputService")
  5694.             local HttpService = game:GetService("HttpService")
  5695.  
  5696.             local LocalPlayer = Players.LocalPlayer
  5697.             local Mouse = LocalPlayer:GetMouse()
  5698.  
  5699.             local GetChildren = game.GetChildren
  5700.             local GetPlayers = Players.GetPlayers
  5701.             local WorldToScreen = Camera.WorldToScreenPoint
  5702.             local WorldToViewportPoint = Camera.WorldToViewportPoint
  5703.             local GetPartsObscuringTarget = Camera.GetPartsObscuringTarget
  5704.             local FindFirstChild = game.FindFirstChild
  5705.             local RenderStepped = RunService.RenderStepped
  5706.             local GuiInset = GuiService.GetGuiInset
  5707.             local GetMouseLocation = UserInputService.GetMouseLocation
  5708.  
  5709.             local resume = coroutine.resume
  5710.             local create = coroutine.create
  5711.  
  5712.             local ValidTargetParts = {
  5713.                 "Head",
  5714.                 "HumanoidRootPart"
  5715.             }
  5716.             local PredictionAmount = 0.165
  5717.  
  5718.             local ExpectedArguments = {
  5719.                 Raycast = {
  5720.                     ArgCountRequired = 3,
  5721.                     Args = {
  5722.                         "Instance",
  5723.                         "Vector3",
  5724.                         "Vector3",
  5725.                         "RaycastParams"
  5726.                     }
  5727.                 }
  5728.             }
  5729.  
  5730.             function CalculateChance(Percentage)
  5731.                 -- // Floor the percentage
  5732.                 Percentage = math.floor(Percentage)
  5733.  
  5734.                 -- // Get the chance
  5735.                 local chance = math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100) / 100
  5736.  
  5737.                 -- // Return
  5738.                 return chance <= Percentage / 100
  5739.             end
  5740.  
  5741.             local function getPositionOnScreen(Vector)
  5742.                 local Vec3, OnScreen = WorldToScreen(Camera, Vector)
  5743.                 return Vector2.new(Vec3.X, Vec3.Y), OnScreen
  5744.             end
  5745.  
  5746.             local function ValidateArguments(Args, RayMethod)
  5747.                 local Matches = 0
  5748.                 if # Args < RayMethod.ArgCountRequired then
  5749.                     return false
  5750.                 end
  5751.                 for Pos, Argument in next, Args do
  5752.                     if typeof(Argument) == RayMethod.Args[Pos] then
  5753.                         Matches = Matches + 1
  5754.                     end
  5755.                 end
  5756.                 return Matches >= RayMethod.ArgCountRequired
  5757.             end
  5758.  
  5759.             local function getDirection(Origin, Position)
  5760.                 return (Position - Origin).Unit * 1000
  5761.             end
  5762.  
  5763.             local function getMousePosition()
  5764.                 return GetMouseLocation(UserInputService)
  5765.             end
  5766.  
  5767.             local function IsPlayerVisible(Player)
  5768.                 local PlayerCharacter = Player.Character
  5769.                 local LocalPlayerCharacter = LocalPlayer.Character
  5770.  
  5771.                 if not (PlayerCharacter or LocalPlayerCharacter) then
  5772.                     return
  5773.                 end
  5774.  
  5775.                 local PlayerRoot = FindFirstChild(PlayerCharacter, library.flags["Silent TargetPart"]) or FindFirstChild(PlayerCharacter, "HumanoidRootPart")
  5776.  
  5777.                 if not PlayerRoot then
  5778.                     return
  5779.                 end
  5780.  
  5781.                 local CastPoints, IgnoreList = {
  5782.                     PlayerRoot.Position,
  5783.                     LocalPlayerCharacter,
  5784.                     PlayerCharacter
  5785.                 }, {
  5786.                     LocalPlayerCharacter,
  5787.                     PlayerCharacter
  5788.                 }
  5789.                 local ObscuringObjects = # GetPartsObscuringTarget(Camera, CastPoints, IgnoreList)
  5790.  
  5791.                 return ((ObscuringObjects == 0 and true) or (ObscuringObjects > 0 and false))
  5792.             end
  5793.  
  5794.             local function getClosestPlayer()
  5795.                 if not library.flags["Silent TargetPart"] then
  5796.                     return
  5797.                 end
  5798.                 local Closest
  5799.                 local DistanceToMouse
  5800.                 for _, Player in next, GetPlayers(Players) do
  5801.                     if Player == LocalPlayer then
  5802.                         continue
  5803.                     end
  5804.  
  5805.                     local Character = Player.Character
  5806.                     if not Character then
  5807.                         continue
  5808.                     end
  5809.  
  5810.                     local HumanoidRootPart = FindFirstChild(Character, "HumanoidRootPart")
  5811.                     local Humanoid = FindFirstChild(Character, "Humanoid")
  5812.                     if not HumanoidRootPart or not Humanoid or Humanoid and Humanoid.Health <= 0 then
  5813.                         continue
  5814.                     end
  5815.  
  5816.                     local ScreenPosition, OnScreen = getPositionOnScreen(HumanoidRootPart.Position)
  5817.                     if not OnScreen then
  5818.                         continue
  5819.                     end
  5820.  
  5821.                     local Distance = (getMousePosition() - ScreenPosition).Magnitude
  5822.                     if Distance <= (DistanceToMouse or library.flags["Silent FieldOfView"] or 2000) then
  5823.                         Closest = ((library.flags["Silent TargetPart"] == "Random" and Character[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or Character[library.flags["Silent TargetPart"]])
  5824.                         DistanceToMouse = Distance
  5825.                     end
  5826.                 end
  5827.                 return Closest
  5828.             end
  5829.  
  5830.             local oldNamecall
  5831.             oldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(...)
  5832.                 local Method = getnamecallmethod()
  5833.                 local Arguments = {
  5834.                     ...
  5835.                 }
  5836.                 local self = Arguments[1]
  5837.                 local chance = CalculateChance(library.flags["Silent HitChance"])
  5838.                 if library and library.flags["Aimbot"] and library.flags["Aimbot Mode"] == "Silent" and self == workspace and not checkcaller() and chance == true then
  5839.                     if Method == "Raycast" then
  5840.                         if ValidateArguments(Arguments, ExpectedArguments.Raycast) then
  5841.                             local A_Origin = Arguments[2]
  5842.  
  5843.                             local HitPart = getClosestPlayer()
  5844.                             if HitPart then
  5845.                                 Arguments[3] = getDirection(A_Origin, HitPart.Position)
  5846.  
  5847.                                 return oldNamecall(unpack(Arguments))
  5848.                             end
  5849.                         end
  5850.                     end
  5851.                 end
  5852.                 return oldNamecall(...)
  5853.             end))
  5854.  
  5855.         end))
  5856.  
  5857.         --[[ Silent Aim ]]
  5858.  
  5859.         --[[ Infinite Stamina ]]
  5860.  
  5861.         coroutine.resume(coroutine.create(function()
  5862.  
  5863.             repeat
  5864.                 wait()
  5865.             until game:GetService("Players").LocalPlayer.Character and library.flags[GameTitle .. " Infinite Stamina"] ~= nil
  5866.  
  5867.             local StaminaTake = getrenv()._G.S_Take
  5868.             local StaminaFunc = getupvalue(StaminaTake, 2)
  5869.             for i, v in pairs(getupvalues(StaminaFunc)) do
  5870.                 if type(v) == "function" and getinfo(v).name == "Upt_S" then
  5871.                     local OldFunction;
  5872.                     OldFunction = hookfunction(v, function(...)
  5873.                         if library and library.flags[GameTitle .. " Infinite Stamina"] then
  5874.                             local CharacterVar = game:GetService("Players").LocalPlayer.Character
  5875.                             if not CharacterVar or not CharacterVar.Parent then
  5876.                                 local CharacterVar = game:GetService("Players").LocalPlayer.CharacterAdded:wait()
  5877.                                 getupvalue(StaminaFunc, 6).S = 100
  5878.                             elseif CharacterVar then
  5879.                                 getupvalue(StaminaFunc, 6).S = 100
  5880.                             end
  5881.                         end
  5882.                         return OldFunction(...)
  5883.                     end)
  5884.                 end
  5885.             end
  5886.  
  5887.         end))
  5888.  
  5889.         --[[ Infinite Stamina ]]
  5890.  
  5891.         --[[ Values ]]
  5892.  
  5893.         KillAuraTime = 0
  5894.         KillAuraAttempt = 0
  5895.         KillAuraWait = false
  5896.         SafeAutoFarm = false
  5897.         KillAuraCoolDown = false
  5898.         FinishAuraCoolDown = false
  5899.         ToolCoolDown = false
  5900.         CashCoolDown = false
  5901.         ScrapCoolDown = false
  5902.         UnLockCoolDown = false
  5903.         AutoBreakSafeCoolDown = false
  5904.         AutoBreakRegisterCoolDown = false
  5905.         AutoRePairAndReFillCoolDown = false
  5906.         SafeAutoFarmCoolDown = false
  5907.         AutoClaimAllowanceCoolDown = false
  5908.         PlayerList2 = nil
  5909.         PlayerList3 = nil
  5910.         Ping = 0
  5911.         FLYING = false
  5912.         QEfly = true
  5913.         iyflyspeed = 1
  5914.         vehicleflyspeed = 1
  5915.  
  5916.         --[[ Values ]]
  5917.  
  5918.         --[[ Functions ]]
  5919.  
  5920.         function GunModules()
  5921.             for i, v in pairs(getgc(true)) do
  5922.                 if type(v) == 'table' and rawget(v, 'EquipTime') then
  5923.                     if library and library.flags[GameTitle .. " Recoil"] then
  5924.                         coroutine.resume(coroutine.create(function()
  5925.                             v.Recoil = library.flags[GameTitle .. " Recoil Amount"]
  5926.                             if library and library.flags[GameTitle .. " No Camera Recoil"] then
  5927.                                 v.CameraRecoilingEnabled = false
  5928.                                 v.AngleX_Min = 0
  5929.                                 v.AngleX_Max = 0
  5930.                                 v.AngleY_Min = 0
  5931.                                 v.AngleY_Max = 0
  5932.                                 v.AngleZ_Min = 0
  5933.                                 v.AngleZ_Max = 0
  5934.                             end
  5935.                         end))
  5936.                     end
  5937.                     if library and library.flags[GameTitle .. " Spread"] then
  5938.                         coroutine.resume(coroutine.create(function()
  5939.                             v.Spread = library.flags[GameTitle .. " Spread Amount"]
  5940.                         end))
  5941.                     end
  5942.                     if library and library.flags[GameTitle .. " Drop Off"] then
  5943.                         coroutine.resume(coroutine.create(function()
  5944.                             v.Dropoff = library.flags[GameTitle .. " Drop Off Amount"]
  5945.                         end))
  5946.                     end
  5947.                     if library and library.flags[GameTitle .. " Equip Time"] then
  5948.                         coroutine.resume(coroutine.create(function()
  5949.                             v.EquipTime = library.flags[GameTitle .. " Equip Time Amount"]
  5950.                             if library and library.flags[GameTitle .. " No Equip Animation"] then
  5951.                                 v.EquipAnimSpeed = 10000000000
  5952.                             end
  5953.                         end))
  5954.                     end
  5955.                     if library and library.flags[GameTitle .. " Aim Speed"] then
  5956.                         coroutine.resume(coroutine.create(function()
  5957.                             v.AimSettings.AimSpeed = library.flags[GameTitle .. " Aim Speed Amount"]
  5958.                             v.SniperSettings.AimSpeed = library.flags[GameTitle .. " Aim Speed Amount"]
  5959.                             if library and library.flags[GameTitle .. " No Aim Animation"] then
  5960.                                 v.AimSettings.AimAnimSpeed = 10000000000
  5961.                                 v.SniperSettings.AimAnimSpeed = 10000000000
  5962.                             end
  5963.                         end))
  5964.                     end
  5965.                     if library and library.flags[GameTitle .. " Auto Mode"] then
  5966.                         coroutine.resume(coroutine.create(function()
  5967.                             v.FireModeSettings = {
  5968.                                 FireMode = "Semi",
  5969.                                 BurstAmount = library.flags[GameTitle .. " Burst Amount Amount"],
  5970.                                 BurstRate = library.flags[GameTitle .. " Burst Rate Amount"],
  5971.                                 CanSwitch = true,
  5972.                                 SwitchTo = "Auto"
  5973.                             }
  5974.                         end))
  5975.                     end
  5976.                 end
  5977.             end
  5978.         end
  5979.  
  5980.         function GetClosestHumanoidRootPart(currentMagnitude)
  5981.             local closestCurrent = nil
  5982.             for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  5983.                 if v ~= game:GetService("Players").LocalPlayer then
  5984.                     if v.Character ~= nil then
  5985.                         if v.Character.Humanoid.Health ~= 0 then
  5986.                             if (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude < currentMagnitude then
  5987.                                 currentMagnitude = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude
  5988.                                 closestCurrent = v.Character.HumanoidRootPart
  5989.                             end
  5990.                         end
  5991.                     end
  5992.                 end
  5993.             end
  5994.             return closestCurrent
  5995.         end
  5996.  
  5997.         function GetRegister(Studs)
  5998.             local Part;
  5999.             for _, v in ipairs(game:GetService("Workspace").Map.BredMakurz:GetChildren()) do
  6000.                 if v:FindFirstChild("MainPart") and string.find(v.Name, "Register") and v:FindFirstChild("Values").Broken.Value == false then
  6001.                     local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("MainPart").Position).Magnitude
  6002.                     if Distance < Studs then
  6003.                         Studs = Distance
  6004.                         Part = v:FindFirstChild("MainPart")
  6005.                     end
  6006.                 end
  6007.             end
  6008.             return Part
  6009.         end
  6010.  
  6011.         function GetSafe(Studs, Type)
  6012.             if Type then
  6013.                 local Part;
  6014.                 for _, v in ipairs(game:GetService("Workspace").Map.BredMakurz:GetChildren()) do
  6015.                     if v:FindFirstChild("MainPart") and string.find(v.Name, "Safe") then
  6016.                         local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("MainPart").Position).Magnitude
  6017.                         if Distance < Studs then
  6018.                             Studs = Distance
  6019.                             Part = v:FindFirstChild("MainPart")
  6020.                         end
  6021.                     end
  6022.                 end
  6023.                 return Part
  6024.             else
  6025.                 local Part;
  6026.                 for _, v in ipairs(game:GetService("Workspace").Map.BredMakurz:GetChildren()) do
  6027.                     if v:FindFirstChild("MainPart") and string.find(v.Name, "Safe") and v:FindFirstChild("Values").Broken.Value == false then
  6028.                         local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("MainPart").Position).Magnitude
  6029.                         if Distance < Studs then
  6030.                             Studs = Distance
  6031.                             Part = v:FindFirstChild("MainPart")
  6032.                         end
  6033.                     end
  6034.                 end
  6035.                 return Part
  6036.             end
  6037.         end
  6038.  
  6039.         function GetDoor(Studs, Type)
  6040.             if Type then
  6041.                 local Part;
  6042.                 for _, v in ipairs(game:GetService("Workspace").Map.Doors:GetChildren()) do
  6043.                     if v:FindFirstChild("DoorBase") then
  6044.                         local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("DoorBase").Position).Magnitude
  6045.                         if Distance < Studs then
  6046.                             Studs = Distance
  6047.                             Part = v:FindFirstChild("DoorBase")
  6048.                         end
  6049.                     end
  6050.                 end
  6051.                 return Part
  6052.             else
  6053.                 local Part;
  6054.                 for _, v in ipairs(game:GetService("Workspace").Map.Doors:GetChildren()) do
  6055.                     if v:FindFirstChild("DoorBase") and v:FindFirstChild("Values").Locked.Value == true and v:FindFirstChild("Values").Broken.Value == false then
  6056.                         local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("DoorBase").Position).Magnitude
  6057.                         if Distance < Studs then
  6058.                             Studs = Distance
  6059.                             Part = v:FindFirstChild("DoorBase")
  6060.                         end
  6061.                     end
  6062.                 end
  6063.                 return Part
  6064.             end
  6065.         end
  6066.  
  6067.         function GetDealer(Studs, Type, Require)
  6068.             local Part;
  6069.             for _, v in ipairs(game:GetService("Workspace").Map.Shopz:GetChildren()) do
  6070.                 if SafeAutoFarm then
  6071.                     if library and library.flags.AutoFarmMode == "Crowbar" then
  6072.                         if v.Name == Type and v.CurrentStocks.Crowbar.Value > 0 and v:FindFirstChild("MainPart") then
  6073.                             local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("MainPart").Position).Magnitude
  6074.                             if Distance < Studs then
  6075.                                 Studs = Distance
  6076.                                 Part = v:FindFirstChild("MainPart")
  6077.                             end
  6078.                         end
  6079.                     else
  6080.                         if v.Name == Type and v.CurrentStocks.Lockpick.Value > 0 and v:FindFirstChild("MainPart") then
  6081.                             local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("MainPart").Position).Magnitude
  6082.                             if Distance < Studs then
  6083.                                 Studs = Distance
  6084.                                 Part = v:FindFirstChild("MainPart")
  6085.                             end
  6086.                         end
  6087.                     end
  6088.                 else
  6089.                     if Require ~= nil then
  6090.                         if v.Name == Type and v.CurrentStocks[Require].Value > 0 and v:FindFirstChild("MainPart") then
  6091.                             local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("MainPart").Position).Magnitude
  6092.                             if Distance < Studs then
  6093.                                 Studs = Distance
  6094.                                 Part = v:FindFirstChild("MainPart")
  6095.                             end
  6096.                         end
  6097.                     else
  6098.                         if v.Name == Type and v:FindFirstChild("MainPart") then
  6099.                             local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("MainPart").Position).Magnitude
  6100.                             if Distance < Studs then
  6101.                                 Studs = Distance
  6102.                                 Part = v:FindFirstChild("MainPart")
  6103.                             end
  6104.                         end
  6105.                     end
  6106.                 end
  6107.             end
  6108.             return Part
  6109.         end
  6110.  
  6111.         function GetATM(Studs)
  6112.             local Part;
  6113.             for _, v in ipairs(game:GetService("Workspace").Map.ATMz:GetChildren()) do
  6114.                 if v:FindFirstChild("MainPart") then
  6115.                     local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("MainPart").Position).Magnitude
  6116.                     if Distance < Studs then
  6117.                         Studs = Distance
  6118.                         Part = v:FindFirstChild("MainPart")
  6119.                     end
  6120.                 end
  6121.             end
  6122.             return Part
  6123.         end
  6124.  
  6125.         function GetScrap(Studs)
  6126.             local Part;
  6127.             for _, v in ipairs(game:GetService("Workspace").Filter.SpawnedPiles:GetChildren()) do
  6128.                 if v:FindFirstChild("MeshPart") then
  6129.                     local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v:FindFirstChild("MeshPart").Position).Magnitude
  6130.                     if Distance < Studs then
  6131.                         Studs = Distance
  6132.                         Part = v:FindFirstChild("MeshPart")
  6133.                     end
  6134.                 end
  6135.             end
  6136.             return Part
  6137.         end
  6138.  
  6139.         function GetCash(Studs)
  6140.             local Part;
  6141.             for _, v in ipairs(game:GetService("Workspace").Filter.SpawnedBread:GetChildren()) do
  6142.                 local Distance = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Position).Magnitude
  6143.                 if Distance < Studs then
  6144.                     Studs = Distance
  6145.                     Part = v
  6146.                 end
  6147.             end
  6148.             return Part
  6149.         end
  6150.  
  6151.         function GetArmor()
  6152.             for _, v in ipairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  6153.                 if v:FindFirstChild("BrokenM") then
  6154.                     return v.Name
  6155.                 end
  6156.             end
  6157.         end
  6158.  
  6159.         function getPlayer(ShortName)
  6160.             local Plr = nil
  6161.             for i, v in ipairs(game:GetService("Players"):GetPlayers()) do
  6162.                 if string.find(string.lower(v.Name), string.lower(ShortName)) ~= nil then
  6163.                     Plr = v
  6164.                 end
  6165.             end
  6166.             return Plr
  6167.         end
  6168.  
  6169.         function Teleport(Position)
  6170.             if library and library.flags.TeleportationMode == "Normal" then
  6171.                 for x = 1, 100 do
  6172.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Anchored = false
  6173.                     game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Position
  6174.                     wait()
  6175.                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Anchored = true
  6176.                     game:GetService("ReplicatedStorage").Events.__DFfDD:FireServer("__--r", Vector3.new(0, 0, 0), CFrame.new(0, 0, 0))
  6177.                 end
  6178.                 game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Anchored = false
  6179.                 game.Players.LocalPlayer.Character.HumanoidRootPart.Position = Position            
  6180.             else
  6181.                
  6182.             end
  6183.         end
  6184.  
  6185.         function CheckStaff(Player)
  6186.             coroutine.resume(coroutine.create(function()
  6187.                 if Player:GetRankInGroup(4165692) > 1 then
  6188.                     if library.flags["Staff Detector"] == "Notify" then
  6189.                         library:SendNotification(5, "Staff Detected, " .. Player.Name)
  6190.                     else
  6191.                         game:GetService("Players").LocalPlayer:Kick("Staff Detected, " .. Player.Name)
  6192.                     end
  6193.                 end
  6194.             end))
  6195.         end
  6196.  
  6197.         --[[ Connects ]]
  6198.  
  6199.         game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(Character)
  6200.             Character.ChildAdded:Connect(function(Object)
  6201.                 if library and Object:IsA("Tool") then
  6202.                     GunModules()
  6203.                 end
  6204.                 if library and Object:IsA("Tool") and library.flags[GameTitle .. " Kill Aura"] then
  6205.                     KillAuraTime = require(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Config).Mains.E.SwingTime
  6206.                 end
  6207.             end)
  6208.             if library and library.flags[GameTitle .. " Hide Name"] then
  6209.                 for i, v in pairs(game:GetDescendants()) do
  6210.                     if v:IsA("TextLabel") or v:IsA("TextButton") or v:IsA("TextBox") then
  6211.                         if v.Text == game:GetService("Players").LocalPlayer.Name then
  6212.                             v.Text = "nil"
  6213.                         end
  6214.                     end
  6215.                 end
  6216.             end
  6217.             if library and library.flags[GameTitle .. " Hide Character"] then
  6218.                 for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  6219.                     if v.Name ~= "Head" or v.Name ~= "Torso" or v.Name ~= "Left Arm" or v.Name ~= "Right Arm" or v.Name ~= "Left Leg" or v.Name ~= "Right Leg" then
  6220.                         v:Destroy()
  6221.                     end
  6222.                 end
  6223.             end
  6224.         end)
  6225.  
  6226.         if game:GetService("Players").LocalPlayer.Character ~= nil then
  6227.             game:GetService("Players").LocalPlayer.Character.ChildAdded:Connect(function(Object)
  6228.                 if library and Object:IsA("Tool") then
  6229.                     GunModules()
  6230.                 end
  6231.                 if library and Object:IsA("Tool") and library.flags[GameTitle .. " Kill Aura"] then
  6232.                     KillAuraTime = require(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Config).Mains.E.SwingTime
  6233.                 end
  6234.             end)
  6235.         end
  6236.  
  6237.         library:AddConnection(inputService.InputBegan, function(Input)
  6238.             if library and library.flags[GameTitle .. " Infinite Jump"] and not inputService:GetFocusedTextBox() then
  6239.                 if Input.KeyCode == Enum.KeyCode.Space then
  6240.                     if library then
  6241.                         local Char = Players[Client].Character
  6242.                         if Char then
  6243.                             Char.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  6244.                         end
  6245.                     end
  6246.                 end
  6247.             end
  6248.         end)
  6249.  
  6250.         game:GetService("Players").LocalPlayer.PlayerGui.ChildAdded:Connect(function(Item)
  6251.             if library and library.flags[GameTitle .. " Auto Respawn"] then
  6252.                 if Item.Name == "DeathGUI" then
  6253.                     repeat
  6254.                         wait(library.flags[GameTitle .. " Auto Respawn Delay"])
  6255.                         game:GetService("ReplicatedStorage").Events.DeathRespawn:InvokeServer()
  6256.                     until game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("DeathGUI") == nil
  6257.                 end
  6258.             end
  6259.             if library and library.flags[GameTitle .. " Auto Lockpick"] then
  6260.                 if Item.Name == "LockpickGUI" then
  6261.                     Item.MF["LP_Frame"].Frames.B1.Bar.PosV.Value = 0
  6262.                     Item.MF["LP_Frame"].Frames.B2.Bar.PosV.Value = 0
  6263.                     Item.MF["LP_Frame"].Frames.B3.Bar.PosV.Value = 0
  6264.                     repeat
  6265.                         wait(library.flags[GameTitle .. " Auto Lockpick Delay"])
  6266.                         mouse1click()
  6267.                     until not game.Players.LocalPlayer.PlayerGui.LockpickGUI
  6268.                 end
  6269.             end
  6270.             game:GetService("ReplicatedStorage").Events2.UpdatePing.Event:Connect(function(Value)
  6271.                 Ping = (math.floor(Value * 1000 + 0.5))
  6272.             end)
  6273.         end)
  6274.  
  6275.         game:GetService("RunService").RenderStepped:Connect(function()
  6276.             if library and library.flags[GameTitle .. " Disable Down"] then
  6277.                 coroutine.resume(coroutine.create(function()
  6278.                     game:GetService("ReplicatedStorage").CharStats[game:GetService("Players").LocalPlayer.Name].RagdollTime.RagdollSwitch.Value = false
  6279.                 end))
  6280.             end
  6281.         end)
  6282.  
  6283.         game:GetService("Players").PlayerAdded:Connect(function(Player)
  6284.             CheckStaff(Player)
  6285.         end)
  6286.  
  6287.         local LegitTab = library:AddTab"Legit":AddColumn()
  6288.  
  6289.         local LegitGunModules = LegitTab:AddSection"Gun Modules"
  6290.  
  6291.         library.options["Aimbot Mode"]:AddValue"Silent"
  6292.  
  6293.         LegitGunModules:AddToggle({
  6294.             text = "Recoil",
  6295.             callback = function(State)
  6296.                 if State then
  6297.                     GunModules()
  6298.                 end
  6299.             end
  6300.         })
  6301.  
  6302.         LegitGunModules:AddToggle({
  6303.             text = "No Camera Recoil",
  6304.             callback = function(State)
  6305.                 if library and library.flags[GameTitle .. " Recoil"] then
  6306.                     GunModules()
  6307.                 end
  6308.             end
  6309.         })
  6310.  
  6311.         LegitGunModules:AddSlider({
  6312.             text = "Recoil Amount",
  6313.             textpos = 2,
  6314.             min = 0,
  6315.             value = 0,
  6316.             max = 15,
  6317.             callback = function(State)
  6318.                 if library and library.flags[GameTitle .. " Recoil"] then
  6319.                     GunModules()
  6320.                 end
  6321.             end
  6322.         })
  6323.  
  6324.         LegitGunModules:AddToggle({
  6325.             text = "Spread",
  6326.             callback = function(State)
  6327.                 if State then
  6328.                     GunModules()
  6329.                 end
  6330.             end
  6331.         }):AddSlider({
  6332.             text = "Spread Amount",
  6333.             min = 0,
  6334.             value = 0,
  6335.             max = 15,
  6336.             callback = function(State)
  6337.                 if library and library.flags[GameTitle .. " Spread"] then
  6338.                     GunModules()
  6339.                 end
  6340.             end
  6341.         })
  6342.  
  6343.         LegitGunModules:AddToggle({
  6344.             text = "Drop Off",
  6345.             callback = function(State)
  6346.                 if State then
  6347.                     GunModules()
  6348.                 end
  6349.             end
  6350.         }):AddSlider({
  6351.             text = "Drop Off Amount",
  6352.             min = 0,
  6353.             value = 0,
  6354.             max = 15,
  6355.             callback = function(State)
  6356.                 if library and library.flags[GameTitle .. " Drop Off"] then
  6357.                     GunModules()
  6358.                 end
  6359.             end
  6360.         })
  6361.  
  6362.         LegitGunModules:AddToggle({
  6363.             text = "Equip Time",
  6364.             callback = function(State)
  6365.                 if State then
  6366.                     GunModules()
  6367.                 end
  6368.             end
  6369.         })
  6370.  
  6371.         LegitGunModules:AddToggle({
  6372.             text = "No Equip Animation",
  6373.             callback = function(State)
  6374.                 if library and library.flags[GameTitle .. " No Equip Animation"] then
  6375.                     GunModules()
  6376.                 end
  6377.             end
  6378.         })
  6379.  
  6380.         LegitGunModules:AddSlider({
  6381.             text = "Equip Time Amount",
  6382.             textpos = 2,
  6383.             min = 0,
  6384.             value = 0,
  6385.             max = 15,
  6386.             callback = function(State)
  6387.                 if library and library.flags[GameTitle .. " Equip Time"] then
  6388.                     GunModules()
  6389.                 end
  6390.             end
  6391.         })
  6392.  
  6393.         LegitGunModules:AddToggle({
  6394.             text = "Aim Speed",
  6395.             callback = function(State)
  6396.                 if State then
  6397.                     GunModules()
  6398.                 end
  6399.             end
  6400.         })
  6401.  
  6402.         LegitGunModules:AddToggle({
  6403.             text = "No Aim Animation",
  6404.             callback = function(State)
  6405.                 if library and library.flags[GameTitle .. " Aim Speed"] then
  6406.                     GunModules()
  6407.                 end
  6408.             end
  6409.         })
  6410.  
  6411.         LegitGunModules:AddSlider({
  6412.             text = "Aim Speed Amount",
  6413.             textpos = 2,
  6414.             min = 0,
  6415.             value = 0,
  6416.             max = 15,
  6417.             callback = function(State)
  6418.                 if library and library.flags[GameTitle .. " Aim Speed"] then
  6419.                     GunModules()
  6420.                 end
  6421.             end
  6422.         })
  6423.  
  6424.         LegitGunModules:AddToggle({
  6425.             text = "Auto Mode",
  6426.             callback = function(State)
  6427.                 if State then
  6428.                     GunModules()
  6429.                 end
  6430.             end
  6431.         })
  6432.  
  6433.         LegitGunModules:AddSlider({
  6434.             text = "Burst Amount Amount",
  6435.             textpos = 2,
  6436.             min = 0,
  6437.             value = 0,
  6438.             max = 120,
  6439.             callback = function(State)
  6440.                 if library and library.flags[GameTitle .. " Auto Mode"] then
  6441.                     GunModules()
  6442.                 end
  6443.             end
  6444.         })
  6445.  
  6446.         LegitGunModules:AddSlider({
  6447.             text = "Burst Rate Amount",
  6448.             textpos = 2,
  6449.             min = 0,
  6450.             value = 0,
  6451.             max = 120,
  6452.             callback = function(State)
  6453.                 if library and library.flags[GameTitle .. " Auto Mode"] then
  6454.                     GunModules()
  6455.                 end
  6456.             end
  6457.         })
  6458.  
  6459.         local LegitMovement = LegitTab:AddSection"Movement"
  6460.  
  6461.         LegitMovement:AddToggle({
  6462.             text = "Sprint Speed",
  6463.             callback = function(State)
  6464.                 if State then
  6465.                     library:AddConnection(runService.RenderStepped, "Sprint Speed", function()
  6466.                         if library and library.flags[GameTitle .. " Sprint Speed"] then
  6467.                             local Char = Players[Client].Character
  6468.                             Char = Char and FFCoC(Char, "Humanoid")
  6469.                             if Char and game:GetService("ReplicatedStorage").CharStats[game:GetService("Players").LocalPlayer.Name].Sprinting.Value then
  6470.                                 Char.WalkSpeed = library.flags[GameTitle .. " Sprint Speed Amount"]
  6471.                             end
  6472.                         end
  6473.                     end)
  6474.                 else
  6475.                     library.connections["Sprint Speed"]:Disconnect()
  6476.                     local Char = Players[Client].Character
  6477.                     Char = Char and FFCoC(Char, "Humanoid")
  6478.                     if Char then
  6479.                         Char.WalkSpeed = 25
  6480.                     end
  6481.                 end
  6482.             end
  6483.         }):AddSlider({
  6484.             text = "Sprint Speed Amount",
  6485.             textpos = 2,
  6486.             min = 25,
  6487.             value = 25,
  6488.             max = 30,
  6489.             float = 1
  6490.         })
  6491.  
  6492.         LegitMovement:AddToggle({
  6493.             text = "Crouch Speed",
  6494.             callback = function(State)
  6495.                 if State then
  6496.                     library:AddConnection(runService.RenderStepped, "Crouch Speed", function()
  6497.                         if library and library.flags[GameTitle .. " Crouch Speed"] then
  6498.                             local Char = Players[Client].Character
  6499.                             Char = Char and FFCoC(Char, "Humanoid")
  6500.                             if Char and game:GetService("ReplicatedStorage").CharStats[game:GetService("Players").LocalPlayer.Name].Crouching.Value then
  6501.                                 Char.WalkSpeed = library.flags[GameTitle .. " Crouch Speed Amount"]
  6502.                             end
  6503.                         end
  6504.                     end)
  6505.                 else
  6506.                     library.connections["Crouch Speed"]:Disconnect()
  6507.                     local Char = Players[Client].Character
  6508.                     Char = Char and FFCoC(Char, "Humanoid")
  6509.                     if Char then
  6510.                         Char.WalkSpeed = 8
  6511.                     end
  6512.                 end
  6513.             end
  6514.         }):AddSlider({
  6515.             text = "Crouch Speed Amount",
  6516.             textpos = 2,
  6517.             min = 8,
  6518.             value = 8,
  6519.             max = 30,
  6520.             float = 0.1
  6521.         })
  6522.  
  6523.         LegitMovement:AddToggle({
  6524.             text = "Infinite Stamina",
  6525.         })
  6526.  
  6527.         LegitMovement:AddToggle({
  6528.             text = "Always Sprint",
  6529.             callback = function(State)
  6530.                 if State then
  6531.                     library:AddConnection(runService.RenderStepped, "Always Sprint", function()
  6532.                         if library and library.flags[GameTitle .. " Always Sprint"] then
  6533.                             game:GetService("VirtualInputManager"):SendKeyEvent(true, "LeftShift", false, game)
  6534.                         end
  6535.                     end)
  6536.                 else
  6537.                     library.connections["Always Sprint"]:Disconnect()
  6538.                     game:GetService("VirtualInputManager"):SendKeyEvent(false, "LeftShift", false, game)
  6539.                 end
  6540.             end
  6541.         })
  6542.  
  6543.         LegitMovement:AddToggle({
  6544.             text = "Always Crouch",
  6545.             callback = function(State)
  6546.                 if State then
  6547.                     library:AddConnection(runService.RenderStepped, "Always Crouch", function()
  6548.                         if library and library.flags[GameTitle .. " Always Crouch"] then
  6549.                             game:GetService("VirtualInputManager"):SendKeyEvent(true, "C", false, game)
  6550.                         end
  6551.                     end)
  6552.                 else
  6553.                     library.connections["Always Crouch"]:Disconnect()
  6554.                     game:GetService("VirtualInputManager"):SendKeyEvent(false, "C", false, game)
  6555.                 end
  6556.             end
  6557.         })
  6558.  
  6559.         local LegitMisc = LegitTab:AddSection"Misc"
  6560.  
  6561.         LegitMisc:AddToggle({
  6562.             text = "Chat",
  6563.             callback = function(State)
  6564.                 if State then
  6565.                     game:GetService("Players").LocalPlayer.PlayerGui.Chat.Frame.ChatChannelParentFrame.Visible = true
  6566.                     game:GetService("Players").LocalPlayer.PlayerGui.Chat.Frame.ChatBarParentFrame.Position = game:GetService("Players").LocalPlayer.PlayerGui.Chat.Frame.ChatChannelParentFrame.Position + UDim2.new(UDim.new(), game:GetService("Players").LocalPlayer.PlayerGui.Chat.Frame.ChatChannelParentFrame.Size.Y)
  6567.                 else
  6568.                     game:GetService("Players").LocalPlayer.PlayerGui.Chat.Frame.ChatChannelParentFrame.Visible = false
  6569.                     game:GetService("Players").LocalPlayer.PlayerGui.Chat.Frame.ChatBarParentFrame.Position = game:GetService("Players").LocalPlayer.PlayerGui.Chat.Frame.ChatChannelParentFrame.Position + UDim2.new(0, 0, 0, 0)
  6570.                 end
  6571.             end
  6572.         })
  6573.  
  6574.         LegitMisc:AddToggle({
  6575.             text = "Auto Buy"
  6576.         }):AddList({
  6577.             flag = "Auto Buy",
  6578.             values = (function()
  6579.                 local t = {}
  6580.                 for _, v in next, game:GetService("Workspace").Map.Shopz.Dealer.CurrentStocks:GetChildren() do
  6581.                     if v ~= Client then
  6582.                         table.insert(t, v.Name)
  6583.                     end
  6584.                 end
  6585.                 return t
  6586.             end)(),
  6587.             max = 10,
  6588.             callback = function(Value)
  6589.                 library.flags["Auto Buy"] = Value
  6590.             end
  6591.         }):AddBind({
  6592.             callback = function()
  6593.                 if library.flags[GameTitle .. " Auto Buy"] then
  6594.                     coroutine.resume(coroutine.create(function()
  6595.                         game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Melees", library.flags["Auto Buy"], GetDealer(math.huge, "Dealer"))
  6596.                     end))
  6597.                     coroutine.resume(coroutine.create(function()
  6598.                         game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Guns", library.flags["Auto Buy"], GetDealer(math.huge, "Dealer"))
  6599.                     end))
  6600.                     coroutine.resume(coroutine.create(function()
  6601.                         game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Throwables", library.flags["Auto Buy"], GetDealer(math.huge, "Dealer"))
  6602.                     end))
  6603.                     coroutine.resume(coroutine.create(function()
  6604.                         game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Misc", library.flags["Auto Buy"], GetDealer(math.huge, "Dealer"))
  6605.                     end))
  6606.                     coroutine.resume(coroutine.create(function()
  6607.                         game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("LegalStore", "Melees", library.flags["Auto Buy"], GetDealer(math.huge, "Dealer"))
  6608.                     end))
  6609.                     coroutine.resume(coroutine.create(function()
  6610.                         game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("LegalStore", "Guns", library.flags["Auto Buy"], GetDealer(math.huge, "Dealer"))
  6611.                     end))
  6612.                     coroutine.resume(coroutine.create(function()
  6613.                         game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("LegalStore", "Throwables", library.flags["Auto Buy"], GetDealer(math.huge, "Dealer"))
  6614.                     end))
  6615.                     coroutine.resume(coroutine.create(function()
  6616.                         game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("LegalStore", "Misc", library.flags["Auto Buy"], GetDealer(math.huge, "Dealer"))
  6617.                     end))
  6618.                 end
  6619.             end
  6620.         })
  6621.  
  6622.         LegitMisc:AddToggle({
  6623.             text = "Auto Respawn"
  6624.         }):AddSlider({
  6625.             text = "Auto Respawn Delay",
  6626.             min = 0,
  6627.             value = 0,
  6628.             max = 1,
  6629.             float = 0.1,
  6630.             suffix = "s"
  6631.         })
  6632.  
  6633.         LegitMisc:AddToggle({
  6634.             text = "Auto Lockpick"
  6635.         }):AddSlider({
  6636.             text = "Auto Lockpick Delay",
  6637.             min = 0,
  6638.             value = 0,
  6639.             max = 5,
  6640.             float = 0.1,
  6641.             suffix = "s"
  6642.         })
  6643.  
  6644.         LegitMisc:AddToggle({
  6645.             text = "Staff Detector",
  6646.             callback = function(State)
  6647.                 if State then
  6648.                     for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  6649.                         CheckStaff(v)
  6650.                     end
  6651.                 end
  6652.             end
  6653.         }):AddList({
  6654.             flag = "Staff Detector",
  6655.             values = {
  6656.                 "Notify",
  6657.                 "Kick",
  6658.             },
  6659.             callback = function(Value)
  6660.                 library.flags["Staff Detector"] = Value
  6661.             end
  6662.         })
  6663.  
  6664.         local RageTab = library:AddTab"Blantant":AddColumn()
  6665.  
  6666.         local RageCombat = RageTab:AddSection"Combat"
  6667.  
  6668.         local ValidTargetParts = {
  6669.             "Head",
  6670.             "Torso"
  6671.         }
  6672.  
  6673.         RageCombat:AddToggle({
  6674.             text = "Kill Aura",
  6675.             callback = function(State)
  6676.                 if State then
  6677.                     library:AddConnection(runService.RenderStepped, "Kill Aura", function()
  6678.                         if library and library.flags[GameTitle .. " Kill Aura"] then
  6679.                             coroutine.resume(coroutine.create(function()
  6680.                                 local ClosestHumanoidRootPart = GetClosestHumanoidRootPart(library.flags[GameTitle .. " Kill Aura Range"])
  6681.                                 local ClosestHumanoidRootPart2 = GetClosestHumanoidRootPart(library.flags[GameTitle .. " Kill Aura Teleport Range"])
  6682.                                 if ClosestHumanoidRootPart and not KillAuraCoolDown then
  6683.                                     if ClosestHumanoidRootPart.Parent:FindFirstChild("Humanoid").Health > 15 and not ClosestHumanoidRootPart.Parent:FindFirstChildOfClass("ForceField") then
  6684.                                         KillAuraCoolDown = true
  6685.                                         coroutine.resume(coroutine.create(function()
  6686.                                             if library.flags["Kill Aura Mode"] == "Legit" then
  6687.                                                 KillAuraAttempt = KillAuraAttempt + 1
  6688.                                                 if KillAuraAttempt == 2 then
  6689.                                                     KillAuraAttempt = 0
  6690.                                                     KillAuraWait = true
  6691.                                                 end
  6692.                                             end
  6693.                                         end))
  6694.                                         coroutine.resume(coroutine.create(function()
  6695.                                             if library.flags["Kill Aura Mode"] == "Legit" then
  6696.                                                 local KillAuraValue = game:GetService("ReplicatedStorage").Events["XMHH.1"]:InvokeServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "43TRFWJ", "Normal", tick(), true)
  6697.                                                 if library.flags["Kill Aura Mode"] == "Legit" then
  6698.                                                     if KillAuraAttempt == 0 then
  6699.                                                         game:GetService("Players").LocalPlayer.Character.Humanoid:LoadAnimation(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").AnimsFolder.Slash1):Play()
  6700.                                                     elseif KillAuraAttempt == 1 then
  6701.                                                         game:GetService("Players").LocalPlayer.Character.Humanoid:LoadAnimation(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").AnimsFolder.Slash2):Play()
  6702.                                                     end
  6703.                                                 end
  6704.                                                 if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Name == "Fists" then
  6705.                                                     game:GetService("ReplicatedStorage").Events["XMHH2.1"]:FireServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "2389ZFX33", KillAuraValue, false, game:GetService("Players").LocalPlayer.Character["Right Arm"], ((library.flags["Kill Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Kill Aura Target Part"]]), ClosestHumanoidRootPart.Parent, game:GetService("Players").LocalPlayer.Character["Right Arm"].Position, ((library.flags["Kill Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Kill Aura Target Part"]]).Position)
  6706.                                                 else
  6707.                                                     repeat
  6708.                                                         wait()
  6709.                                                     until game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Handle.Trail.Enabled
  6710.                                                     game:GetService("ReplicatedStorage").Events["XMHH2.1"]:FireServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "2389ZFX33", KillAuraValue, false, game:GetService("Players").LocalPlayer.Character["Right Arm"], ((library.flags["Kill Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Kill Aura Target Part"]]), ClosestHumanoidRootPart.Parent, game:GetService("Players").LocalPlayer.Character["Right Arm"].Position, ((library.flags["Kill Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Kill Aura Target Part"]]).Position)
  6711.                                                 end
  6712.                                             else
  6713.                                                 local KillAuraValue = game:GetService("ReplicatedStorage").Events["XMHH.1"]:InvokeServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "43TRFWJ", "Normal", tick(), true)
  6714.                                                 wait(KillAuraTime)
  6715.                                                 game:GetService("ReplicatedStorage").Events["XMHH2.1"]:FireServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "2389ZFX33", KillAuraValue, false, game:GetService("Players").LocalPlayer.Character["Right Arm"], ((library.flags["Kill Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Kill Aura Target Part"]]), ClosestHumanoidRootPart.Parent, game:GetService("Players").LocalPlayer.Character["Right Arm"].Position, ((library.flags["Kill Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Kill Aura Target Part"]]).Position)
  6716.                                             end
  6717.                                         end))
  6718.                                         if library.flags["Kill Aura Mode"] == "Legit" then
  6719.                                             if KillAuraWait then
  6720.                                                 KillAuraWait = false
  6721.                                                 wait(1.5)
  6722.                                                 KillAuraCoolDown = false
  6723.                                             else
  6724.                                                 wait(1)
  6725.                                                 KillAuraCoolDown = false
  6726.                                             end
  6727.                                         elseif library.flags["Kill Aura Mode"] == "Rage" then
  6728.                                             wait(0.25)
  6729.                                             KillAuraCoolDown = false
  6730.                                         end
  6731.                                     end
  6732.                                 end
  6733.                                 if ClosestHumanoidRootPart2 and library.flags["Kill Aura Mode 2"] == "Teleport" then
  6734.                                     if ClosestHumanoidRootPart2.Parent:FindFirstChild("Humanoid").Health > 15 and not ClosestHumanoidRootPart2.Parent:FindFirstChildOfClass("ForceField") then
  6735.                                         if library.flags["Kill Aura Teleport Mode"] == "Behind" then
  6736.                                             game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = ClosestHumanoidRootPart2.Parent["HumanoidRootPart"].CFrame * CFrame.new(0, 0, -library.flags[GameTitle .. " Kill Aura Teleport Length"])
  6737.                                         else
  6738.                                             game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position = ClosestHumanoidRootPart2.Parent["HumanoidRootPart"].Position + Vector3.new(0, library.flags[GameTitle .. " Kill Aura Teleport Length"], 0)
  6739.                                         end
  6740.                                     end
  6741.                                 end
  6742.                             end))
  6743.                         end
  6744.                     end)
  6745.                 else
  6746.                     library.connections["Kill Aura"]:Disconnect()
  6747.                 end
  6748.             end
  6749.         }):AddList({
  6750.             flag = "Kill Aura Mode",
  6751.             values = {
  6752.                 "Legit",
  6753.                 "Rage"
  6754.             },
  6755.             callback = function(Value)
  6756.                 library.flags["Kill Aura Mode"] = Value
  6757.             end
  6758.         })
  6759.  
  6760.         RageCombat:AddList({
  6761.             flag = "Kill Aura Target Part",
  6762.             values = {
  6763.                 "Random",
  6764.                 "Head",
  6765.                 "Torso"
  6766.             },
  6767.             callback = function(State)
  6768.                 library.flags["Kill Aura Target Part"] = State
  6769.             end
  6770.         })
  6771.  
  6772.         RageCombat:AddList({
  6773.             flag = "Kill Aura Mode 2",
  6774.             values = {
  6775.                 "Near",
  6776.                 "Teleport"
  6777.             },
  6778.             callback = function(Value)
  6779.                 library.flags["Kill Aura Mode 2"] = Value
  6780.             end
  6781.         })
  6782.  
  6783.         RageCombat:AddList({
  6784.             flag = "Kill Aura Teleport Mode",
  6785.             values = {
  6786.                 "Above",
  6787.                 "Behind"
  6788.             },
  6789.             callback = function(Value)
  6790.                 library.flags["Kill Aura Teleport Mode"] = Value
  6791.             end
  6792.         })
  6793.  
  6794.         RageCombat:AddSlider({
  6795.             text = "Kill Aura Teleport Range",
  6796.             textpos = 2,
  6797.             min = 0,
  6798.             value = 0,
  6799.             max = 25
  6800.         })
  6801.  
  6802.         RageCombat:AddSlider({
  6803.             text = "Kill Aura Teleport Length",
  6804.             textpos = 2,
  6805.             min = 0,
  6806.             value = 0,
  6807.             max = 15
  6808.         })
  6809.  
  6810.         RageCombat:AddSlider({
  6811.             text = "Kill Aura Range",
  6812.             textpos = 2,
  6813.             min = 0,
  6814.             value = 0,
  6815.             max = 15
  6816.         })
  6817.  
  6818.         RageCombat:AddToggle({
  6819.             text = "Finish Aura",
  6820.             callback = function(State)
  6821.                 if State then
  6822.                     library:AddConnection(runService.RenderStepped, "Finish Aura", function()
  6823.                         if library and library.flags[GameTitle .. " Finish Aura"] then
  6824.                             coroutine.resume(coroutine.create(function()
  6825.                                 local ClosestHumanoidRootPart = GetClosestHumanoidRootPart(library.flags[GameTitle .. " Finish Aura Range"])
  6826.                                 local ClosestHumanoidRootPart2 = GetClosestHumanoidRootPart(library.flags[GameTitle .. " Finish Aura Teleport Range"])
  6827.                                 if ClosestHumanoidRootPart and not FinishAuraCoolDown then
  6828.                                     if ClosestHumanoidRootPart.Parent:FindFirstChild("Humanoid").Health < 15 and not ClosestHumanoidRootPart.Parent:FindFirstChildOfClass("ForceField") then
  6829.                                         FinishAuraCoolDown = true
  6830.                                         coroutine.resume(coroutine.create(function()
  6831.                                             if library.flags["Finish Aura Mode"] == "Legit" then
  6832.                                                 local FinishAuraValue = game:GetService("ReplicatedStorage").Events["XMHH.1"]:InvokeServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "EXECQQ")
  6833.                                                 game:GetService("Players").LocalPlayer.Character.Humanoid:LoadAnimation(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").AnimsFolder.Finish):Play(0.15, 1, require(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Config).Mains.S1.AnimSpeed * game:GetService("ReplicatedStorage").Values.FinishSpeedMulti.Value)
  6834.                                                 wait(0.5)
  6835.                                                 game:GetService("ReplicatedStorage").Events["XMHH2.1"]:FireServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "2389ZFX33", FinishAuraValue, false, game:GetService("Players").LocalPlayer.Character["Right Leg"], ((library.flags["Finish Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Finish Aura Target Part"]]), ClosestHumanoidRootPart.Parent, game:GetService("Players").LocalPlayer.Character["Right Leg"].Position, ((library.flags["Finish Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Finish Aura Target Part"]]).Position)
  6836.                                             else
  6837.                                                 local FinishAuraValue = game:GetService("ReplicatedStorage").Events["XMHH.1"]:InvokeServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "EXECQQ")
  6838.                                                 wait(0.5)
  6839.                                                 game:GetService("ReplicatedStorage").Events["XMHH2.1"]:FireServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "2389ZFX33", FinishAuraValue, false, game:GetService("Players").LocalPlayer.Character["Right Leg"], ((library.flags["Finish Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Finish Aura Target Part"]]), ClosestHumanoidRootPart.Parent, game:GetService("Players").LocalPlayer.Character["Right Leg"].Position, ((library.flags["Finish Aura Target Part"] == "Random" and ClosestHumanoidRootPart.Parent[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or ClosestHumanoidRootPart.Parent[library.flags["Finish Aura Target Part"]]).Position)
  6840.                                             end
  6841.                                         end))
  6842.                                         if library.flags["Finish Aura Mode"] == "Legit" then
  6843.                                             wait(2.5)
  6844.                                             FinishAuraCoolDown = false
  6845.                                         elseif library.flags["Finish Aura Mode"] == "Rage" then
  6846.                                             wait(0.25)
  6847.                                             FinishAuraCoolDown = false
  6848.                                         end
  6849.                                     end
  6850.                                 end
  6851.                                 if ClosestHumanoidRootPart2 and library.flags["Finish Aura Mode 2"] == "Teleport" then
  6852.                                     if ClosestHumanoidRootPart2.Parent:FindFirstChild("Humanoid").Health < 15 and not ClosestHumanoidRootPart2.Parent:FindFirstChildOfClass("ForceField") then
  6853.                                         if library.flags["Finish Aura Teleport Mode"] == "Behind" then
  6854.                                             game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = ClosestHumanoidRootPart2.Parent["HumanoidRootPart"].CFrame * CFrame.new(0, 0, -library.flags[GameTitle .. " Finish Aura Teleport Length"])
  6855.                                         else
  6856.                                             game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position = ClosestHumanoidRootPart2.Parent["HumanoidRootPart"].Position + Vector3.new(0, library.flags[GameTitle .. " Finish Aura Teleport Length"], 0)
  6857.                                         end
  6858.                                     end
  6859.                                 end
  6860.                             end))
  6861.                         end
  6862.                     end)
  6863.                 else
  6864.                     library.connections["Finish Aura"]:Disconnect()
  6865.                 end
  6866.             end
  6867.         }):AddList({
  6868.             flag = "Finish Aura Mode",
  6869.             values = {
  6870.                 "Legit",
  6871.                 "Rage"
  6872.             },
  6873.             callback = function(Value)
  6874.                 library.flags["Finish Aura Mode"] = Value
  6875.             end
  6876.         })
  6877.  
  6878.         RageCombat:AddList({
  6879.             flag = "Finish Aura Target Part",
  6880.             values = {
  6881.                 "Random",
  6882.                 "Head",
  6883.                 "Torso"
  6884.             },
  6885.             callback = function(State)
  6886.                 library.flags["Finish Aura Target Part"] = State
  6887.             end
  6888.         })
  6889.  
  6890.         RageCombat:AddList({
  6891.             flag = "Finish Aura Mode 2",
  6892.             values = {
  6893.                 "Near",
  6894.                 "Teleport"
  6895.             },
  6896.             callback = function(Value)
  6897.                 library.flags["Finish Aura Mode 2"] = Value
  6898.             end
  6899.         })
  6900.  
  6901.         RageCombat:AddList({
  6902.             flag = "Finish Aura Teleport Mode",
  6903.             values = {
  6904.                 "Above",
  6905.                 "Behind"
  6906.             },
  6907.             callback = function(Value)
  6908.                 library.flags["Finish Aura Teleport Mode"] = Value
  6909.             end
  6910.         })
  6911.  
  6912.         RageCombat:AddSlider({
  6913.             text = "Finish Aura Teleport Range",
  6914.             textpos = 2,
  6915.             min = 0,
  6916.             value = 0,
  6917.             max = 25
  6918.         })
  6919.  
  6920.         RageCombat:AddSlider({
  6921.             text = "Finish Aura Teleport Length",
  6922.             textpos = 2,
  6923.             min = 0,
  6924.             value = 0,
  6925.             max = 15
  6926.         })
  6927.  
  6928.         RageCombat:AddSlider({
  6929.             text = "Finish Aura Range",
  6930.             textpos = 2,
  6931.             min = 0,
  6932.             value = 0,
  6933.             max = 5
  6934.         })
  6935.  
  6936.         local RageMovement = RageTab:AddSection"Movement"
  6937.  
  6938.         RageMovement:AddToggle({
  6939.             text = "Walk Speed",
  6940.             callback = function(State)
  6941.                 if State then
  6942.                     library:AddConnection(runService.RenderStepped, "Walk Speed", function()
  6943.                         if library and library.flags[GameTitle .. " Walk Speed"] then
  6944.                             local Char = Players[Client].Character
  6945.                             Char = Char and FFCoC(Char, "Humanoid")
  6946.                             if Char then
  6947.                                 Char.WalkSpeed = library.flags[GameTitle .. " Walk Speed Amount"]
  6948.                             end
  6949.                         end
  6950.                     end)
  6951.                 else
  6952.                     library.connections["Walk Speed"]:Disconnect()
  6953.                     local Char = Players[Client].Character
  6954.                     Char = Char and FFCoC(Char, "Humanoid")
  6955.                     if Char then
  6956.                         Char.WalkSpeed = 16
  6957.                     end
  6958.                 end
  6959.             end
  6960.         }):AddSlider({
  6961.             text = "Walk Speed Amount",
  6962.             textpos = 2,
  6963.             min = 16,
  6964.             value = 16,
  6965.             max = 30
  6966.         })
  6967.  
  6968.         RageMovement:AddToggle({
  6969.             text = "Jump Power",
  6970.             callback = function(State)
  6971.                 if State then
  6972.                     library:AddConnection(runService.RenderStepped, "Jump Power", function()
  6973.                         if library and library.flags[GameTitle .. " Jump Power"] then
  6974.                             local Char = Players[Client].Character
  6975.                             Char = Char and FFCoC(Char, "Humanoid")
  6976.                             if Char then
  6977.                                 Char.JumpPower = library.flags[GameTitle .. " Jump Power Amount"]
  6978.                             end
  6979.                         end
  6980.                     end)
  6981.                 else
  6982.                     library.connections["Jump Power"]:Disconnect()
  6983.                     local Char = Players[Client].Character
  6984.                     Char = Char and FFCoC(Char, "Humanoid")
  6985.                     if Char then
  6986.                         Char.JumpPower = 50
  6987.                     end
  6988.                 end
  6989.             end
  6990.         }):AddSlider({
  6991.             text = "Jump Power Amount",
  6992.             min = 50,
  6993.             value = 50,
  6994.             max = 75
  6995.         })
  6996.  
  6997.         RageMovement:AddToggle({
  6998.             text = "Spin",
  6999.             callback = function(State)
  7000.                 if State then
  7001.                     library:AddConnection(runService.RenderStepped, "Spin", function()
  7002.                         if library and library.flags[GameTitle .. " Spin"] then
  7003.                             local Char = Players[Client].Character
  7004.                             Char = Char and FFCoC(Char, "Humanoid")
  7005.                             if Char and Char.Parent.HumanoidRootPart then
  7006.                                 if not Char.Parent.HumanoidRootPart:FindFirstChild("Spinning") then
  7007.                                     for i, v in pairs(Char.Parent.HumanoidRootPart:GetChildren()) do
  7008.                                         if v.Name == "Spinning" then
  7009.                                             v.Parent = nil
  7010.                                         end
  7011.                                     end
  7012.                                     local Spin = Instance.new("BodyAngularVelocity")
  7013.                                     Spin.Name = "Spinning"
  7014.                                     Spin.Parent = Char.Parent.HumanoidRootPart
  7015.                                     Spin.MaxTorque = Vector3.new(0, math.huge, 0)
  7016.                                 end
  7017.                                 Char.Parent.HumanoidRootPart.Spinning.AngularVelocity = Vector3.new(0, library.flags[GameTitle .. " Spin Amount"], 0)
  7018.                             end
  7019.                         end
  7020.                     end)
  7021.                 else
  7022.                     library.connections["Spin"]:Disconnect()
  7023.                     local Char = Players[Client].Character
  7024.                     Char = Char and FFCoC(Char, "Humanoid")
  7025.                     if Char then
  7026.                         for i, v in pairs(Char.Parent.HumanoidRootPart:GetChildren()) do
  7027.                             if v.Name == "Spinning" then
  7028.                                 v.Parent = nil
  7029.                             end
  7030.                         end
  7031.                     end
  7032.                 end
  7033.             end
  7034.         }):AddSlider({
  7035.             text = "Spin Amount",
  7036.             min = 20,
  7037.             value = 20,
  7038.             max = 50,
  7039.             callback = function(Value)
  7040.                 local Character = Players[Client].Character
  7041.                 if Character then
  7042.                     for i, v in pairs(Character.HumanoidRootPart:GetChildren()) do
  7043.                         if v.Name == "Spinning" then
  7044.                             v.AngularVelocity = Vector3.new(0, library.flags[GameTitle .. " Spin Amount"], 0)
  7045.                         end
  7046.                     end
  7047.                 end
  7048.             end
  7049.         })
  7050.  
  7051.         RageMovement:AddToggle({
  7052.             text = "Infinite Jump",
  7053.         })
  7054.  
  7055.         RageMovement:AddToggle({
  7056.             text = "No Clip",
  7057.         }):AddBind({
  7058.             mode = "hold",
  7059.             callback = function(Ended, Step)
  7060.                 if library and library.flags[GameTitle .. " No Clip"] then
  7061.                     local Char = Players[Client].Character
  7062.                     Char = Char and FFCoC(Char, "Humanoid")
  7063.                     if Char then
  7064.                         for _, child in pairs(Char.Parent:GetDescendants()) do
  7065.                             if child:IsA("BasePart") and child.CanCollide == true then
  7066.                                 child.CanCollide = false
  7067.                             end
  7068.                         end
  7069.                     end
  7070.                 end
  7071.             end
  7072.         })
  7073.  
  7074.         RageMovement:AddToggle({
  7075.             text = "Float Fly",
  7076.         }):AddSlider({
  7077.             text = "Float Fly Speed Amount",
  7078.             min = 27,
  7079.             value = 27,
  7080.             max = 50,
  7081.         }):AddBind({
  7082.             mode = "hold",
  7083.             callback = function(Ended, Step)
  7084.                 if library and library.flags[GameTitle .. " Float Fly"] and game.Players.LocalPlayer.Character.Humanoid.MoveDirection.Magnitude > 0 then
  7085.                     game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = (game.Players.LocalPlayer.Character.Humanoid.MoveDirection.Unit * library.flags[GameTitle .. " Float Fly Speed Amount"]) + Vector3.new(0, 0.85 + (false and library.flags[GameTitle .. " Float Fly Speed Amount"] or 0) + (false and -library.flags[GameTitle .. " Float Fly Speed Amount"] or 0), 0)
  7086.                 end
  7087.             end
  7088.         })
  7089.  
  7090.         local RageMisc = RageTab:AddSection"Misc"
  7091.  
  7092.         RageMisc:AddToggle({
  7093.             text = "Wall Bang",
  7094.             callback = function(State)
  7095.                 if State then
  7096.                     game:GetService("Workspace").Map.Parts["M_Parts"].Parent = game:GetService("Workspace").CurrentCamera.Bullets
  7097.                 else
  7098.                     if game:GetService("Workspace").CurrentCamera.Bullets:FindFirstChild("M_Parts") then
  7099.                         game:GetService("Workspace").CurrentCamera.Bullets["M_Parts"].Parent = game:GetService("Workspace").Map.Parts
  7100.                     end
  7101.                 end
  7102.             end,
  7103.         })
  7104.  
  7105.         local MT = getrawmetatable(game)
  7106.         setreadonly(MT, false)
  7107.         local NameCall = MT.__namecall
  7108.         MT.__namecall = newcclosure(function(self, ...)
  7109.             local Method = getnamecallmethod()
  7110.             local Args = {
  7111.                 ...
  7112.             }
  7113.             if Method == "FireServer" and Args[1] == "BHHh" then
  7114.                 if library and library.flags[GameTitle .. " Disable BarbWire"] then
  7115.                     return wait(9e9)
  7116.                 end
  7117.             elseif Method == "FireServer" and Args[1] == "FlllD" or Args[1] == "FlllH" then
  7118.                 if library and library.flags[GameTitle .. " Disable Fall Damage"] then
  7119.                     return wait(9e9)
  7120.                 end
  7121.             elseif Method == "FireServer" and Args[1] == "__--r" or Args[1] == "HITRGP" or Args[1] == "FllH" then
  7122.                 if library and library.flags[GameTitle .. " Disable Ragdoll"] then
  7123.                     return wait(9e9)
  7124.                 end
  7125.             elseif Method == "FireServer" and Args[2] == "Drown" then
  7126.                 if library and library.flags[GameTitle .. " Disable Drown"] then
  7127.                     return wait(9e9)
  7128.                 end
  7129.             end
  7130.             return NameCall(self, ...)
  7131.         end)
  7132.  
  7133.         RageMisc:AddToggle({
  7134.             text = "Disable Fall Damage",
  7135.         })
  7136.  
  7137.         RageMisc:AddToggle({
  7138.             text = "Disable BarbWire",
  7139.         })
  7140.  
  7141.         RageMisc:AddToggle({
  7142.             text = "Disable Ragdoll",
  7143.         })
  7144.  
  7145.         RageMisc:AddToggle({
  7146.             text = "Disable Drown",
  7147.         })
  7148.  
  7149.         RageMisc:AddToggle({
  7150.             text = "Disable Down",
  7151.         })
  7152.  
  7153.         RageMisc:AddToggle({
  7154.             text = "Auto Pick Scrap",
  7155.             callback = function(State)
  7156.                 if State then
  7157.                     library:AddConnection(runService.RenderStepped, "Auto Pick Scrap", function()
  7158.                         if library and library.flags[GameTitle .. " Auto Pick Scrap"] then
  7159.                             coroutine.resume(coroutine.create(function()
  7160.                                 for i, v in pairs(game:GetService("Workspace").Filter.SpawnedPiles:GetChildren()) do
  7161.                                     if game:GetService("Players").LocalPlayer.Character.Humanoid.Health > 0 then
  7162.                                         if (game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position - v:FindFirstChild("MeshPart").Position).Magnitude < library.flags[GameTitle .. " Auto Pick Scrap Range"] then
  7163.                                             if ScrapCoolDown == false then
  7164.                                                 ScrapCoolDown = true
  7165.                                                 game:GetService("ReplicatedStorage").Events.PIC_PU:FireServer(string.reverse(v:GetAttribute("zp")))
  7166.                                                 wait(1)
  7167.                                                 ScrapCoolDown = false
  7168.                                             end
  7169.                                         end
  7170.                                     end
  7171.                                 end
  7172.                             end))
  7173.                         end
  7174.                     end)
  7175.                 else
  7176.                     library.connections["Auto Pick Scrap"]:Disconnect()
  7177.                 end
  7178.             end
  7179.         }):AddSlider({
  7180.             text = "Auto Pick Scrap Range",
  7181.             min = 0,
  7182.             value = 0,
  7183.             max = 10,
  7184.         })
  7185.  
  7186.         RageMisc:AddToggle({
  7187.             text = "Auto Pick Tool",
  7188.             callback = function(State)
  7189.                 if State then
  7190.                     library:AddConnection(runService.RenderStepped, "Auto Pick Tool", function()
  7191.                         if library and library.flags[GameTitle .. " Auto Pick Tool"] then
  7192.                             coroutine.resume(coroutine.create(function()
  7193.                                 for i, v in pairs(game:GetService("Workspace").Filter.SpawnedTools:GetChildren()) do
  7194.                                     if game:GetService("Players").LocalPlayer.Character.Humanoid.Health > 0 then
  7195.                                         if (game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position - v:FindFirstChildOfClass("MeshPart").Position).Magnitude < library.flags[GameTitle .. " Auto Pick Tool Range"] then
  7196.                                             if ToolCoolDown == false then
  7197.                                                 ToolCoolDown = true
  7198.                                                 game:GetService("ReplicatedStorage").Events.PIC_TLO:FireServer(v:FindFirstChildOfClass("MeshPart"))
  7199.                                                 wait(1)
  7200.                                                 ToolCoolDown = false
  7201.                                             end
  7202.                                         end
  7203.                                     end
  7204.                                 end
  7205.                             end))
  7206.                         end
  7207.                     end)
  7208.                 else
  7209.                     library.connections["Auto Pick Tool"]:Disconnect()
  7210.                 end
  7211.             end
  7212.         }):AddSlider({
  7213.             text = "Auto Pick Tool Range",
  7214.             min = 0,
  7215.             value = 0,
  7216.             max = 10,
  7217.         })
  7218.  
  7219.         RageMisc:AddToggle({
  7220.             text = "Auto Pick Cash",
  7221.             callback = function(State)
  7222.                 if State then
  7223.                     library:AddConnection(runService.RenderStepped, "Auto Pick Cash", function()
  7224.                         if library and library.flags[GameTitle .. " Auto Pick Cash"] then
  7225.                             coroutine.resume(coroutine.create(function()
  7226.                                 for i, v in pairs(game:GetService("Workspace").Filter.SpawnedBread:GetChildren()) do
  7227.                                     if game:GetService("Players").LocalPlayer.Character.Humanoid.Health > 0 then
  7228.                                         if (game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position - v.Position).Magnitude < library.flags[GameTitle .. " Auto Pick Cash Range"] then
  7229.                                             if CashCoolDown == false then
  7230.                                                 CashCoolDown = true
  7231.                                                 game:GetService("ReplicatedStorage").Events.CZDPZUS:FireServer(v)
  7232.                                                 wait(1)
  7233.                                                 CashCoolDown = false
  7234.                                             end
  7235.                                         end
  7236.                                     end
  7237.                                 end
  7238.                             end))
  7239.                         end
  7240.                     end)
  7241.                 else
  7242.                     library.connections["Auto Pick Cash"]:Disconnect()
  7243.                 end
  7244.             end
  7245.         }):AddSlider({
  7246.             text = "Auto Pick Cash Range",
  7247.             min = 0,
  7248.             value = 0,
  7249.             max = 10,
  7250.         })
  7251.  
  7252.         RageMisc:AddToggle({
  7253.             text = "Auto UnLock",
  7254.             callback = function(State)
  7255.                 if State then
  7256.                     library:AddConnection(runService.RenderStepped, "Auto UnLock", function()
  7257.                         if library and library.flags[GameTitle .. " Auto UnLock"] then
  7258.                             coroutine.resume(coroutine.create(function()
  7259.                                 for i, v in pairs(game:GetService("Workspace").Map.Doors:GetChildren()) do
  7260.                                     if (game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position - v:FindFirstChild("DoorBase").Position).Magnitude <= library.flags[GameTitle .. " Auto UnLock Range"] then
  7261.                                         if v:FindFirstChild("Values"):FindFirstChild("Locked").Value == true then
  7262.                                             if UnLockCoolDown == false then
  7263.                                                 UnLockCoolDown = true
  7264.                                                 v:FindFirstChild("Events"):FindFirstChild("Toggle"):FireServer("Unlock", v.Lock)
  7265.                                                 wait(0.5)
  7266.                                                 UnLockCoolDown = false
  7267.                                             end
  7268.                                         end
  7269.                                     end
  7270.                                 end
  7271.                             end))
  7272.                         end
  7273.                     end)
  7274.                 else
  7275.                     library.connections["Auto UnLock"]:Disconnect()
  7276.                 end
  7277.             end
  7278.         }):AddSlider({
  7279.             text = "Auto UnLock Range",
  7280.             min = 0,
  7281.             value = 0,
  7282.             max = 10,
  7283.         })
  7284.  
  7285.         RageMisc:AddToggle({
  7286.             text = "Auto Break Door",
  7287.             callback = function(State)
  7288.                 if State then
  7289.                     library:AddConnection(runService.RenderStepped, "Auto Break Door", function()
  7290.                         if library and library.flags[GameTitle .. " Auto Break Door"] then
  7291.                             coroutine.resume(coroutine.create(function()
  7292.                                 if game:GetService("Players").LocalPlayer.Character:FindFirstChild("Crowbar") then
  7293.                                     local ClosestDoor = GetDoor(library.flags[GameTitle .. " Auto Break Door Range"], false)
  7294.                                     if ClosestDoor and not AutoBreakDoorCoolDown then
  7295.                                         AutoBreakDoorCoolDown = true
  7296.                                         local AutoBreakDoorValue = game:GetService("ReplicatedStorage").Events["XMHH.1"]:InvokeServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "DZDRRRKI", ClosestDoor.Parent, "Door")
  7297.                                         game:GetService("ReplicatedStorage").Events["XMHH2.1"]:FireServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "2389ZFX33", AutoBreakDoorValue, false, game:GetService("Players").LocalPlayer.Character["Right Leg"], ClosestDoor, ClosestDoor.Parent, ClosestDoor.Position, ClosestDoor.Position)
  7298.                                         wait(0.5)
  7299.                                         AutoBreakDoorCoolDown = false
  7300.                                     end
  7301.                                 end
  7302.                             end))
  7303.                         end
  7304.                     end)
  7305.                 else
  7306.                     library.connections["Auto Break Door"]:Disconnect()
  7307.                 end
  7308.             end
  7309.         }):AddSlider({
  7310.             text = "Auto Break Door Range",
  7311.             min = 0,
  7312.             value = 0,
  7313.             max = 15,
  7314.         })
  7315.  
  7316.         RageMisc:AddToggle({
  7317.             text = "Auto Break Safe",
  7318.             callback = function(State)
  7319.                 if State then
  7320.                     library:AddConnection(runService.RenderStepped, "Auto Break Safe", function()
  7321.                         if library and library.flags[GameTitle .. " Auto Break Safe"] then
  7322.                             coroutine.resume(coroutine.create(function()
  7323.                                 if game:GetService("Players").LocalPlayer.Character:FindFirstChild("Crowbar") then
  7324.                                     local ClosestSafe = GetSafe(library.flags[GameTitle .. " Auto Break Safe Range"], false)
  7325.                                     if ClosestSafe and not AutoBreakSafeCoolDown then
  7326.                                         AutoBreakSafeCoolDown = true
  7327.                                         local AutoBreakSafeValue = game:GetService("ReplicatedStorage").Events["XMHH.1"]:InvokeServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "DZDRRRKI", ClosestSafe.Parent, "Register")
  7328.                                         game:GetService("ReplicatedStorage").Events["XMHH2.1"]:FireServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "2389ZFX33", AutoBreakSafeValue, false, game:GetService("Players").LocalPlayer.Character["Right Arm"], ClosestSafe, ClosestSafe.Parent, ClosestSafe.Position, ClosestSafe.Position)
  7329.                                         wait(0.5)
  7330.                                         AutoBreakSafeCoolDown = false
  7331.                                     end
  7332.                                 end
  7333.                             end))
  7334.                         end
  7335.                     end)
  7336.                 else
  7337.                     library.connections["Auto Break Safe"]:Disconnect()
  7338.                 end
  7339.             end
  7340.         }):AddSlider({
  7341.             text = "Auto Break Safe Range",
  7342.             min = 0,
  7343.             value = 0,
  7344.             max = 15,
  7345.         })
  7346.  
  7347.         RageMisc:AddToggle({
  7348.             text = "Auto Break Register",
  7349.             callback = function(State)
  7350.                 if State then
  7351.                     library:AddConnection(runService.RenderStepped, "Auto Break Register", function()
  7352.                         if library and library.flags[GameTitle .. " Auto Break Register"] then
  7353.                             coroutine.resume(coroutine.create(function()
  7354.                                 if game:GetService("Players").LocalPlayer.Character:FindFirstChild("Fists") then
  7355.                                     local ClosestRegister = GetRegister(library.flags[GameTitle .. " Auto Break Register Range"])
  7356.                                     if ClosestRegister and not AutoBreakRegisterCoolDown then
  7357.                                         AutoBreakRegisterCoolDown = true
  7358.                                         local AutoBreakRegisterValue = game:GetService("ReplicatedStorage").Events["XMHH.1"]:InvokeServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "DZDRRRKI", ClosestRegister.Parent, "Register")
  7359.                                         game:GetService("ReplicatedStorage").Events["XMHH2.1"]:FireServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "2389ZFX33", AutoBreakRegisterValue, false, game:GetService("Players").LocalPlayer.Character["Right Arm"], ClosestRegister, ClosestRegister.Parent, ClosestRegister.Position, ClosestRegister.Position)
  7360.                                         wait(0.5)
  7361.                                         AutoBreakRegisterCoolDown = false
  7362.                                     end
  7363.                                 end
  7364.                             end))
  7365.                         end
  7366.                     end)
  7367.                 else
  7368.                     library.connections["Auto Break Register"]:Disconnect()
  7369.                 end
  7370.             end
  7371.         }):AddSlider({
  7372.             text = "Auto Break Register Range",
  7373.             min = 0,
  7374.             value = 0,
  7375.             max = 15,
  7376.         })
  7377.  
  7378.         RageMisc:AddToggle({
  7379.             text = "Auto RePair And ReFill",
  7380.             callback = function(State)
  7381.                 if State then
  7382.                     library:AddConnection(runService.RenderStepped, "Auto RePair And ReFill", function()
  7383.                         if library and library.flags[GameTitle .. " Auto RePair And ReFill"] then
  7384.                             coroutine.resume(coroutine.create(function()
  7385.                                 if library.flags["Auto RePair And ReFill Mode"] == "Near" then
  7386.                                     local Dealer = GetDealer(library.flags[GameTitle .. " Auto RePair And ReFill Range"], "Dealer")
  7387.                                     if Dealer and not AutoRePairAndReFillCoolDown then
  7388.                                         AutoRePairAndReFillCoolDown = true
  7389.                                         if Dealer.Parent.Name == "Dealer" then
  7390.                                             coroutine.resume(coroutine.create(function()
  7391.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Guns", game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Name, Dealer, "ResupplyAmmo")
  7392.                                             end))
  7393.                                             coroutine.resume(coroutine.create(function()
  7394.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Armour", GetArmor(), Dealer, "ResupplyAmmo")
  7395.                                             end))
  7396.                                         elseif Dealer.Parent.Name == "ArmoryDealer" then
  7397.                                             coroutine.resume(coroutine.create(function()
  7398.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("LegalStore", "Guns", game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Name, Dealer, "ResupplyAmmo")
  7399.                                             end))
  7400.                                             coroutine.resume(coroutine.create(function()
  7401.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("LegalStore", "Armour", GetArmor(), Dealer, "ResupplyAmmo")
  7402.                                             end))
  7403.                                         end
  7404.                                         wait(0.5)
  7405.                                         AutoRePairAndReFillCoolDown = false
  7406.                                     end
  7407.                                 else
  7408.                                     if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool") then
  7409.                                         if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Values.Ammo.Value == 0 and game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Values.StoredAmmo.Value == 0 then
  7410.                                             local Dealer = GetDealer(math.huge, "Dealer")
  7411.                                             if Dealer and not AutoRePairAndReFillCoolDown then
  7412.                                                 AutoRePairAndReFillCoolDown = true
  7413.                                                 OldCFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  7414.                                                 game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = Dealer.CFrame + Vector3.new(0, 5, 0)
  7415.                                                 wait(0.15)
  7416.                                                 if Dealer.Parent.Name == "Dealer" then
  7417.                                                     coroutine.resume(coroutine.create(function()
  7418.                                                         for x = 1, 5 do
  7419.                                                             wait(0.15)
  7420.                                                             game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Guns", game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Name, Dealer, "ResupplyAmmo")
  7421.                                                         end
  7422.                                                     end))
  7423.                                                     wait(0.15)
  7424.                                                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = OldCFrame
  7425.                                                 elseif Dealer.Parent.Name == "ArmoryDealer" then
  7426.                                                     coroutine.resume(coroutine.create(function()
  7427.                                                         for x = 1, 5 do
  7428.                                                             wait(0.15)
  7429.                                                             game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("LegalStore", "Guns", game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Name, Dealer, "ResupplyAmmo")
  7430.                                                         end
  7431.                                                     end))
  7432.                                                     wait(0.15)
  7433.                                                     game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = OldCFrame
  7434.                                                 end
  7435.                                                 wait(5)
  7436.                                                 AutoRePairAndReFillCoolDown = false
  7437.                                             end
  7438.                                         end
  7439.                                     end
  7440.                                 end
  7441.                             end))
  7442.                         end
  7443.                     end)
  7444.                 else
  7445.                     library.connections["Auto RePair And ReFill"]:Disconnect()
  7446.                 end
  7447.             end
  7448.         }):AddList({
  7449.             flag = "Auto RePair And ReFill Mode",
  7450.             values = {
  7451.                 "Near",
  7452.                 "Teleport",
  7453.             },
  7454.             callback = function(Value)
  7455.                 library.flags["Auto RePair And ReFill Mode"] = Value
  7456.             end
  7457.         })
  7458.  
  7459.         RageMisc:AddSlider({
  7460.             text = "Auto RePair And ReFill Range",
  7461.             textpos = 2,
  7462.             min = 0,
  7463.             value = 0,
  7464.             max = 10,
  7465.         })
  7466.  
  7467.         RageMisc:AddToggle({
  7468.             text = "Auto Claim Allowance",
  7469.             callback = function(State)
  7470.                 if State then
  7471.                     library:AddConnection(runService.RenderStepped, "Auto Claim Allowance", function()
  7472.                         if library and library.flags[GameTitle .. " Auto Claim Allowance"] and game:GetService("ReplicatedStorage").PlayerbaseData2[game:GetService("Players").LocalPlayer.Name].NextAllowance.Value == 0 then
  7473.                             coroutine.resume(coroutine.create(function()
  7474.                                 if library.flags["Auto Claim Allowance Mode"] == "Near" then
  7475.                                     local ATM = GetATM(library.flags[GameTitle .. " Auto Claim Allowance Range"])
  7476.                                     if ATM and not AutoClaimAllowanceCoolDown then
  7477.                                         AutoClaimAllowanceCoolDown = true
  7478.                                         coroutine.resume(coroutine.create(function()
  7479.                                             game:GetService("ReplicatedStorage").Events.CLMZALOW:InvokeServer(ATM)
  7480.                                         end))
  7481.                                         wait(0.5)
  7482.                                         AutoClaimAllowanceCoolDown = false
  7483.                                     end
  7484.                                 else
  7485.                                     local ATM = GetATM(math.huge)
  7486.                                     if ATM and not AutoClaimAllowanceCoolDown then
  7487.                                         AutoClaimAllowanceCoolDown = true
  7488.                                         OldCFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  7489.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = ATM.CFrame + Vector3.new(0, 5, 0)
  7490.                                         wait(0.15)
  7491.                                         coroutine.resume(coroutine.create(function()
  7492.                                             for x = 1, 5 do
  7493.                                                 wait()
  7494.                                                 game:GetService("ReplicatedStorage").Events.CLMZALOW:InvokeServer(ATM)
  7495.                                             end
  7496.                                         end))
  7497.                                         wait(0.25)
  7498.                                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = OldCFrame
  7499.                                         wait(5)
  7500.                                         AutoClaimAllowanceCoolDown = false
  7501.                                     end
  7502.                                 end
  7503.                             end))
  7504.                         end
  7505.                     end)
  7506.                 else
  7507.                     library.connections["Auto Claim Allowance"]:Disconnect()
  7508.                 end
  7509.             end
  7510.         }):AddList({
  7511.             flag = "Auto Claim Allowance Mode",
  7512.             values = {
  7513.                 "Near",
  7514.                 "Teleport",
  7515.             },
  7516.             callback = function(Value)
  7517.                 library.flags["Auto Claim Allowance Mode"] = Value
  7518.             end
  7519.         })
  7520.  
  7521.         RageMisc:AddSlider({
  7522.             text = "Auto Claim Allowance Range",
  7523.             textpos = 2,
  7524.             min = 0,
  7525.             value = 0,
  7526.             max = 10,
  7527.         })
  7528.  
  7529.         RageMisc:AddToggle({
  7530.             text = "Invisible Fling",
  7531.             callback = function(State)
  7532.                 if State then
  7533.                     coroutine.resume(coroutine.create(function()
  7534.                         library:SendNotification(5, "Loading Invisible Fling, Please Wait")
  7535.  
  7536.                         function GetName()
  7537.                             for i, v in pairs(game:GetService("StarterPlayer").StarterPlayerScripts:GetChildren()) do
  7538.                                 if v:FindFirstChild("XIIX") then
  7539.                                     return v
  7540.                                 end
  7541.                             end
  7542.                         end
  7543.  
  7544.                         game:GetService("Players").LocalPlayer.PlayerScripts:FindFirstChild(tostring(GetName())):Destroy()
  7545.  
  7546.                         local rs = game:GetService("RunService")
  7547.  
  7548.                         local plrs = game:GetService("Players")
  7549.                         local lp = plrs.LocalPlayer
  7550.                         local mouse = lp:GetMouse()
  7551.                         local ws = game:GetService("Workspace")
  7552.                         local c = nil      
  7553.  
  7554.                         local function resReq()
  7555.                             local nm = Instance.new("Model")
  7556.                             local nh = Instance.new("Humanoid", nm)
  7557.                             nh.Health = 100
  7558.                             lp.Character = nm
  7559.                             nh.Health = 0
  7560.                             nh:Destroy()
  7561.                             nm:Destroy()
  7562.                         end
  7563.  
  7564.                         local function align(Part0, Part1)
  7565.                             Part0.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  7566.                             local att1 = Instance.new("Attachment")
  7567.                             att1.Orientation = Vector3.new(0, 0, 0)
  7568.                             att1.Position = Vector3.new(0, 0, 0)
  7569.                             att1.Archivable = true
  7570.                             local att0 = att1:Clone()
  7571.  
  7572.                             local ap = Instance.new("AlignPosition", att0)
  7573.                             ap.ApplyAtCenterOfMass = true
  7574.                             ap.MaxForce = 9e9
  7575.                             ap.MaxVelocity = 9e9
  7576.                             ap.ReactionForceEnabled = false
  7577.                             ap.Responsiveness = 200
  7578.                             ap.RigidityEnabled = false
  7579.  
  7580.                             ap.Attachment1 = att1
  7581.                             ap.Attachment0 = att0
  7582.  
  7583.                             att1.Parent = Part1
  7584.                             att0.Parent = Part0
  7585.                         end
  7586.  
  7587.                         c = lp.Character
  7588.                         if not (c and c.Parent) then
  7589.                             ibrary:SendNotification("error: character not found")
  7590.                             return nil
  7591.                         end
  7592.                         local hum = c:FindFirstChildOfClass("Humanoid")
  7593.                         if not (hum and hum.Parent) then
  7594.                             ibrary:SendNotification("error: humanoid not found")
  7595.                             return nil
  7596.                         end
  7597.                         if hum.Health == 0 then
  7598.                             ibrary:SendNotification("error: humanoid health 0")
  7599.                             return nil
  7600.                         end
  7601.                         resReq()
  7602.                         lp.Character = c
  7603.                         wait(5.1)
  7604.                         if not (c and c.Parent) then
  7605.                             ibrary:SendNotification("error: character removed")
  7606.                             return nil
  7607.                         end
  7608.                         if not (hum and hum.Parent) then
  7609.                             ibrary:SendNotification("error: humanoid removed")
  7610.                             return nil
  7611.                         end
  7612.                         if hum.Health == 0 then
  7613.                             ibrary:SendNotification("error: humanoid died")
  7614.                             return nil
  7615.                         end
  7616.                         c:BreakJoints()
  7617.                         hum.Health = 0
  7618.                         wait()
  7619.                         if not (c and c.Parent) then
  7620.                             ibrary:SendNotification("error: character removed")
  7621.                             return nil
  7622.                         end
  7623.                         parts = {}
  7624.                         for i, v in pairs(c:GetDescendants()) do
  7625.                             if v and v.Parent and v:IsA("BasePart") then
  7626.                                 if v.CanCollide then
  7627.                                     table.insert(parts, v)
  7628.                                 else
  7629.                                     v.Velocity = Vector3.new(0, -1000, 0)
  7630.                                 end
  7631.                             end
  7632.                         end
  7633.                         local hrp = Instance.new("Part", c)
  7634.                         hrp.Name = "hrp"
  7635.                         hrp.Anchored = true
  7636.                         hrp.Transparency = 1
  7637.                         pcall(function()
  7638.                             hrp.CFrame = parts[1].CFrame
  7639.                         end)
  7640.                         ws.CurrentCamera.CameraSubject = hrp
  7641.                         for i, v in pairs(parts) do
  7642.                             if v and v.Parent then
  7643.                                 align(v, hrp)
  7644.                             end
  7645.                         end
  7646.                         spawn(function()
  7647.                             local currentp = nil
  7648.                             spawn(function()
  7649.                                 while rs.Stepped:Wait() and c and c.Parent and hrp and hrp.Parent do
  7650.                                     if currentp and currentp.Parent then
  7651.                                         local c1 = currentp.Character
  7652.                                         if c1 and c1.Parent then
  7653.                                             local hed1 = c1:FindFirstChild("Head") or c1:FindFirstChild("Torso") or c1:FindFirstChild("HumanoidRootPart") or c1:FindFirstChildWhichIsA("BasePart")
  7654.                                             if hed1 then
  7655.                                                 hrp.CFrame = hed1.CFrame
  7656.                                             end
  7657.                                         end
  7658.                                     end
  7659.                                 end
  7660.                             end)
  7661.                             while rs.Heartbeat:Wait() and c and c.Parent and hrp and hrp.Parent do
  7662.                                 local delay = tonumber(0)
  7663.                                 if (not delay) or (delay < 0) then
  7664.                                     delay = 0
  7665.                                 end
  7666.                                 if delay == 0 then
  7667.                                     currentp = false
  7668.                                 else
  7669.                                     wait(delay)
  7670.                                     delay = tonumber(0)
  7671.                                     if (not delay) or (delay < 0) then
  7672.                                         delay = 0
  7673.                                     end
  7674.                                     if c and c.Parent and hrp and hrp.Parent and (delay ~= 0) then
  7675.                                         local getp = plrs:GetPlayers()
  7676.                                         local i1 = false
  7677.                                         for i, v in pairs(getp) do
  7678.                                             if (v == currentp) and (v ~= lp) then
  7679.                                                 i1 = i
  7680.                                             end
  7681.                                         end
  7682.                                         if (not i1) then
  7683.                                             i1 = 1
  7684.                                         end
  7685.                                         local function nextp()
  7686.                                             if i1 == #getp then
  7687.                                                 i1 = 1
  7688.                                             else
  7689.                                                 i1 += 1
  7690.                                             end
  7691.                                             currentp = getp[i1]
  7692.                                         end
  7693.                                         local c1 = nil
  7694.                                         while wait() and not (c1 and c1.Parent) do
  7695.                                             nextp()
  7696.                                             if currentp == lp then
  7697.                                                 nextp()
  7698.                                             end
  7699.                                             c1 = currentp.Character
  7700.                                         end
  7701.                                     end
  7702.                                 end
  7703.                             end
  7704.                         end)
  7705.  
  7706.                         spawn(function()
  7707.                             while c and c.Parent and rs.Heartbeat:Wait() do
  7708.                                 for i, v in pairs(parts) do
  7709.                                     if v and v.Parent then
  7710.                                         v.Velocity = Vector3.new(0, -25.05, 0)
  7711.                                         local s = tonumber(10000)
  7712.                                         v.RotVelocity = Vector3.new(s, s, s)
  7713.                                     end
  7714.                                 end
  7715.                             end
  7716.                         end)
  7717.  
  7718.                         spawn(function()
  7719.                             while rs.Stepped:Wait() and c and c.Parent do
  7720.                                 for i, v in pairs(parts) do
  7721.                                     if v and v.Parent then
  7722.                                         v.CanCollide = false
  7723.                                     end
  7724.                                 end
  7725.                             end
  7726.                         end)
  7727.  
  7728.                         spawn(function()
  7729.                             local ctrlf = {
  7730.                                 ["w"] = false,
  7731.                                 ["a"] = false,
  7732.                                 ["s"] = false,
  7733.                                 ["d"] = false
  7734.                             }
  7735.                             mouse.KeyDown:Connect(function(key)
  7736.                                 key = key:lower()
  7737.                                 if ctrlf[key] ~= nil then
  7738.                                     ctrlf[key] = true
  7739.                                 end
  7740.                             end)
  7741.                             mouse.KeyUp:Connect(function(key)
  7742.                                 key = key:lower()
  7743.                                 if ctrlf[key] ~= nil then
  7744.                                     ctrlf[key] = false
  7745.                                 end
  7746.                             end)
  7747.                             while rs.RenderStepped:Wait() and c and c.Parent do
  7748.                                 if hrp and hrp.Parent then
  7749.                                     local flyspeed = tonumber(1)
  7750.                                     local fb = ((ctrlf["w"] and flyspeed) or 0) + ((ctrlf["s"] and -flyspeed) or 0)
  7751.                                     local lr = ((ctrlf["a"] and -flyspeed) or 0) + ((ctrlf["d"] and flyspeed) or 0)
  7752.                                     local camcf = ws.CurrentCamera.CFrame
  7753.                                     local caX, caY, caZ, ca1, ca2, ca3, ca4, ca5, ca6, ca7, ca8, ca9 = camcf:GetComponents()
  7754.                                     local flycf = hrp.CFrame
  7755.                                     flycf = CFrame.new(flycf.X, flycf.Y, flycf.Z, ca1, ca2, ca3, ca4, ca5, ca6, ca7, ca8, ca9)
  7756.                                     flycf += camcf.lookVector * fb
  7757.                                     flycf += camcf.rightVector * lr
  7758.                                     hrp.CFrame = flycf
  7759.                                 end
  7760.                             end
  7761.                         end)
  7762.  
  7763.                         library:SendNotification(5, "Loaded Invisible Fling Successfully")
  7764.                     end))
  7765.                 else
  7766.  
  7767.                 end
  7768.             end,
  7769.         })
  7770.  
  7771.         RageMisc:AddButton({
  7772.             text = "Melee God Mode",
  7773.             callback = function()
  7774.                 loadstring(game:HttpGet("https://raw.githubusercontent.com/Tobias020108Back/YBA-AUT/main/Criminality-Semi-Godmode.lua"))()
  7775.             end,
  7776.         })
  7777.  
  7778.         local TeleportationTab = library:AddTab"Teleport":AddColumn()
  7779.  
  7780.         local TeleportationSection = TeleportationTab:AddSection"Teleportation"
  7781.  
  7782.         local ClosestSection = TeleportationTab:AddSection"Closest"
  7783.  
  7784.         local PlayersSection = TeleportationTab:AddSection"Players"
  7785.  
  7786.         local CombatSection = TeleportationTab:AddSection"Combat"
  7787.  
  7788.         local StockSection = TeleportationTab:AddSection"Stock"
  7789.  
  7790.         local AutoFarmSection = TeleportationTab:AddSection"AutoFarm"
  7791.  
  7792.         local TeleportationModeSection = TeleportationTab:AddSection"Mode"
  7793.  
  7794.         TeleportationSection:AddList({
  7795.             flag = "Teleportation",
  7796.             values = {
  7797.                 "Tower",
  7798.                 "Illegal Pizza",
  7799.                 "?",
  7800.                 "Vibe-Check",
  7801.                 "Cafe-Locker",
  7802.                 "Hideout",
  7803.                 "Thrift Store",
  7804.                 "Gas Station",
  7805.                 "Factory",
  7806.                 "Warehouse",
  7807.                 "Subway",
  7808.                 "Junkyard"
  7809.             },
  7810.             max = 10,
  7811.             callback = function(Value)
  7812.                 library.flags.Teleportation = Value
  7813.             end
  7814.         })
  7815.  
  7816.         TeleportationSection:AddButton({
  7817.             text = "Teleport",
  7818.             callback = function()
  7819.                 if library and library.flags.Teleportation == "Tower" then
  7820.                     Teleport(Vector3.new(- 4507.15, 105.564, - 820.79))
  7821.                 elseif library and library.flags.Teleportation == "Illegal Pizza" then
  7822.                     Teleport(Vector3.new(- 4421.7, 5.19914, - 137.65))
  7823.                 elseif library and library.flags.Teleportation == "?" then
  7824.                     Teleport(Vector3.new(- 4287.86, - 94.1664, - 813.529))
  7825.                 elseif library and library.flags.Teleportation == "Vibe-Check" then
  7826.                     Teleport(Vector3.new(- 4776.74, - 201.265, - 935.866))
  7827.                 elseif library and library.flags.Teleportation == "Cafe-Locker" then
  7828.                     Teleport(Vector3.new(- 4670.06, 5.9992, - 257.101))
  7829.                 elseif library and library.flags.Teleportation == "Hideout" then
  7830.                     Teleport(Vector3.new(- 4696.15, 16.9688, - 948.164))
  7831.                 elseif library and library.flags.Teleportation == "Thrift Store" then
  7832.                     Teleport(Vector3.new(- 4660.08, 4.09864, - 152.484))
  7833.                 elseif library and library.flags.Teleportation == "Gas Station" then
  7834.                     Teleport(Vector3.new(- 4431.49, 4.02059, 193.073))
  7835.                 elseif library and library.flags.Teleportation == "Factory" then
  7836.                     Teleport(Vector3.new(- 4410.92, 5.59988, - 554.302))
  7837.                 elseif library and library.flags.Teleportation == "Warehouse" then
  7838.                     Teleport(Vector3.new(- 4628.37, 6.69952, - 562.563))
  7839.                 elseif library and library.flags.Teleportation == "Subway" then
  7840.                     Teleport(Vector3.new(- 4707.42, - 32.3007, - 699.182))
  7841.                 elseif library and library.flags.Teleportation == "Junkyard" then
  7842.                     Teleport(Vector3.new(- 3838.04, 3.89476, - 507.173))
  7843.                 end
  7844.             end,
  7845.         })
  7846.  
  7847.         TeleportationSection:AddButton({
  7848.             text = "Fix Air Stuck",
  7849.             callback = function()
  7850.                 game:GetService("ReplicatedStorage").Events.__DFfDD:FireServer("-r__r2")
  7851.             end,
  7852.         })
  7853.  
  7854.         ClosestSection:AddButton({
  7855.             text = "Register",
  7856.             callback = function()
  7857.                 Teleport(GetRegister(math.huge).Position)
  7858.             end,
  7859.         })
  7860.  
  7861.         ClosestSection:AddButton({
  7862.             text = "Safe",
  7863.             callback = function()
  7864.                 Teleport(GetSafe(math.huge, false).Position)
  7865.             end,
  7866.         })
  7867.  
  7868.         ClosestSection:AddButton({
  7869.             text = "Dealer",
  7870.             callback = function()
  7871.                 Teleport(GetDealer(math.huge, "Dealer").Position)
  7872.             end,
  7873.         })
  7874.  
  7875.         ClosestSection:AddButton({
  7876.             text = "Armory Dealer",
  7877.             callback = function()
  7878.                 Teleport(GetDealer(math.huge, "ArmoryDealer").Position)
  7879.             end,
  7880.         })
  7881.  
  7882.         ClosestSection:AddButton({
  7883.             text = "ATM",
  7884.             callback = function()
  7885.                 Teleport(GetATM(math.huge).Position)
  7886.             end,
  7887.         })
  7888.  
  7889.         ClosestSection:AddButton({
  7890.             text = "Scrap",
  7891.             callback = function()
  7892.                 Teleport(GetScrap(math.huge).Position)
  7893.             end,
  7894.         })
  7895.  
  7896.         ClosestSection:AddButton({
  7897.             text = "Fix Air Stuck",
  7898.             callback = function()
  7899.                 game:GetService("ReplicatedStorage").Events.__DFfDD:FireServer("-r__r2")
  7900.             end,
  7901.         })
  7902.  
  7903.         PlayersSection:AddBox({
  7904.             callback = function(Value)
  7905.                 PlayerList2 = Value
  7906.             end
  7907.         })
  7908.  
  7909.         PlayersSection:AddButton({
  7910.             text = "Teleport",
  7911.             callback = function()
  7912.                 Teleport(game:GetService("Players"):FindFirstChild(tostring(getPlayer(PlayerList2))).Character.HumanoidRootPart.Position)
  7913.             end,
  7914.         })
  7915.  
  7916.         PlayersSection:AddButton({
  7917.             text = "Fix Air Stuck",
  7918.             callback = function()
  7919.                 game:GetService("ReplicatedStorage").Events.__DFfDD:FireServer("-r__r2")
  7920.             end,
  7921.         })
  7922.  
  7923.         CombatSection:AddBox({
  7924.             callback = function(Value)
  7925.                 PlayerList3 = Value
  7926.             end
  7927.         })
  7928.  
  7929.         CombatSection:AddButton({
  7930.             text = "Hit",
  7931.             callback = function()
  7932.                 if Ping <= 100 then
  7933.                     if game:GetService("Players"):FindFirstChild(tostring(getPlayer(PlayerList3))).Character:FindFirstChildOfClass("ForceField") then
  7934.                         library:SendNotification(5, "Failed To Load, Force Field")
  7935.                     else
  7936.                         OldCFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  7937.                         local KillAuraValue = game:GetService("ReplicatedStorage").Events["XMHH.1"]:InvokeServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "43TRFWJ", "Normal", tick(), true)
  7938.                         wait(KillAuraTime)
  7939.                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players"):FindFirstChild(tostring(getPlayer(PlayerList3))).Character.HumanoidRootPart.CFrame + Vector3.new(0, 5, 0)
  7940.                         wait(0.15)
  7941.                         game:GetService("ReplicatedStorage").Events["XMHH2.1"]:FireServer("\240\159\154\168", tick(), game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool"), "2389ZFX33", KillAuraValue, false, game:GetService("Players").LocalPlayer.Character["Right Arm"], game:GetService("Players"):FindFirstChild(tostring(getPlayer(PlayerList3))).Character.HumanoidRootPart.Parent:FindFirstChild("Head"), game:GetService("Players"):FindFirstChild(tostring(getPlayer(PlayerList3))).Character.HumanoidRootPart.Parent, game:GetService("Players").LocalPlayer.Character["Right Arm"].Position, game:GetService("Players"):FindFirstChild(tostring(getPlayer(PlayerList3))).Character.HumanoidRootPart.Parent:FindFirstChild("Head").Position)
  7942.                         game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = OldCFrame
  7943.                     end
  7944.                 else
  7945.                     library:SendNotification(5, "Failed To Load, Ping Too High")
  7946.                 end
  7947.             end,
  7948.         })
  7949.  
  7950.         StockSection:AddList({
  7951.             flag = "Stock",
  7952.             values = (function()
  7953.                 local t = {}
  7954.                 for _, v in next, game:GetService("Workspace").Map.Shopz.Dealer.CurrentStocks:GetChildren() do
  7955.                     if v ~= Client then
  7956.                         table.insert(t, v.Name)
  7957.                     end
  7958.                 end
  7959.                 return t
  7960.             end)(),
  7961.             max = 10,
  7962.             callback = function(Value)
  7963.                 library.flags.Stock = Value
  7964.             end
  7965.         })
  7966.  
  7967.         StockSection:AddButton({
  7968.             text = "Teleport",
  7969.             callback = function()
  7970.                 Teleport(GetDealer(math.huge, "Dealer", tostring(library.flags.Stock)).Position)
  7971.             end,
  7972.         })
  7973.  
  7974.         AutoFarmSection:AddToggle({
  7975.             text = "Safe Auto Farm",
  7976.             callback = function(State)
  7977.                 SafeAutoFarm = State
  7978.                 if State then
  7979.                     library:AddConnection(runService.RenderStepped, "Safe Auto Farm", function()
  7980.                         if library and SafeAutoFarm and not SafeAutoFarmCoolDown and game:GetService("Players").LocalPlayer.Character.Humanoid.Health > 15 then
  7981.                             coroutine.resume(coroutine.create(function()
  7982.                                 coroutine.resume(coroutine.create(function()
  7983.                                     if library and library.flags.AutoFarmMode == "Crowbar" then
  7984.                                         wait(20)
  7985.                                         SafeAutoFarmCoolDown = false
  7986.                                     else
  7987.                                         wait(10)
  7988.                                         SafeAutoFarmCoolDown = false
  7989.                                     end
  7990.                                 end))
  7991.                                 SafeAutoFarmCoolDown = true
  7992.                                 if library and library.flags.AutoFarmMode == "Crowbar" then
  7993.                                     if game:GetService("Players").LocalPlayer.Character:FindFirstChild("Crowbar") or game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Crowbar") then
  7994.                                         game:GetService("Players").LocalPlayer.Character.Humanoid:UnequipTools()
  7995.                                         Teleport(GetSafe(math.huge, false).Position + Vector3.new(0, 5, 0))
  7996.                                         repeat wait() until GetSafe(15, false) ~= nil
  7997.                                         game:GetService("Players").LocalPlayer.Character.Humanoid:EquipTool(game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Crowbar"))
  7998.                                     else
  7999.                                         Teleport(GetDealer(math.huge, "Dealer").Position)
  8000.                                         wait(5)
  8001.                                         coroutine.resume(coroutine.create(function()
  8002.                                             game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Melees", "Crowbar", GetDealer(math.huge, "Dealer"))
  8003.                                         end))
  8004.                                     end
  8005.                                 else
  8006.                                     if game:GetService("Players").LocalPlayer.Character:FindFirstChild("Lockpick") or game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Lockpick") then
  8007.                                         game:GetService("Players").LocalPlayer.Character.Humanoid:UnequipTools()
  8008.                                         Teleport(GetSafe(math.huge, false).Position + Vector3.new(0, 5, 0))
  8009.                                         game:GetService("Players").LocalPlayer.Character.Humanoid:EquipTool(game:GetService("Players").LocalPlayer.Backpack:FindFirstChild("Lockpick"))
  8010.                                         repeat wait() until GetSafe(15, false) ~= nil
  8011.                                         repeat wait() until game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool"):FindFirstChild("Remote")
  8012.                                         local AutoLockPickValue = game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool").Remote:InvokeServer("S", GetSafe(15, false).Parent, "s")
  8013.                                         game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool").Remote:InvokeServer("D", GetSafe(15, false).Parent, "s", AutoLockPickValue)
  8014.                                         game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Tool").Remote:InvokeServer("C")
  8015.                                     else
  8016.                                         Teleport(GetDealer(math.huge, "Dealer").Position)
  8017.                                         wait(5)
  8018.                                         coroutine.resume(coroutine.create(function()
  8019.                                             for x = 1, 10 do
  8020.                                                 coroutine.resume(coroutine.create(function()
  8021.                                                     game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Misc", "Lockpick", GetDealer(math.huge, "Dealer"))
  8022.                                                 end))
  8023.                                             end
  8024.                                         end))
  8025.                                     end
  8026.                                 end
  8027.                             end))
  8028.                         end
  8029.                     end)
  8030.                 else
  8031.                     library.connections["Safe Auto Farm"]:Disconnect()
  8032.                 end
  8033.             end
  8034.         })
  8035.  
  8036.         AutoFarmSection:AddList({
  8037.             flag = "AutoFarmMode",
  8038.             values = {
  8039.                 "Crowbar",
  8040.                 "Lockpick",
  8041.             },
  8042.             callback = function(Value)
  8043.                 library.flags.AutoFarmMode = Value
  8044.             end
  8045.         })
  8046.  
  8047.         AutoFarmSection:AddToggle({
  8048.             text = "Scrap Auto Farm",
  8049.             callback = function(State)
  8050.                 ScrapAutoFarm = State
  8051.                 if State then
  8052.                     library:AddConnection(runService.RenderStepped, "Scrap Auto Farm", function()
  8053.                         if library and ScrapAutoFarm and not ScrapAutoFarmCoolDown and game:GetService("Players").LocalPlayer.Character.Humanoid.Health > 15 then
  8054.                             coroutine.resume(coroutine.create(function()
  8055.                                 coroutine.resume(coroutine.create(function()
  8056.                                     wait(15)
  8057.                                     ScrapAutoFarmCoolDown = false
  8058.                                 end))
  8059.                                 ScrapAutoFarmCoolDown = true
  8060.                                 if game:GetService("Workspace").Filter.SpawnedPiles:FindFirstChildOfClass("Model") then
  8061.                                     Teleport(GetScrap(math.huge).Position)
  8062.                                     wait(5)
  8063.                                     Teleport(GetDealer(math.huge, "Dealer").Position)
  8064.                                     wait(5)
  8065.                                     for i, v in ipairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
  8066.                                         if v:IsA("Tool") then
  8067.                                             coroutine.resume(coroutine.create(function()
  8068.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Melees", v.Name, GetDealer(math.huge, "Dealer"), "Sell")
  8069.                                             end))
  8070.                                             coroutine.resume(coroutine.create(function()
  8071.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Guns", v.Name, GetDealer(math.huge, "Dealer"), "Sell")
  8072.                                             end))
  8073.                                             coroutine.resume(coroutine.create(function()
  8074.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Throwables", v.Name, GetDealer(math.huge, "Dealer"), "Sell")
  8075.                                             end))
  8076.                                             coroutine.resume(coroutine.create(function()
  8077.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Misc", v.Name, GetDealer(math.huge, "Dealer"), "Sell")
  8078.                                             end))
  8079.                                         end
  8080.                                     end
  8081.                                     for i, v in ipairs(game:GetService("Players").LocalPlayer.Backpack:GetChildren()) do
  8082.                                         if v:IsA("Tool") then
  8083.                                             coroutine.resume(coroutine.create(function()
  8084.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Melees", v.Name, GetDealer(math.huge, "Dealer"), "Sell")
  8085.                                             end))
  8086.                                             coroutine.resume(coroutine.create(function()
  8087.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Guns", v.Name, GetDealer(math.huge, "Dealer"), "Sell")
  8088.                                             end))
  8089.                                             coroutine.resume(coroutine.create(function()
  8090.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Throwables", v.Name, GetDealer(math.huge, "Dealer"), "Sell")
  8091.                                             end))
  8092.                                             coroutine.resume(coroutine.create(function()
  8093.                                                 game:GetService("ReplicatedStorage").Events.SSHPRMTE1:InvokeServer("IllegalStore", "Misc", v.Name, GetDealer(math.huge, "Dealer"), "Sell")
  8094.                                             end))
  8095.                                         end
  8096.                                     end
  8097.                                 else
  8098.                                     Teleport(Vector3.new(-4714.2, 272.234, 53.5772))
  8099.                                 end
  8100.                             end))
  8101.                         end
  8102.                     end)
  8103.                 else
  8104.                     library.connections["Scrap Auto Farm"]:Disconnect()
  8105.                 end
  8106.             end
  8107.         })
  8108.  
  8109.         TeleportationModeSection:AddList({
  8110.             flag = "TeleportationMode",
  8111.             values = {
  8112.                 "Normal",
  8113.                 "Instantly",
  8114.             },
  8115.             callback = function(Value)
  8116.                 library.flags.TeleportationMode = Value
  8117.             end
  8118.         })
  8119.  
  8120.     elseif GameTitle == "Combat Warriors" then
  8121.  
  8122.         --[[ Anti Cheat Bypass ]]
  8123.  
  8124.         local Remotes = {}
  8125.         local NetworkEnvironment = getmenv(rawget(rawget(require(game.ReplicatedStorage.Framework.Nevermore), '_lookupTable'), 'Network'))
  8126.         local EventsTable = debug.getupvalue(NetworkEnvironment.GetEventHandler, 1)
  8127.         local FunctionsTable = debug.getupvalue(NetworkEnvironment.GetFunctionHandler, 1)
  8128.  
  8129.         local function AddRemotes(StorageTable)
  8130.             for Name, Info in pairs(StorageTable) do
  8131.                 if rawget(Info, 'Remote') then
  8132.                     Remotes[rawget(Info, 'Remote')] = Name
  8133.                 end
  8134.             end
  8135.         end
  8136.         AddRemotes(EventsTable)
  8137.         AddRemotes(FunctionsTable)
  8138.  
  8139.         local Index
  8140.         Index = hookmetamethod(game, '__index', function(Self, Key)
  8141.             if checkcaller() and (Key == 'Name' or Key == 'name') and Remotes[Self] then
  8142.                 return Remotes[Self]
  8143.             end
  8144.  
  8145.             return Index(Self, Key)
  8146.         end)
  8147.  
  8148.         coroutine.resume(coroutine.create(function()
  8149.  
  8150.             repeat
  8151.                 wait()
  8152.             until library.flags[GameTitle .. " Walk Speed"] ~= nil and library.flags[GameTitle .. " Jump Power"] ~= nil
  8153.  
  8154.             library:AddConnection(runService.RenderStepped, "Anti Cheat Bypass", function()
  8155.                 if game:GetService("Players").LocalPlayer.Character then
  8156.                     for i, v in pairs(getconnections(game:GetService("Players").LocalPlayer.Character.Humanoid:GetPropertyChangedSignal("WalkSpeed"))) do
  8157.                         v:Disable()
  8158.                     end
  8159.                 end
  8160.             end)
  8161.  
  8162.         end))
  8163.  
  8164.         --[[ Anti Cheat Bypass ]]
  8165.  
  8166.         --[[ Values ]]
  8167.  
  8168.         FastRespawnCoolDown = false
  8169.  
  8170.         --[[ Values ]]
  8171.  
  8172.         --[[ Functions ]]
  8173.  
  8174.         function getEvent(name)
  8175.             for i, v in ipairs(game:GetService("ReplicatedStorage").Communication.Events:GetChildren()) do
  8176.                 if v.Name == name then
  8177.                     return v
  8178.                 end
  8179.             end
  8180.         end
  8181.  
  8182.         function getFunction(name)
  8183.             for i, v in ipairs(game:GetService("ReplicatedStorage").Communication.Functions:GetChildren()) do
  8184.                 if v.Name == name then
  8185.                     return v
  8186.                 end
  8187.             end
  8188.         end
  8189.  
  8190.         --[[ Functions ]]
  8191.  
  8192.         --[[ Connects ]]
  8193.  
  8194.         game:GetService("Lighting").ChildAdded:Connect(function(Item)
  8195.             if library and library.flags[GameTitle .. " Auto Respawn"] then
  8196.                 if Item.Name == "Blur" and not FastRespawnCoolDown then
  8197.                     FastRespawnCoolDown = true
  8198.                     wait(0.25)
  8199.                     getEvent("StartFastRespawn"):FireServer()
  8200.                     wait(library.flags[GameTitle .. " Auto Respawn Delay"])
  8201.                     getFunction("CompleteFastRespawn"):FireServer("74")
  8202.                     wait(0.25)
  8203.                     getFunction("SpawnCharacter"):FireServer("51")
  8204.                     wait(0.5)
  8205.                     FastRespawnCoolDown = false
  8206.                 end
  8207.             end
  8208.         end)
  8209.  
  8210.         library:AddConnection(inputService.InputBegan, function(Input)
  8211.             if library and library.flags[GameTitle .. " Infinite Jump"] and not inputService:GetFocusedTextBox() then
  8212.                 if Input.KeyCode == Enum.KeyCode.Space then
  8213.                     if library then
  8214.                         local Char = Players[Client].Character
  8215.                         if Char then
  8216.                             Char.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  8217.                         end
  8218.                     end
  8219.                 end
  8220.             end
  8221.         end)
  8222.  
  8223.         --[[ Connects ]]
  8224.  
  8225.         local LegitTab = library:AddTab"Legit":AddColumn()
  8226.  
  8227.         library.options["Aimbot Mode"]:AddValue"Silent"
  8228.  
  8229.         local LegitMisc = LegitTab:AddSection"Misc"
  8230.  
  8231.         LegitMisc:AddToggle({
  8232.             text = "Auto Respawn"
  8233.         }):AddSlider({
  8234.             text = "Auto Respawn Delay",
  8235.             min = 0,
  8236.             value = 0,
  8237.             max = 1,
  8238.             float = 0.1,
  8239.             suffix = "s"
  8240.         })
  8241.  
  8242.         local RageTab = library:AddTab"Rage":AddColumn()
  8243.  
  8244.         local RageMovement = RageTab:AddSection"Movement"
  8245.  
  8246.         RageMovement:AddToggle({
  8247.             text = "Walk Speed",
  8248.             callback = function(State)
  8249.                 if State then
  8250.                     library:AddConnection(runService.RenderStepped, "Walk Speed", function()
  8251.                         if library and library.flags[GameTitle .. " Walk Speed"] then
  8252.                             local Char = Players[Client].Character
  8253.                             Char = Char and FFCoC(Char, "Humanoid")
  8254.                             if Char then
  8255.                                 Char.WalkSpeed = library.flags[GameTitle .. " Walk Speed Amount"]
  8256.                             end
  8257.                         end
  8258.                     end)
  8259.                 else
  8260.                     library.connections["Walk Speed"]:Disconnect()
  8261.                     local Char = Players[Client].Character
  8262.                     Char = Char and FFCoC(Char, "Humanoid")
  8263.                     if Char then
  8264.                         Char.WalkSpeed = 16
  8265.                     end
  8266.                 end
  8267.             end
  8268.         }):AddSlider({
  8269.             text = "Walk Speed Amount",
  8270.             textpos = 2,
  8271.             min = 16,
  8272.             value = 16,
  8273.             max = 36
  8274.         })
  8275.  
  8276.         RageMovement:AddToggle({
  8277.             text = "Jump Power",
  8278.             callback = function(State)
  8279.                 if State then
  8280.                     library:AddConnection(runService.RenderStepped, "Jump Power", function()
  8281.                         if library and library.flags[GameTitle .. " Jump Power"] then
  8282.                             local Char = Players[Client].Character
  8283.                             Char = Char and FFCoC(Char, "Humanoid")
  8284.                             if Char then
  8285.                                 Char.JumpPower = library.flags[GameTitle .. " Jump Power Amount"]
  8286.                             end
  8287.                         end
  8288.                     end)
  8289.                 else
  8290.                     library.connections["Jump Power"]:Disconnect()
  8291.                     local Char = Players[Client].Character
  8292.                     Char = Char and FFCoC(Char, "Humanoid")
  8293.                     if Char then
  8294.                         Char.JumpPower = 50
  8295.                     end
  8296.                 end
  8297.             end
  8298.         }):AddSlider({
  8299.             text = "Jump Power Amount",
  8300.             min = 50,
  8301.             value = 50,
  8302.             max = 100
  8303.         })
  8304.  
  8305.         RageMovement:AddToggle({
  8306.             text = "Spin",
  8307.             callback = function(State)
  8308.                 if State then
  8309.                     library:AddConnection(runService.RenderStepped, "Spin", function()
  8310.                         if library and library.flags[GameTitle .. " Spin"] then
  8311.                             local Char = Players[Client].Character
  8312.                             Char = Char and FFCoC(Char, "Humanoid")
  8313.                             if Char and Char.Parent.HumanoidRootPart then
  8314.                                 if not Char.Parent.HumanoidRootPart:FindFirstChild("Spinning") then
  8315.                                     for i, v in pairs(Char.Parent.HumanoidRootPart:GetChildren()) do
  8316.                                         if v.Name == "Spinning" then
  8317.                                             v.Parent = nil
  8318.                                         end
  8319.                                     end
  8320.                                     local Spin = Instance.new("BodyAngularVelocity")
  8321.                                     Spin.Name = "Spinning"
  8322.                                     Spin.Parent = Char.Parent.HumanoidRootPart
  8323.                                     Spin.MaxTorque = Vector3.new(0, math.huge, 0)
  8324.                                 end
  8325.                                 Char.Parent.HumanoidRootPart.Spinning.AngularVelocity = Vector3.new(0, library.flags[GameTitle .. " Spin Amount"], 0)
  8326.                             end
  8327.                         end
  8328.                     end)
  8329.                 else
  8330.                     library.connections["Spin"]:Disconnect()
  8331.                     local Char = Players[Client].Character
  8332.                     Char = Char and FFCoC(Char, "Humanoid")
  8333.                     if Char then
  8334.                         for i, v in pairs(Char.Parent.HumanoidRootPart:GetChildren()) do
  8335.                             if v.Name == "Spinning" then
  8336.                                 v.Parent = nil
  8337.                             end
  8338.                         end
  8339.                     end
  8340.                 end
  8341.             end
  8342.         }):AddSlider({
  8343.             text = "Spin Amount",
  8344.             min = 20,
  8345.             value = 20,
  8346.             max = 50,
  8347.             callback = function(Value)
  8348.                 local Character = Players[Client].Character
  8349.                 if Character then
  8350.                     for i, v in pairs(Character.HumanoidRootPart:GetChildren()) do
  8351.                         if v.Name == "Spinning" then
  8352.                             v.AngularVelocity = Vector3.new(0, library.flags[GameTitle .. " Spin Amount"], 0)
  8353.                         end
  8354.                     end
  8355.                 end
  8356.             end
  8357.         })
  8358.  
  8359.         RageMovement:AddToggle({
  8360.             text = "Infinite Stamina",
  8361.             callback = function(State)
  8362.                 if State then
  8363.                     for i,v in pairs(getgc(true)) do
  8364.                         if typeof(v) == 'table' and rawget(v, '_setStamina') then
  8365.                             v._setStamina = function(a, b)
  8366.                                 a.stamina = math.huge
  8367.                                 a._staminaChangedSignal:Fire(math.huge)
  8368.                             end
  8369.                         end
  8370.                     end
  8371.                 end
  8372.             end
  8373.         })
  8374.  
  8375.         RageMovement:AddToggle({
  8376.             text = "Infinite Jump",
  8377.         })
  8378.  
  8379.         RageMovement:AddToggle({
  8380.             text = "No Clip",
  8381.         }):AddBind({
  8382.             mode = "hold",
  8383.             callback = function(Ended, Step)
  8384.                 if library and library.flags[GameTitle .. " No Clip"] then
  8385.                     local Char = Players[Client].Character
  8386.                     Char = Char and FFCoC(Char, "Humanoid")
  8387.                     if Char then
  8388.                         for _, child in pairs(Char.Parent:GetDescendants()) do
  8389.                             if child:IsA("BasePart") and child.CanCollide == true then
  8390.                                 child.CanCollide = false
  8391.                             end
  8392.                         end
  8393.                     end
  8394.                 end
  8395.             end
  8396.         })
  8397.  
  8398.         RageMovement:AddToggle({
  8399.             text = "Fly",
  8400.             callback = function(State)
  8401.                 if State then
  8402.                     coroutine.resume(coroutine.create(function()
  8403.                         library:SendNotification(5, "Loading Fly, Please Wait")
  8404.  
  8405.                         game:GetService('RunService').Heartbeat:Connect(function()
  8406.                             game.Players.LocalPlayer.Character.Humanoid.RagdollRemoteEvent:FireServer(true)
  8407.                         end)
  8408.  
  8409.                         for i,v in pairs(game:GetService('Workspace'):GetChildren()) do
  8410.                             if v:IsA('Camera') then
  8411.                                 v:Destroy()
  8412.                             end
  8413.                         end
  8414.  
  8415.                         local newcam = Instance.new('Camera',game.Workspace)
  8416.                         newcam.Name = 'Camera'
  8417.                         newcam.CameraType = 'Custom'
  8418.                         newcam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  8419.                         newcam.HeadLocked = true
  8420.                         newcam.HeadScale = 1
  8421.  
  8422.                         wait(2)
  8423.  
  8424.                         local Flying = true
  8425.                         local Flymode = "Camera"
  8426.                         local MaxSpeed = 2 -- speed
  8427.                         local Down = {['w'] = false, ['a'] = false, ['s'] = false, ['d'] = false, ['q'] = false, ['e'] = false}
  8428.                         local KD = game.Players.LocalPlayer:GetMouse().KeyDown
  8429.                         local KU = game.Players.LocalPlayer:GetMouse().KeyUp
  8430.                         KD:Connect(function(K)
  8431.                             if K == "w" or K == "a" or K == "s" or K == "d" or K == "q" or K == "e" then
  8432.                                 Down[K] = true
  8433.                                 print(Down[K])
  8434.                             end
  8435.                         end)
  8436.  
  8437.                         KU:Connect(function(K)
  8438.                             if K == "w" or K == "a" or K == "s" or K == "d" or K == "q" or K == "e" then
  8439.                                 Down[K] = false
  8440.                             elseif K == "x" then
  8441.                                 Flying = not Flying
  8442.                                 EnableFly()
  8443.                             end
  8444.                         end)
  8445.  
  8446.                         if workspace:FindFirstChild("CenterOfGravitationalForce") then
  8447.                             Flying = false
  8448.                             workspace:FindFirstChild("CenterOfGravitationalForce"):Destroy()
  8449.                         end
  8450.  
  8451.                         local Flyanimation = Instance.new('Animation', game.Workspace)
  8452.                         Flyanimation.AnimationId = 'rbxassetid://3541044388'
  8453.                         local Idleanimation = Instance.new('Animation', game.Workspace)
  8454.                         Idleanimation.AnimationId = 'rbxassetid://3541114300'
  8455.                         local HeroIdle = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Idleanimation)
  8456.                         local HeroFly = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Flyanimation)
  8457.  
  8458.                         local Inc = 0.1
  8459.  
  8460.                         library:SendNotification(5, "Loaded Fly Successfully")
  8461.  
  8462.                         function EnableFly()
  8463.                             local Speed = 0.5
  8464.                             local Part = Instance.new("Part")
  8465.                             Part.Parent = workspace
  8466.                             Part.Size = Vector3.new(5,5,5)
  8467.                             Part.Transparency = 1
  8468.                             Part.CanCollide = false
  8469.                             Part.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  8470.                             Part.Anchored = true
  8471.                             Part.Name = "CenterOfGravitationalForce"
  8472.  
  8473.                             local Att1 = Instance.new("Attachment")
  8474.                             Att1.Name = "Att1"
  8475.                             Att1.Visible = false
  8476.                             Att1.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  8477.  
  8478.                             local Att2 = Instance.new("Attachment")
  8479.                             Att2.Name = "Att2"
  8480.                             Att2.Visible = false
  8481.                             Att2.Parent = Part
  8482.  
  8483.                             local AlignPos = Instance.new("AlignPosition")
  8484.                             local AlignGyro = Instance.new("AlignOrientation")
  8485.  
  8486.                             AlignPos.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  8487.                             AlignPos.Attachment0 = Att1
  8488.                             AlignPos.MaxForce = math.huge
  8489.                             AlignPos.MaxVelocity = math.huge
  8490.                             AlignPos.Mode = Enum.PositionAlignmentMode.TwoAttachment
  8491.                             AlignPos.Attachment1 = Att2
  8492.                             AlignPos.RigidityEnabled = false
  8493.  
  8494.                             AlignGyro.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  8495.                             AlignGyro.Mode = Enum.OrientationAlignmentMode.OneAttachment
  8496.                             AlignGyro.CFrame = workspace.CurrentCamera.CFrame
  8497.                             AlignGyro.MaxTorque = math.huge
  8498.                             AlignGyro.Attachment0 = Att1
  8499.                             AlignGyro.RigidityEnabled = false
  8500.  
  8501.                             repeat wait()
  8502.                                 game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  8503.                                 if Down["w"] then
  8504.                                     HeroFly:Play()
  8505.                                     HeroIdle:Stop()
  8506.                                     Part.CFrame = Part.CFrame + workspace.CurrentCamera.CFrame.lookVector * Speed
  8507.                                     Speed = Speed + Inc
  8508.                                 end
  8509.                                 if Down["s"] then
  8510.                                     HeroFly:Play()
  8511.                                     HeroIdle:Stop()
  8512.                                     Part.CFrame = Part.CFrame - workspace.CurrentCamera.CFrame.lookVector * Speed
  8513.                                     Speed = Speed + Inc
  8514.                                 end
  8515.                                 if Down["q"] then
  8516.                                     Part.CFrame = Part.CFrame * CFrame.new(0, Speed, 0)
  8517.                                 end
  8518.                                 if Down["e"] then
  8519.                                     Part.CFrame = Part.CFrame * CFrame.new(0, -Speed, 0)
  8520.                                 end
  8521.                                 if Speed > MaxSpeed then
  8522.                                     Speed = MaxSpeed
  8523.                                 end
  8524.                                 if not Down["w"] and not Down["s"] then
  8525.                                     HeroFly:Stop()
  8526.                                     HeroIdle:Play()
  8527.                                 end
  8528.                                 if Down["w"] then
  8529.                                     AlignGyro.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(-math.rad(Speed*4), 0 ,0)
  8530.                                 elseif Down["s"] then
  8531.                                     AlignGyro.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(math.rad(Speed*4), 0 ,0)
  8532.                                 elseif Down["q"] then
  8533.                                     AlignGyro.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(math.rad(Speed*7), 0 ,0)
  8534.                                 elseif Down["e"] then
  8535.                                     AlignGyro.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(-math.rad(Speed*7), 0 ,0)
  8536.                                 elseif Down["a"] then
  8537.                                     AlignGyro.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(0, math.rad(Speed*50) ,0)
  8538.                                 elseif Down["d"] then
  8539.                                     AlignGyro.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(0, -math.rad(Speed*50) ,0)
  8540.                                 else
  8541.                                     AlignGyro.CFrame = workspace.CurrentCamera.CFrame
  8542.                                 end
  8543.                             until Flying == false
  8544.                             game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  8545.                             AlignGyro:Destroy()
  8546.                             AlignPos:Destroy()
  8547.                             Part:Destroy()
  8548.                             HeroIdle:Stop()
  8549.                             HeroFly:Stop()
  8550.                         end
  8551.                         EnableFly()
  8552.                     end))
  8553.                 else
  8554.  
  8555.                 end
  8556.             end
  8557.         })
  8558.  
  8559.         local RageMisc = RageTab:AddSection"Misc"
  8560.  
  8561.         local MT = getrawmetatable(game)
  8562.         setreadonly(MT, false)
  8563.         local NameCall = MT.__namecall
  8564.         MT.__namecall = newcclosure(function(self, ...)
  8565.             local Method = getnamecallmethod()
  8566.             local Args = {
  8567.                 ...
  8568.             }
  8569.             if Method == "FireServer" and tostring(self) == "StartFallDamage" or tostring(self) == "TakeFallDamage" then
  8570.                 if library and library.flags[GameTitle .. " Disable Fall Damage"] then
  8571.                     return wait(9e9)
  8572.                 end
  8573.             end
  8574.             if Method == "FireServer" and tostring(self) == "RagdollRemoteEvent" then
  8575.                 if library and library.flags[GameTitle .. " Disable Ragdoll"] then
  8576.                     return wait(9e9)
  8577.                 end
  8578.             end
  8579.             return NameCall(self, ...)
  8580.         end)
  8581.  
  8582.         RageMisc:AddToggle({
  8583.             text = "Disable Fall Damage",
  8584.         })
  8585.  
  8586.         RageMisc:AddToggle({
  8587.             text = "Disable Ragdoll",
  8588.         })
  8589.  
  8590.     elseif GameTitle == "Randomizer" then
  8591.  
  8592.         --[[ Anti Cheat Bypass ]]
  8593.  
  8594.         --[[ Anti Cheat Bypass ]]
  8595.  
  8596.         --[[ Silent Aim ]]
  8597.  
  8598.         coroutine.resume(coroutine.create(function()
  8599.  
  8600.             repeat
  8601.                 wait()
  8602.             until game:GetService("Players").LocalPlayer.Character and library.flags["Silent FieldOfView"] ~= nil and library.flags["Silent HitChance"] ~= nil and library.flags["Silent TargetPart"] ~= nil
  8603.  
  8604.             local Camera = workspace.CurrentCamera
  8605.             local Players = game:GetService("Players")
  8606.             local RunService = game:GetService("RunService")
  8607.             local GuiService = game:GetService("GuiService")
  8608.             local UserInputService = game:GetService("UserInputService")
  8609.             local HttpService = game:GetService("HttpService")
  8610.  
  8611.             local LocalPlayer = Players.LocalPlayer
  8612.             local Mouse = LocalPlayer:GetMouse()
  8613.  
  8614.             local GetChildren = game.GetChildren
  8615.             local GetPlayers = Players.GetPlayers
  8616.             local WorldToScreen = Camera.WorldToScreenPoint
  8617.             local WorldToViewportPoint = Camera.WorldToViewportPoint
  8618.             local GetPartsObscuringTarget = Camera.GetPartsObscuringTarget
  8619.             local FindFirstChild = game.FindFirstChild
  8620.             local RenderStepped = RunService.RenderStepped
  8621.             local GuiInset = GuiService.GetGuiInset
  8622.             local GetMouseLocation = UserInputService.GetMouseLocation
  8623.  
  8624.             local resume = coroutine.resume
  8625.             local create = coroutine.create
  8626.  
  8627.             local ValidTargetParts = {
  8628.                 "Head",
  8629.                 "Torso"
  8630.             }
  8631.             local PredictionAmount = 0.165
  8632.  
  8633.             local ExpectedArguments = {
  8634.                 FindPartOnRayWithIgnoreList = {
  8635.                     ArgCountRequired = 3,
  8636.                     Args = {
  8637.                         "Instance", "Ray", "table", "boolean", "boolean"
  8638.                     }
  8639.                 },
  8640.             }
  8641.  
  8642.             function CalculateChance(Percentage)
  8643.                 -- // Floor the percentage
  8644.                 Percentage = math.floor(Percentage)
  8645.  
  8646.                 -- // Get the chance
  8647.                 local chance = math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100) / 100
  8648.  
  8649.                 -- // Return
  8650.                 return chance <= Percentage / 100
  8651.             end
  8652.  
  8653.             local function getPositionOnScreen(Vector)
  8654.                 local Vec3, OnScreen = WorldToScreen(Camera, Vector)
  8655.                 return Vector2.new(Vec3.X, Vec3.Y), OnScreen
  8656.             end
  8657.  
  8658.             local function ValidateArguments(Args, RayMethod)
  8659.                 local Matches = 0
  8660.                 if # Args < RayMethod.ArgCountRequired then
  8661.                     return false
  8662.                 end
  8663.                 for Pos, Argument in next, Args do
  8664.                     if typeof(Argument) == RayMethod.Args[Pos] then
  8665.                         Matches = Matches + 1
  8666.                     end
  8667.                 end
  8668.                 return Matches >= RayMethod.ArgCountRequired
  8669.             end
  8670.  
  8671.             local function getDirection(Origin, Position)
  8672.                 return (Position - Origin).Unit * 1000
  8673.             end
  8674.  
  8675.             local function getMousePosition()
  8676.                 return GetMouseLocation(UserInputService)
  8677.             end
  8678.  
  8679.             local function IsPlayerVisible(Player)
  8680.                 local PlayerCharacter = Player.Character
  8681.                 local LocalPlayerCharacter = LocalPlayer.Character
  8682.  
  8683.                 if not (PlayerCharacter or LocalPlayerCharacter) then
  8684.                     return
  8685.                 end
  8686.  
  8687.                 local PlayerRoot = FindFirstChild(PlayerCharacter, library.flags["Silent TargetPart"]) or FindFirstChild(PlayerCharacter, "HumanoidRootPart")
  8688.  
  8689.                 if not PlayerRoot then
  8690.                     return
  8691.                 end
  8692.  
  8693.                 local CastPoints, IgnoreList = {
  8694.                     PlayerRoot.Position,
  8695.                     LocalPlayerCharacter,
  8696.                     PlayerCharacter
  8697.                 }, {
  8698.                     LocalPlayerCharacter,
  8699.                     PlayerCharacter
  8700.                 }
  8701.                 local ObscuringObjects = # GetPartsObscuringTarget(Camera, CastPoints, IgnoreList)
  8702.  
  8703.                 return ((ObscuringObjects == 0 and true) or (ObscuringObjects > 0 and false))
  8704.             end
  8705.  
  8706.             local function getClosestPlayer()
  8707.                 if not library.flags["Silent TargetPart"] then
  8708.                     return
  8709.                 end
  8710.                 local Closest
  8711.                 local DistanceToMouse
  8712.                 for _, Player in next, GetPlayers(Players) do
  8713.                     if Player == LocalPlayer then
  8714.                         continue
  8715.                     end
  8716.  
  8717.                     local Character = Player.Character
  8718.                     if not Character then
  8719.                         continue
  8720.                     end
  8721.  
  8722.                     local HumanoidRootPart = FindFirstChild(Character, "HumanoidRootPart")
  8723.                     local Humanoid = FindFirstChild(Character, "Humanoid")
  8724.                     if not HumanoidRootPart or not Humanoid or Humanoid and Humanoid.Health <= 0 then
  8725.                         continue
  8726.                     end
  8727.  
  8728.                     local ScreenPosition, OnScreen = getPositionOnScreen(HumanoidRootPart.Position)
  8729.                     if not OnScreen then
  8730.                         continue
  8731.                     end
  8732.  
  8733.                     local Distance = (getMousePosition() - ScreenPosition).Magnitude
  8734.                     if Distance <= (DistanceToMouse or library.flags["Silent FieldOfView"] or 2000) then
  8735.                         Closest = ((library.flags["Silent TargetPart"] == "Random" and Character[ValidTargetParts[math.random(1, # ValidTargetParts)]]) or Character[library.flags["Silent TargetPart"]])
  8736.                         DistanceToMouse = Distance
  8737.                     end
  8738.                 end
  8739.                 return Closest
  8740.             end
  8741.  
  8742.             local oldNamecall
  8743.             oldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
  8744.                 local Method = getnamecallmethod()
  8745.                 local Arguments = {
  8746.                     ...
  8747.                 }
  8748.  
  8749.                 local chance = CalculateChance(library.flags["Silent HitChance"])
  8750.                 if library and library.flags["Aimbot"] and library.flags["Aimbot Mode"] == "Silent" and Arguments[1] == workspace and not checkcaller() and chance == true then
  8751.                     if Method == "FindPartOnRayWithIgnoreList" then
  8752.                         if ValidateArguments(Arguments, ExpectedArguments.FindPartOnRayWithIgnoreList) then
  8753.                             local A_Ray = Arguments[2]
  8754.  
  8755.                             local HitPart = getClosestPlayer()
  8756.                             if HitPart then
  8757.                                 local Origin = A_Ray.Origin
  8758.                                 local Direction = getDirection(Origin, HitPart.Position)
  8759.                                 Arguments[2] = Ray.new(Origin, Direction)
  8760.  
  8761.                                 return oldNamecall(unpack(Arguments))
  8762.                             end
  8763.                         end
  8764.                     end
  8765.                 end
  8766.                 return oldNamecall(...)
  8767.             end))
  8768.  
  8769.         end))
  8770.  
  8771.         --[[ Silent Aim ]]
  8772.  
  8773.         --[[ Functions ]]
  8774.  
  8775.         function GetGunScript()
  8776.             for i, v in pairs(game:GetService("Players").LocalPlayer.Character:GetDescendants()) do
  8777.                 if v.Name == "GunScript_Local" then
  8778.                     return v
  8779.                 end
  8780.             end
  8781.         end
  8782.  
  8783.         local aux = loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/Upbolt/Hydroxide/revision/ohaux.lua"))()
  8784.  
  8785.         function GunModules()
  8786.             if library and library.flags[GameTitle .. " Infinite Ammo"] then
  8787.                 coroutine.resume(coroutine.create(function()
  8788.                     local scriptPath = GetGunScript()
  8789.                     local closureName = "Reload"
  8790.                     local upvalueIndex = 6
  8791.                     local closureConstants = {
  8792.                         [1] = "LimitedAmmoEnabled",
  8793.                         [2] = "AmmoPerMag",
  8794.                         [3] = "IsPlaying",
  8795.                         [4] = "Stop",
  8796.                         [5] = "TweenInfo",
  8797.                         [6] = "new"
  8798.                     }
  8799.                     local closure = aux.searchClosure(scriptPath, closureName, upvalueIndex, closureConstants)
  8800.                     local value = math.huge
  8801.                     debug.setupvalue(closure, upvalueIndex, value)
  8802.                 end))
  8803.             end
  8804.             if library and not library.flags[GameTitle .. " Infinite Ammo"] then
  8805.                 coroutine.resume(coroutine.create(function()
  8806.                     local scriptPath = GetGunScript()
  8807.                     local closureName = "Reload"
  8808.                     local upvalueIndex = require(game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Tool").Setting).AmmoPerMag
  8809.                     local closureConstants = {
  8810.                         [1] = "LimitedAmmoEnabled",
  8811.                         [2] = "AmmoPerMag",
  8812.                         [3] = "IsPlaying",
  8813.                         [4] = "Stop",
  8814.                         [5] = "TweenInfo",
  8815.                         [6] = "new"
  8816.                     }
  8817.                     local closure = aux.searchClosure(scriptPath, closureName, upvalueIndex, closureConstants)
  8818.                     local value = math.huge
  8819.                     debug.setupvalue(closure, upvalueIndex, value)
  8820.                 end))
  8821.             end
  8822.         end
  8823.  
  8824.         function GetClosestHumanoidRootPart(currentMagnitude)
  8825.             local closestCurrent = nil
  8826.             for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  8827.                 if v ~= game:GetService("Players").LocalPlayer then
  8828.                     if v.Character ~= nil then
  8829.                         if v.Character.Humanoid.Health ~= 0 then
  8830.                             if (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude < currentMagnitude then
  8831.                                 currentMagnitude = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude
  8832.                                 closestCurrent = v.Character.HumanoidRootPart
  8833.                             end
  8834.                         end
  8835.                     end
  8836.                 end
  8837.             end
  8838.             return closestCurrent
  8839.         end
  8840.  
  8841.         --[[ Connects ]]
  8842.  
  8843.         game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(Character)
  8844.             Character.ChildAdded:Connect(function(Object)
  8845.                 if library and Object:IsA("Tool") then
  8846.                     GunModules()
  8847.                 end
  8848.             end)
  8849.         end)
  8850.  
  8851.         if game:GetService("Players").LocalPlayer.Character ~= nil then
  8852.             game:GetService("Players").LocalPlayer.Character.ChildAdded:Connect(function(Object)
  8853.                 if library and Object:IsA("Tool") then
  8854.                     GunModules()
  8855.                 end
  8856.             end)
  8857.         end
  8858.  
  8859.         --[[ Connects ]]
  8860.  
  8861.         --[[ Functions ]]
  8862.  
  8863.         local LegitTab = library:AddTab"Legit":AddColumn()
  8864.  
  8865.         local LegitGunModules = LegitTab:AddSection"Gun Modules"
  8866.  
  8867.         library.options["Aimbot Mode"]:AddValue"Silent"
  8868.  
  8869.         LegitGunModules:AddToggle({
  8870.             text = "Infinite Ammo",
  8871.             callback = function(State)
  8872.                 if State then
  8873.                     GunModules()
  8874.                 end
  8875.             end
  8876.         })
  8877.  
  8878.         local LegitMisc = LegitTab:AddSection"Misc"
  8879.  
  8880.         LegitGunModules:AddToggle({
  8881.             text = "Infinite Ammo",
  8882.             callback = function(State)
  8883.                 if State then
  8884.                     GunModules()
  8885.                 end
  8886.             end
  8887.         })
  8888.     end
  8889. end)
  8890.  
  8891. library.flagprefix = nil
  8892.  
  8893. if VisualsTab.canInit then
  8894.     AddTracker(PlayerServ)
  8895. end
  8896.  
  8897. --Always running
  8898. library:AddConnection(runService.RenderStepped, function()
  8899.     local MX, MY = Mouse.X, Mouse.Y + 36
  8900.     if library.flags["Mouse Offset"] then
  8901.         MX = MX + library.flags["MXO Amount"]
  8902.         MY = MY + library.flags["MYO Amount"]
  8903.     end
  8904.  
  8905.     if Draw.Visible then
  8906.         Draw.Position = Vector2.new(MX, MY)
  8907.     end
  8908.  
  8909.     --if RadarWindow.Visible then
  8910.     --  RadarWindow.Position = Vector2.new(MX, MY)
  8911.     --end
  8912.  
  8913.     if CrosshairBottom.Visible then
  8914.         local Thickness = library.flags["Crosshair Thickness"] / 2
  8915.         local TX, TY = MX - Thickness, MY - Thickness
  8916.         CrosshairTop.Position = Vector2.new(TX, MY - library.flags["Crosshair Gap"])
  8917.         CrosshairLeft.Position = Vector2.new(MX - library.flags["Crosshair Gap"], TY)
  8918.         CrosshairRight.Position = Vector2.new(MX + library.flags["Crosshair Gap"], TY)
  8919.         CrosshairBottom.Position = Vector2.new(TX, MY + library.flags["Crosshair Gap"])
  8920.     end
  8921.  
  8922.     Lighting.ClockTime = library.flags["Clock Time"] and library.flags["Clock Time Amount"] or LightingSpoof.ClockTime
  8923.     Lighting.Brightness = library.flags["Brightness"] and library.flags["Brightness Amount"] or LightingSpoof.Brightness
  8924.     Lighting.Ambient = library.flags["Ambient Lighting"] and library.flags["Indoor Ambient"] or LightingSpoof.Ambient
  8925.     Lighting.OutdoorAmbient = library.flags["Ambient Lighting"] and library.flags["Outdoor Ambient"] or LightingSpoof.OutdoorAmbient
  8926.     Lighting.ColorShift_Top = library.flags["Color Shift"] and library.flags["Color Shift Top"] or LightingSpoof.ColorShift_Top
  8927.  
  8928.     Camera.FieldOfView = (library.flags["FOV Zoom Enabled"] and library.flags["FOV Zoom Key"] and (50 - library.flags["FOV Zoom Amount"])) or library.flags["FOV Changer"] and (library.flags["Dynamic Custom FOV"] and (CameraSpoof.FieldOfView + library.flags["FOV Amount"]) or library.flags["FOV Amount"]) or CameraSpoof.FieldOfView
  8929. end)
  8930.  
  8931. library:Init()
  8932.  
  8933. delay(1, function()
  8934.     library:LoadConfig(tostring(getgenv().AutoLoad))
  8935. end)
  8936.  
  8937. if not getgenv().Silent then
  8938.     if Loaded then
  8939.         library:SendNotification(5, "Loaded " .. (GameTitle or "Universal") .. " Successfully In " .. tostring(tick() - getgenv().Start) .. " Seconds")
  8940.     else
  8941.         library:SendNotification(5, "Failed To Load " .. (GameTitle or "Universal") .. "Error Copied")
  8942.         setclipboard(LoadError)
  8943.     end
  8944. end
Add Comment
Please, Sign In to add comment