Advertisement
Honansik

Bad Business GUI Script

Dec 21st, 2021
30,994
-1
Never
4
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.08 KB | None | 0 1
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local UserInputService = game:GetService("UserInputService")
  5. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  6.  
  7. -- Modules
  8. local Ts = require(ReplicatedStorage.TS)
  9.  
  10. -- Player
  11. local Player = Players.LocalPlayer
  12. local Mouse = Player:GetMouse()
  13. local CurrentCamera = workspace.CurrentCamera
  14.  
  15. -- Library
  16. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/WetCheezit/UI-Libs/main/uwuware.lua"))()
  17. local Math = loadstring(game:HttpGet("https://raw.githubusercontent.com/iRay888/Ray/main/Math"))()
  18.  
  19. -- Window(s)
  20. local CombatWindow = Library:CreateWindow("Combat")
  21. local EspWindow = Library:CreateWindow("Esp")
  22. local MiscWindow = Library:CreateWindow("Misc")
  23. local Settings = Library:CreateWindow("Settings")
  24.  
  25. -- Folders
  26. local Main = CombatWindow:AddFolder("Aimbot")
  27. local KnifeAura = CombatWindow:AddFolder("Knife Aura")
  28. local EspMain = EspWindow:AddFolder("Main")
  29. local EspSettings = EspWindow:AddFolder("Settings")
  30. local GunMods = MiscWindow:AddFolder("Gun Mods")
  31. local Misc = MiscWindow:AddFolder("Movement")
  32. local MainSettings = Settings:AddFolder("Settings")
  33.  
  34. Main:AddToggle({text = "Enabled", flag = "aimbot_enabled"})
  35. --Main:AddToggle({text = "Visible Check", flag = "aimbot_visiblecheck"})
  36. Main:AddList({text = "Aimbot type", flag = "aimbot_type", value = "Redirection", values = {"Redirection", "Lock on"}})
  37. Main:AddList({text = "Hitpart", flag = "aimbot_hitpart", value = "Abdomen", values = {"Abdomen", "Hips", "Chest", "Neck", "Head"}})
  38. Main:AddSlider({text = "Redirection miss %", flag = "aimbot_misspercent", min = 0, max = 100, value = 0})
  39. Main:AddSlider({text = "Aimbot smoothing", flag = "aimbot_smoothing", min = 3, max = 10, value = 5, float = 0.1})
  40. Main:AddToggle({text = "Fov circle", flag = "aimbot_fovcircle"})
  41. Main:AddSlider({text = "Fov radius", flag = "aimbot_fovradius", min = 10, max = 800, value = 100})
  42. Main:AddColor({text = "Fov color", flag = "aimbot_fovcolor", value = Color3.fromRGB(255,255,255)})
  43.  
  44. KnifeAura:AddToggle({text = "Enabled", flag = "knifeaura_enabled"})
  45. KnifeAura:AddToggle({text = "Auto knife", flag = "knifeaura_autoknife"})
  46. KnifeAura:AddToggle({text = "Kill all", flag = "knifeaura_killall"})
  47. KnifeAura:AddToggle({text = "Instant teleport", flag = "knifeaura_instanttp"})
  48. KnifeAura:AddSlider({text = "Radius", flag = "knifeaura_radius", min = 0, max = 20, suffix = " Studs"})
  49. KnifeAura:AddList({text = "Hitpart", flag = "knifeaura_hitpart", values = {"Abdomen", "Hips", "Chest", "Neck", "Head"}})
  50. KnifeAura:AddLabel({text = "Turn off fly with kill all"})
  51.  
  52. GunMods:AddToggle({text = "No recoil", flag = "gun_norecoil"})
  53. GunMods:AddToggle({text = "No spread", flag = "gun_nospread"})
  54.  
  55. Misc:AddToggle({text = "Click TP", flag = "misc_clicktp"})
  56. Misc:AddBind({text = "TP Key", flag = "misc_clicktpbind", key = "Z", callback = function()
  57.     local Character = Ts.Characters:GetCharacter(Player)
  58.  
  59.     if (Character and Character:FindFirstChild("Root") and Library.flags.misc_clicktp) then
  60.         Character.Root.CFrame = Mouse.Hit * CFrame.new(0, 5, 0)
  61.     end
  62. end})
  63. Misc:AddToggle({text = "Fly", flag = "misc_fly"})
  64. Misc:AddSlider({text = "Fly speed", flag = "misc_flyspeed", min = 0, max = 100, value = 100})
  65.  
  66. EspMain:AddToggle({text = "Enabled", flag = "esp_enabled"})
  67. EspMain:AddToggle({text = "Names", flag = "esp_names"})
  68. EspMain:AddToggle({text = "Distance", flag = "esp_distance"})
  69. EspMain:AddToggle({text = "Weapons", flag = "esp_weapons"})
  70. EspMain:AddToggle({text = "Boxes", flag = "esp_boxes"})
  71. EspMain:AddToggle({text = "Healthbars", flag = "esp_healthbars"})
  72.  
  73. EspSettings:AddList({text = "Text casing", flag = "esp_textcasing", values = {"Normal", "UPPERCASE", "lowercase"}})
  74.  
  75. MainSettings:AddBind({text = "Open / Close", key = "RightShift", callback = function()
  76.     Library:Close()
  77. end})
  78. MainSettings:AddButton({text = "Copy discord invite", callback = function()
  79.     setclipboard("https://discord.gg/etKPjb4n")
  80. end})
  81. MainSettings:AddLabel({text = "WetCheezit#4345"})
  82. MainSettings:AddLabel({text = "siper#9938"})
  83.  
  84. -- Functions
  85. local function CheckTeam(Target)
  86.     return Ts.Teams:GetPlayerTeam(Target) ~= Ts.Teams:GetPlayerTeam(Player)
  87. end
  88.  
  89. local function GetClosest(Fov)
  90.     local Target, Closest = nil, Fov or math.huge
  91.  
  92.     for i,v in pairs(Players:GetPlayers()) do
  93.         local Character = Ts.Characters:GetCharacter(v)
  94.  
  95.         if (v ~= Player and CheckTeam(v)) then
  96.             if (Character and Character:FindFirstChild("Hitbox") and Character.Hitbox:FindFirstChild(Library.flags.aimbot_hitpart)) then
  97.                 local Position, OnScreen = CurrentCamera:WorldToScreenPoint(Character.Hitbox[Library.flags.aimbot_hitpart].Position)
  98.                 local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  99.  
  100.                 if (Distance < Closest and OnScreen) then
  101.                     Closest = Distance
  102.                     Target = v
  103.                 end
  104.             end
  105.         end
  106.     end
  107.  
  108.     return Target
  109. end
  110.  
  111. local function GetDistanceClosest(MaxDist)
  112.     local Target, Closest = nil, MaxDist or math.huge
  113.  
  114.     for i,v in pairs(Players:GetPlayers()) do
  115.         local Character = Ts.Characters:GetCharacter(v)
  116.  
  117.         if (v ~= Player and CheckTeam(v)) then
  118.             if (Character and Character:FindFirstChild("Hitbox") and Character.Hitbox:FindFirstChild(Library.flags.aimbot_hitpart)) then
  119.                 local LocalCharacter = Ts.Characters:GetCharacter(Player)
  120.  
  121.                 if (LocalCharacter) then
  122.                     local LocalRoot = LocalCharacter:FindFirstChild("Root")
  123.                     local Root = Character:FindFirstChild("Root")
  124.                    
  125.                     local Distance = (LocalRoot.Position - Root.Position).Magnitude
  126.  
  127.                     if (Distance < Closest) then
  128.                         Closest = Distance
  129.                         Target = v
  130.                     end
  131.                 end
  132.             end
  133.         end
  134.     end
  135.  
  136.     return Target
  137. end
  138.  
  139. --[[local function IsVisible(Target)
  140.     local Character = Ts.Characters:GetCharacter(Target)
  141.     local RootPos = Character.Root.Position
  142.     local IgnoreList = { CurrentCamera, Character, Character.Root, Ts.Characters:GetCharacter(Player) }
  143.  
  144.     return workspace:FindPartOnRayWithIgnoreList(Ray.new(CurrentCamera.CFrame.p, RootPos - CurrentCamera.CFrame.p), IgnoreList) == nil
  145. end]]--
  146.  
  147. local function GetKnifeModel()
  148.     local Character = Ts.Characters:GetCharacter(Player)
  149.  
  150.     if (Character and Character:FindFirstChild("Backpack") and Character.Backpack:FindFirstChild("Melee")) then
  151.         return Character.Backpack.Melee.Value
  152.     end
  153.  
  154.     return nil
  155. end
  156.  
  157. local EspCache = {}
  158.  
  159. local function ParseText(Text)
  160.     local Casing = Library.flags.esp_textcasing
  161.     local NewText = Text
  162.  
  163.     if (Casing == "UPPERCASE") then
  164.         NewText = NewText:upper()
  165.     elseif (Casing == "lowercase") then
  166.         NewText = NewText:lower()
  167.     end
  168.  
  169.     return NewText
  170. end
  171.  
  172. local function GetBoundingBox(Character)
  173.     local Data = {}
  174.  
  175.     for i,v in pairs(Character.Body:GetChildren()) do
  176.         for i2, v2 in pairs(Math.getpartinfo2(v.CFrame, v.Size)) do
  177.             Data[#Data + 1] = v2
  178.         end
  179.     end
  180.  
  181.     return Math.getposlist2(Data)
  182. end
  183.  
  184. local function Create(Class, Properties)
  185.     local Object = Drawing.new(Class)
  186.  
  187.     for i,v in pairs(Properties) do
  188.         Object[i] = v
  189.     end
  190.  
  191.     return Object
  192. end
  193.  
  194. local function AddEsp(Player)
  195.     if (Player == Players.LocalPlayer) then
  196.         return
  197.     end
  198.  
  199.     local Objects = {
  200.         Box = Create("Quad", {
  201.             Visible = false,
  202.             Color = Color3.new(1, 1, 1),
  203.             Thickness = 1,
  204.             Filled = false,
  205.             ZIndex = 2,
  206.         }),
  207.         BoxOutline = Create("Quad", {
  208.             Visible = false,
  209.             Color = Color3.new(),
  210.             Thickness = 3,
  211.             Filled = false,
  212.             ZIndex = 1,
  213.         }),
  214.         Name = Create("Text", {
  215.             Visible = false,
  216.             Color = Color3.new(1, 1, 1),
  217.             Text = Player.Name,
  218.             Size = 13,
  219.             Center = true,
  220.             Outline = true,
  221.             OutlineColor = Color3.new(),
  222.             Font = Drawing.Fonts.Plex
  223.         }),
  224.         Distance = Create("Text", {
  225.             Visible = false,
  226.             Color = Color3.new(1, 1, 1),
  227.             Size = 13,
  228.             Center = true,
  229.             Outline = true,
  230.             OutlineColor = Color3.new(),
  231.             Font = Drawing.Fonts.Plex
  232.         }),
  233.         Weapon = Create("Text", {
  234.             Visible = false,
  235.             Color = Color3.new(1, 1, 1),
  236.             Size = 13,
  237.             Center = false,
  238.             Outline = true,
  239.             OutlineColor = Color3.new(),
  240.             Font = Drawing.Fonts.Plex
  241.         }),
  242.         Healthbar = Create("Square", {
  243.             Visible = false,
  244.             Color = Color3.new(0, 1, 0),
  245.             Thickness = 1,
  246.             Filled = false,
  247.             ZIndex = 2
  248.         }),
  249.         HealthbarOutline = Create("Square", {
  250.             Visible = false,
  251.             Color = Color3.new(),
  252.             Thickness = 3,
  253.             Filled = false,
  254.             ZIndex = 1
  255.         }),
  256.     }
  257.  
  258.     local Connection; Connection = RunService.RenderStepped:Connect(function()
  259.         local Character = Ts.Characters:GetCharacter(Player)
  260.  
  261.         if (Character and Character:FindFirstChild("Root") and CheckTeam(Player)) then
  262.             local _, OnScreen = CurrentCamera:WorldToViewportPoint(Character.Root.Position)
  263.             local CanShow = OnScreen and Library.flags.esp_enabled
  264.  
  265.             if (CanShow) then
  266.                 local Data = GetBoundingBox(Character)
  267.                 local Health, MaxHealth = Character.Health.Value, Character.Health.MaxHealth.Value
  268.                 local DistY = Data.Positions.TopLeft.Y - Data.Positions.BottomRight.Y
  269.                 local HealthbarSize = Vector2.new(2, DistY)
  270.                 local HealthbarPosition = Vector2.new(Data.Positions.TopLeft.X - (4 + Objects.Healthbar.Size.X), Data.Positions.BottomLeft.Y)
  271.  
  272.                 Objects.Box.Visible = CanShow and Library.flags.esp_boxes
  273.                 Objects.BoxOutline.Visible = CanShow and Library.flags.esp_boxes
  274.  
  275.                 for i,v in pairs(Data.Quad) do
  276.                     Objects.Box[i] = v
  277.                     Objects.BoxOutline[i] = v
  278.                 end
  279.  
  280.                 Objects.Name.Visible = CanShow and Library.flags.esp_names
  281.                 Objects.Name.Text = ParseText(Player.Name)
  282.                 Objects.Name.Position = Vector2.new(Data.Positions.Middle.X, Data.Positions.TopLeft.Y - 15)
  283.  
  284.                 Objects.Distance.Visible = CanShow and Library.flags.esp_distance
  285.                 Objects.Distance.Text = ParseText(math.floor((Character.Root.Position - CurrentCamera.CFrame.p).Magnitude) .. " Studs")
  286.                 Objects.Distance.Position = Vector2.new(Data.Positions.Middle.X, Data.Positions.BottomLeft.Y + 3)
  287.  
  288.                 Objects.Weapon.Visible = CanShow and Library.flags.esp_weapons
  289.                 Objects.Weapon.Text = ParseText(Character.Backpack.Equipped.Value and Character.Backpack.Equipped.Value.Name or "UNKNOWN")
  290.                 Objects.Weapon.Position = Vector2.new(Data.Positions.TopRight.X + 4, Data.Positions.TopRight.Y - 2)
  291.  
  292.                 Objects.Healthbar.Visible = CanShow and Library.flags.esp_healthbars
  293.                 Objects.Healthbar.Size = Vector2.new(HealthbarSize.X, HealthbarSize.Y * math.clamp((Health / MaxHealth), 0, 1))
  294.                 Objects.Healthbar.Position = HealthbarPosition
  295.  
  296.                 Objects.HealthbarOutline.Visible = CanShow and Library.flags.esp_healthbars
  297.                 Objects.HealthbarOutline.Size = HealthbarSize
  298.                 Objects.HealthbarOutline.Position = HealthbarPosition
  299.             else
  300.                 for i,v in pairs(Objects) do
  301.                     v.Visible = false
  302.                 end
  303.             end
  304.         else
  305.             for i,v in pairs(Objects) do
  306.                 v.Visible = false
  307.             end
  308.         end
  309.     end)
  310.  
  311.     EspCache[Player] = {
  312.         Objects = Objects,
  313.         Connection = Connection,
  314.     }
  315. end
  316.  
  317. local function RemoveEsp(Player)
  318.     local Data = EspCache[Player]
  319.  
  320.     if (Data) then
  321.         Data.Connection:Disconnect()
  322.  
  323.         for i,v in pairs(Data.Objects) do
  324.             v:Remove()
  325.             v = nil
  326.         end
  327.     end
  328. end
  329.  
  330. Library:Init()
  331.  
  332. -- Fov
  333. local CircleInline = Drawing.new("Circle")
  334. local CircleOutline = Drawing.new("Circle")
  335.  
  336. RunService.Heartbeat:Connect(function()
  337.     CircleInline.Radius = Library.flags.aimbot_fovradius
  338.     CircleInline.Thickness = 2
  339.     CircleInline.Position = Vector2.new(Mouse.X, Mouse.Y + 36)
  340.     CircleInline.Transparency = 1
  341.     CircleInline.Color = Library.flags.aimbot_fovcolor
  342.     CircleInline.Visible = Library.flags.aimbot_fovcircle
  343.     CircleInline.ZIndex = 2
  344.  
  345.     CircleOutline.Radius = Library.flags.aimbot_fovradius
  346.     CircleOutline.Thickness = 4
  347.     CircleOutline.Position = Vector2.new(Mouse.X, Mouse.Y + 36)
  348.     CircleOutline.Transparency = 1
  349.     CircleOutline.Color = Color3.new()
  350.     CircleOutline.Visible = Library.flags.aimbot_fovcircle
  351.     CircleOutline.ZIndex = 1
  352. end)
  353.  
  354. -- Aimbot
  355. local Target
  356. local MeleeTarget
  357.  
  358. RunService.Heartbeat:Connect(function()
  359.     Target = GetClosest(Library.flags.aimbot_fovradius)
  360.     MeleeTarget = GetDistanceClosest(Library.flags.knifeaura_radius)
  361. end)
  362.  
  363. RunService.Heartbeat:Connect(function()
  364.     if (Target) then
  365.         local Character = Ts.Characters:GetCharacter(Target)
  366.  
  367.         if (Character and Character.Hitbox[Library.flags.aimbot_hitpart]) then
  368.             local Position, OnScreen = CurrentCamera:WorldToScreenPoint(Character.Hitbox[Library.flags.aimbot_hitpart].Position)
  369.  
  370.             if (Library.flags.aimbot_visiblecheck and not IsVisible(Target)) then
  371.                 return
  372.             end
  373.  
  374.             if (OnScreen and UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) and Library.flags.aimbot_enabled and Library.flags.aimbot_type == "Lock on") then
  375.                 mousemoverel((Position.X - Mouse.X) / Library.flags.aimbot_smoothing, (Position.Y - Mouse.Y) / Library.flags.aimbot_smoothing)
  376.             end
  377.         end
  378.     end
  379. end)
  380.  
  381. RunService.Heartbeat:Connect(function()
  382.     local KnifeModel = GetKnifeModel()
  383.  
  384.     if (Library.flags.knifeaura_enabled and Library.flags.knifeaura_autoknife and MeleeTarget and KnifeModel) then
  385.         local Character = Ts.Characters:GetCharacter(MeleeTarget)
  386.        
  387.         if (Character) then
  388.             local Hitbox = Character:FindFirstChild("Hitbox")
  389.  
  390.             if (Hitbox) then
  391.                 Ts.Network:Fire("Item_Melee", "StabBegin", KnifeModel)
  392.                 Ts.Network:Fire("Item_Melee", "Stab", KnifeModel, Hitbox[Library.flags.knifeaura_hitpart], Hitbox[Library.flags.knifeaura_hitpart].Position, Vector3.new())
  393.             end
  394.         end
  395.     end
  396. end)
  397.  
  398. local CanKnifeRun = true
  399.  
  400. RunService.Heartbeat:Connect(function()
  401.     if (not CanKnifeRun) then
  402.         return
  403.     end
  404.  
  405.     CanKnifeRun = false
  406.  
  407.     local KnifeModel = GetKnifeModel()
  408.  
  409.     if (Library.flags.knifeaura_enabled and Library.flags.knifeaura_killall and KnifeModel) then
  410.         local Target = GetDistanceClosest()
  411.  
  412.         if (Target) then
  413.             local Character = Ts.Characters:GetCharacter(Target)
  414.             local LocalCharacter = Ts.Characters:GetCharacter(Player)
  415.  
  416.             if (LocalCharacter) then
  417.                 local Magnitude = (LocalCharacter.Root.Position - Character.Root.Position).Magnitude
  418.  
  419.                 local Mag
  420.                 local BreakAmount
  421.  
  422.                 if (Library.flags.knifeaura_instanttp) then
  423.                     BreakAmount = math.huge
  424.                 else
  425.                     BreakAmount = 50
  426.                 end
  427.  
  428.                 if (Magnitude > BreakAmount) then
  429.                     for i = 0, Magnitude, 0.05 do
  430.                         Mag = (LocalCharacter.Root.Position - Character.Root.Position).Magnitude
  431.  
  432.                         if (Mag <= BreakAmount) then
  433.                             break
  434.                         end
  435.  
  436.                         LocalCharacter.Root.CanCollide = false
  437.                         LocalCharacter.Root.CFrame = LocalCharacter.Root.CFrame:Lerp(Character.Root.CFrame, i / Mag)
  438.                         task.wait(0.025)
  439.                     end
  440.                 end
  441.  
  442.                 LocalCharacter.Root.CanCollide = true
  443.                 LocalCharacter.Root.CFrame = Character.Root.CFrame * CFrame.new(0, 0, 5)
  444.  
  445.                 Ts.Network:Fire("Item_Melee", "StabBegin", KnifeModel)
  446.                 Ts.Network:Fire("Item_Melee", "Stab", KnifeModel, Character.Hitbox[Library.flags.knifeaura_hitpart], Character.Hitbox[Library.flags.knifeaura_hitpart].Position, Vector3.new())
  447.             end
  448.         end
  449.     end
  450.  
  451.     task.wait(0.35)
  452.  
  453.     CanKnifeRun = true
  454. end)
  455.  
  456. local OldLookVector = Ts.Input.Reticle.LookVector; do
  457.     Ts.Input.Reticle.LookVector = newcclosure(function(...)
  458.         if (Library.flags.gun_nospread) then
  459.             return CurrentCamera.CFrame.LookVector
  460.         end
  461.  
  462.         return OldLookVector(...)
  463.     end)
  464.  
  465.     debug.setupvalue(Ts.Input.Reticle.GetPosition, 2, Ts.Input.Reticle.LookVector)
  466. end
  467.  
  468. local OldFire = Ts.Camera.Recoil.Fire; do
  469.     Ts.Camera.Recoil.Fire = newcclosure(function(...)
  470.         if (Library.flags.gun_norecoil) then
  471.             return
  472.         end
  473.  
  474.         return OldFire(...)
  475.     end)
  476.  
  477.     debug.setupvalue(Ts.Camera.Recoil.Update, 2, Ts.Camera.Recoil.Fire)
  478. end
  479.  
  480. RunService.Stepped:Connect(function()
  481.     local Character = Ts.Characters:GetCharacter(Player)
  482.  
  483.     if (Character) then
  484.         local Root = Character:FindFirstChild("Root")
  485.  
  486.         if (Root) then
  487.             if (Library.flags.misc_fly) then
  488.                 local LookVector = CurrentCamera.CFrame.LookVector
  489.                 local RightVector = CurrentCamera.CFrame.RightVector
  490.                 local UpVector = Root.CFrame.UpVector
  491.  
  492.                 local TargetVelocity = Vector3.new()
  493.                 local Moving = false
  494.  
  495.                 if (UserInputService:IsKeyDown("W")) then
  496.                     TargetVelocity = TargetVelocity + LookVector
  497.                     Moving = true
  498.                 end
  499.  
  500.                 if (UserInputService:IsKeyDown("S")) then
  501.                     TargetVelocity = TargetVelocity + -LookVector
  502.                     Moving = true
  503.                 end
  504.  
  505.                 if (UserInputService:IsKeyDown("A")) then
  506.                     TargetVelocity = TargetVelocity + -RightVector
  507.                     Moving = true
  508.                 end
  509.  
  510.                 if (UserInputService:IsKeyDown("D")) then
  511.                     TargetVelocity = TargetVelocity + RightVector
  512.                     Moving = true
  513.                 end
  514.  
  515.                 if (UserInputService:IsKeyDown("Space")) then
  516.                     TargetVelocity = TargetVelocity + UpVector
  517.                     Moving = true
  518.                 end
  519.  
  520.                 if (UserInputService:IsKeyDown("LeftShift")) then
  521.                     TargetVelocity = TargetVelocity + -UpVector
  522.                     Moving = true
  523.                 end
  524.  
  525.                 Root.Anchored = not Moving
  526.                 Root.Velocity = TargetVelocity * Library.flags.misc_flyspeed
  527.             else
  528.                 Root.Anchored = false
  529.             end
  530.         end
  531.     end
  532. end)
  533.  
  534. -- Esp
  535. for i,v in pairs(Players:GetPlayers()) do
  536.     AddEsp(v)
  537. end
  538.  
  539. Players.PlayerAdded:Connect(function(Player)
  540.     AddEsp(Player)
  541. end)
  542.  
  543. Players.PlayerRemoving:Connect(function(Player)
  544.     RemoveEsp(Player)
  545. end)
  546.  
  547. local Old; Old = hookmetamethod(game, "__namecall", function(Self, ...)
  548.     local Args = {...}
  549.     local Method = getnamecallmethod()
  550.  
  551.     if (not checkcaller() and Method == "FireServer" and Self.Name == "Projectiles") then
  552.         if (Target and Library.flags.aimbot_enabled and Library.flags.aimbot_type == "Redirection") then
  553.             local Character = Ts.Characters:GetCharacter(Target)
  554.  
  555.             if (Character and Character.Hitbox and Character.Hitbox[Library.flags.aimbot_hitpart] and Args[1] == "__Hit") then
  556.                 --[[if (Library.flags.aimbot_visiblecheck and not IsVisible(Target)) then
  557.                     return
  558.                 end]]--
  559.  
  560.                 if (math.random(0, 100) >= Library.flags.aimbot_misspercent) then
  561.                     Args[3] = Character.Hitbox[Library.flags.aimbot_hitpart].Position
  562.                     Args[4] = Character.Hitbox[Library.flags.aimbot_hitpart]
  563.                     Args[6] = Character
  564.                 end
  565.             end
  566.         end
  567.     elseif (Self.Name == "Item_Melee" and Args[1] == "Stab" and Method == "FireServer") then
  568.         if (MeleeTarget and Library.flags.knifeaura_enabled) then
  569.             local Character = Ts.Characters:GetCharacter(MeleeTarget)
  570.            
  571.             Args[3] = Character.Hitbox[Library.flags.knifeaura_hitpart]
  572.             Args[4] = Character.Hitbox[Library.flags.knifeaura_hitpart].Position
  573.             Args[5] = Vector3.new()
  574.         end
  575.     end
  576.     return Old(Self, unpack(Args))
  577. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement