vtrvsted

arctic leak

Apr 10th, 2023 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 30.29 KB | None | 0 0
  1. getgenv().Arctic = {
  2.     SilentAim = {
  3.         Enabled = true,
  4.         KeybindEnabled = false,
  5.         Keybind = "X",
  6.         Predict = true,
  7.         Prediction = 0.1,
  8.         AimPart = "HumanoidRootPart",
  9.         LegitMode = true, -- nearest point
  10.     },
  11.     AimAssist = {
  12.         Enabled = false,
  13.         Keybind = "C",
  14.         Predict = true,
  15.         Prediction = 0.1267,
  16.         Smoothness = 0.4,
  17.         Aimpart = "HumanoidRootPart",
  18.         LegitMode = false,
  19.         DisableOnEnemyDeath = true,
  20.         DisableOnOwnDeath = true,
  21.         Shake = {
  22.             Enabled = true,
  23.             Strength = 100
  24.         },
  25.     },
  26.     FOV = {
  27.         SilentAim = {
  28.             ShowFOV = true,
  29.             KeybindEnabled = true,
  30.             Keybind = "Z",
  31.             Filled = false,
  32.             FOV = 15,
  33.             NumSides = 100,
  34.             Color = Color3.fromRGB(255, 0, 0),
  35.             Thickness = 1,
  36.             Transparency = 0.7
  37.         },
  38.         AimAssist = {
  39.             Enabled = false,
  40.             ShowFOV = false,
  41.             KeybindEnabled = false,
  42.             Keybind = "M",
  43.             Filled = false,
  44.             FOV = 30,
  45.             NumSides = 100,
  46.             Color = Color3.fromRGB(0, 0, 0),
  47.             Thickness = 1,
  48.             Transparency = 0.7
  49.         }
  50.     },
  51.     Checks = {
  52.         KOCheck = true,
  53.         WallCheck = true,
  54.         CrewCheck = false,
  55.         FriendCheck = false,
  56.         VelocityCheck = true
  57.     },
  58.     GunFOV = {
  59.         Enabled = false,
  60.         DoubleBarrel = 22.5,
  61.         Revolver = 27.5,
  62.         Shotgun = 35,
  63.         TacticalShotgun = 35,
  64.         Smg = 25,
  65.         Rifle = 50,
  66.         Silencer = 32.5,
  67.         SilencerAR = 32.5,
  68.         Glock = 100,
  69.         AK47 = 25,
  70.         AR = 42
  71.     },
  72.     Customize = {
  73.         HitChance = {
  74.             Enabled = false,
  75.             GroundHitChance = 0,
  76.             AirHitChance = 0
  77.         },
  78.         Prediction = {
  79.             Enabled = false,
  80.             GroundPrediction = 0,
  81.             AirPrediction = 0
  82.         },
  83.         Smoothness = {
  84.             Enabled = false,
  85.             GroundSmoothness = 0,
  86.             AirSmoothness = 0
  87.         },
  88.         Shake = {
  89.             Enabled = false,
  90.             GroundShake = 0,
  91.             AirShake = 0
  92.         }
  93.     },
  94.     RangeManagement = {
  95.         Enabled = false,
  96.         Type = "Both",
  97.         Close = {
  98.             CloseDetection = 5,
  99.             CloseFOV = 60,
  100.             ClosePrediction = 0.121
  101.         },
  102.         Mid = {
  103.             MidDetection = 15,
  104.             MidFOV = 45,
  105.             MidPrediction = 0.127
  106.         },
  107.         Far = {
  108.             FarDetection = 25,
  109.             FarFOV = 35,
  110.             FarPrediction = 0.131
  111.         },
  112.         ReallyFar = {
  113.             ReallyFarDetection = math.huge,
  114.             ReallyFarFOV = 20,
  115.             ReallyFarPrediction = 0.134
  116.         }
  117.     },
  118.     Resolver = {
  119.         Enabled = true,
  120.         KeybindEnabled = false,
  121.         Keybind = "K"
  122.     },
  123.     Chat = {
  124.         Enabled = true,
  125.         FOV = ".fov",
  126.         Prediction = ".prediction",
  127.         HitChance = ".hitchance",
  128.     },
  129.     AutoPrediction = {
  130.         ComingSoon = false,
  131.  
  132.  
  133.     },
  134.     HitSound = {
  135.         ComingSoon = false,
  136.  
  137.  
  138.     }
  139. }
  140.  
  141.  
  142.  
  143. local Players = game:GetService("Players")
  144. local Client = game:GetService("Players").LocalPlayer
  145. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  146. local RunService = game:GetService("RunService")
  147. local Camera = game:GetService("Workspace").CurrentCamera
  148. local Ping = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValue()
  149. local SilentAimFOV = Drawing.new("Circle")
  150. local AimAssistFOV = Drawing.new("Circle")
  151. local SilentAimTarget
  152. local AimAssistTarget
  153.  
  154. SilentAimFOV.Color = getgenv().Arctic.FOV.SilentAim.Color
  155. SilentAimFOV.Thickness = getgenv().Arctic.FOV.SilentAim.Thickness
  156. SilentAimFOV.Filled = getgenv().Arctic.FOV.SilentAim.Filled
  157. SilentAimFOV.Transparency = getgenv().Arctic.FOV.SilentAim.Transparency
  158. SilentAimFOV.NumSides = getgenv().Arctic.FOV.SilentAim.NumSides
  159.  
  160. AimAssistFOV.Color = getgenv().Arctic.FOV.AimAssist.Color
  161. AimAssistFOV.Thickness = getgenv().Arctic.FOV.AimAssist.Thickness
  162. AimAssistFOV.Filled = getgenv().Arctic.FOV.AimAssist.Filled
  163. AimAssistFOV.Transparency = getgenv().Arctic.FOV.AimAssist.Transparency
  164. AimAssistFOV.NumSides = getgenv().Arctic.FOV.AimAssist.NumSides
  165.  
  166. local UpdateFOV = function()
  167.     if not SilentAimFOV and AimAssistFOV then
  168.         return SilentAimFOV and AimAssistFOV
  169.     end
  170.     SilentAimFOV.Visible = getgenv().Arctic.FOV.SilentAim.ShowFOV
  171.     SilentAimFOV.Radius = getgenv().Arctic.FOV.SilentAim.FOV * 5
  172.     SilentAimFOV.Position = Vector2.new(Mouse.X, Mouse.Y + (game:GetService("GuiService"):GetGuiInset().Y))
  173.  
  174.     AimAssistFOV.Visible = getgenv().Arctic.FOV.AimAssist.ShowFOV
  175.     AimAssistFOV.Radius = getgenv().Arctic.FOV.AimAssist.FOV * 5
  176.     AimAssistFOV.Position = Vector2.new(Mouse.X, Mouse.Y + (game:GetService("GuiService"):GetGuiInset().Y))
  177.     return SilentAimFOV and AimAssistFOV
  178. end
  179. RunService.Heartbeat:Connect(UpdateFOV)
  180.  
  181. local grmt = getrawmetatable(game)
  182. local backupindex = grmt.__index
  183. setreadonly(grmt, false)
  184. grmt.__index = newcclosure(function(self, v)
  185.     if (getgenv().Arctic.SilentAim.Enabled and Mouse and tostring(v) == "Hit") then
  186.         if SilentAimTarget and SilentAimTarget.Character then
  187.             if getgenv().Arctic.SilentAim.Predict then
  188.                 local endpoint = game.Players[tostring(SilentAimTarget)].Character[getgenv().Arctic.SilentAim.AimPart]
  189.                                      .CFrame +
  190.                                      (game.Players[tostring(SilentAimTarget)].Character[getgenv().Arctic.SilentAim.AimPart]
  191.                                          .Velocity * getgenv().Arctic.SilentAim.Prediction)
  192.                 return (tostring(v) == "Hit" and endpoint)
  193.             else
  194.                 local endpoint = game.Players[tostring(SilentAimTarget)].Character[getgenv().Arctic.SilentAim.AimPart]
  195.                                      .CFrame
  196.                 return (tostring(v) == "Hit" and endpoint)
  197.             end
  198.         end
  199.     end
  200.     return backupindex(self, v)
  201. end)
  202.  
  203. local WorldToScreenPoint = function(Object)
  204.     local ObjectVector = Camera:WorldToScreenPoint(Object.Position)
  205.     return Vector2.new(ObjectVector.X, ObjectVector.Y)
  206. end
  207. local IsOnScreen = function(Object)
  208.     local IsOnScreen = Camera:WorldToScreenPoint(Object.Position)
  209.     return IsOnScreen
  210. end
  211. local NoMeshPart = function(Object)
  212.     if string.find(Object.Name, "Gun") then
  213.         return
  214.     end
  215.     if table.find({"Part", "MeshPart", "BasePart"}, Object.ClassName) then
  216.         return true
  217.     end
  218. end
  219. local WallCheck = function(destination, ignore)
  220.     local Origin = Camera.CFrame.p
  221.     local CheckRay = Ray.new(Origin, destination - Origin)
  222.     local Hit = game.workspace:FindPartOnRayWithIgnoreList(CheckRay, ignore)
  223.     return Hit == nil
  224. end
  225. local PlayerMouseFunction = function()
  226.     local Target, Closest = nil, 1 / 0
  227.     for _, v in pairs(Players:GetPlayers()) do
  228.         if getgenv().Arctic.Checks.WallCheck then
  229.             if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  230.                 local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  231.                 local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  232.  
  233.                 if (SilentAimFOV.Radius > Distance and Distance < Closest and OnScreen) and
  234.                     WallCheck(v.Character.HumanoidRootPart.Position, {Client, v.Character}) then
  235.                     Closest = Distance
  236.                     Target = v
  237.                 end
  238.             end
  239.         else
  240.             if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  241.                 local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  242.                 local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  243.  
  244.                 if (SilentAimFOV.Radius > Distance and Distance < Closest and OnScreen) then
  245.                     Closest = Distance
  246.                     Target = v
  247.                 end
  248.             end
  249.         end
  250.     end
  251.     return Target
  252. end
  253. local PlayerMouseFunction2 = function()
  254.     local Target, Closest = nil, AimAssistFOV.Radius * 1.27
  255.     for _, v in pairs(Players:GetPlayers()) do
  256.         if (v.Character and v ~= Client and v.Character:FindFirstChild("HumanoidRootPart")) then
  257.             if getgenv().Arctic.Checks.WallCheck then
  258.                 local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  259.                 local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  260.                 if (Distance < Closest and OnScreen) and
  261.                     WallCheck(v.Character.HumanoidRootPart.Position, {Client, v.Character}) then
  262.                     Closest = Distance
  263.                     Target = v
  264.                 end
  265.             else
  266.                 local Position, OnScreen = Camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
  267.                 local Distance = (Vector2.new(Position.X, Position.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  268.                 if (Distance < Closest and OnScreen) then
  269.                     Closest = Distance
  270.                     Target = v
  271.                 end
  272.             end
  273.         end
  274.     end
  275.     return Target
  276. end
  277. local BodyPartFunction = function(character)
  278.     local ClosestDistance = 1 / 0
  279.     local BodyPart = nil
  280.     if (character and character:GetChildren()) then
  281.         for _, x in next, character:GetChildren() do
  282.             if NoMeshPart(x) and IsOnScreen(x) then
  283.                 local Distance = (WorldToScreenPoint(x) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  284.                 if (SilentAimFOV.Radius > Distance and Distance < ClosestDistance) then
  285.                     ClosestDistance = Distance
  286.                     BodyPart = x
  287.                 end
  288.             end
  289.         end
  290.     end
  291.     return BodyPart
  292. end
  293. local BodyPartFunction2 = function(character)
  294.     local ClosestDistance = 1 / 0
  295.     local BodyPart = nil
  296.  
  297.     if (character and character:GetChildren()) then
  298.         for _, x in next, character:GetChildren() do
  299.             if NoMeshPart(x) and IsOnScreen(x) then
  300.                 local Distance = (WorldToScreenPoint(x) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
  301.                 if (Distance < ClosestDistance) then
  302.                     ClosestDistance = Distance
  303.                     BodyPart = x
  304.                 end
  305.             end
  306.         end
  307.     end
  308.     return BodyPart
  309. end
  310. task.spawn(function()
  311.     while task.wait() do
  312.         if getgenv().Arctic.SilentAim.Enabled then
  313.             SilentAimTarget = PlayerMouseFunction()
  314.         end
  315.         if AimAssistTarget then
  316.             if getgenv().Arctic.AimAssist.Enabled and (AimAssistTarget.Character) and
  317.                 getgenv().Arctic.AimAssist.LegitMode then
  318.                 getgenv().Arctic.AimAssist.Aimpart = tostring(BodyPartFunction2(AimAssistTarget.Character))
  319.             end
  320.         end
  321.         if SilentAimTarget then
  322.             if getgenv().Arctic.SilentAim.Enabled and (SilentAimTarget.Character) and
  323.                 getgenv().Arctic.SilentAim.LegitMode then
  324.                 getgenv().Arctic.SilentAim.AimPart = tostring(BodyPartFunction(SilentAimTarget.Character))
  325.             end
  326.         end
  327.     end
  328. end)
  329. Mouse.KeyDown:Connect(function(Key)
  330.     if getgenv().Arctic.FOV.SilentAim.KeybindEnabled then
  331.         if (Key == getgenv().Arctic.FOV.SilentAim.Keybind:lower()) then
  332.             if getgenv().Arctic.FOV.SilentAim.ShowFOV == true then
  333.                 getgenv().Arctic.FOV.SilentAim.ShowFOV = false
  334.             else
  335.                 getgenv().Arctic.FOV.SilentAim.ShowFOV = true
  336.             end
  337.             if getgenv().Arctic.FOV.AimAssist.KeybindEnabled then
  338.                 if (Key == getgenv().Arctic.FOV.AimAssist.Keybind:lower()) then
  339.                     if getgenv().Arctic.FOV.AimAssist.ShowFOV == true then
  340.                         getgenv().Arctic.FOV.AimAssist.ShowFOV = false
  341.                     else
  342.                         getgenv().Arctic.FOV.AimAssist.ShowFOV = true
  343.                     end
  344.                 end
  345.                 if getgenv().Arctic.SilentAim.KeybindEnabled then
  346.                     if (Key == getgenv().Arctic.SilentAim.Keybind:lower()) then
  347.                         if getgenv().Arctic.SilentAim.Enabled == true then
  348.                             getgenv().Arctic.SilentAim.Enabled = false
  349.                         else
  350.                             getgenv().Arctic.SilentAim.Enabled = true
  351.                         end
  352.                     end
  353.                 end
  354.             end
  355.         end
  356.         if (Key == getgenv().Arctic.AimAssist.Keybind:lower()) then
  357.             if getgenv().Arctic.AimAssist.Enabled == true then
  358.                 IsTargetting = not IsTargetting
  359.                 if IsTargetting then
  360.                     AimAssistTarget = PlayerMouseFunction2()
  361.                 else
  362.                     if AimAssistTarget ~= nil then
  363.                         AimAssistTarget = nil
  364.                         IsTargetting = false
  365.                     end
  366.                 end
  367.             end
  368.         end
  369.     end
  370.     if getgenv().Arctic.Resolver.KeybindEnabled then
  371.         if (Key == getgenv().Arctic.Resolver.Keybind:lower()) then
  372.             if getgenv().Arctic.Resolver.Enabled == true then
  373.                 getgenv().Arctic.Resolver.Enabled = false
  374.             else
  375.                 getgenv().Arctic.Resolver.Enabled = true
  376.             end
  377.         end
  378.     end
  379. end)
  380. if getgenv().Arctic.Checks.CrewCheck then
  381.     while true do
  382.         local newPlayer = game.Players.PlayerAdded:wait()
  383.         if player:IsInGroup(newPlayer.Group) then
  384.             table.insert(Ignored.Players, newPlayer)
  385.         end
  386.     end
  387. end
  388. if getgenv().Arctic.Checks.FriendCheck then
  389.     game.Players.PlayerAdded:Connect(function(SilentAimTarget)
  390.         if Client:IsFriendsWith(SilentAimTarget) then
  391.             local newPlayer = game.Players.PlayerAdded:wait()
  392.             table.insert(Ignored.Players, newPlayer)
  393.         end
  394.     end)
  395. end
  396.  
  397. RunService.Heartbeat:Connect(function()
  398.     if getgenv().Arctic.SilentAim.Enabled then
  399.         if SilentAimTarget and SilentAimTarget.Character and SilentAimTarget.Character:WaitForChild(getgenv().Arctic.SilentAim.AimPart) then
  400.             if getgenv().Arctic.Resolver.Enabled == true and
  401.             SilentAimTarget.Character:WaitForChild("HumanoidRootPart").Velocity.magnitude > 50 then
  402.                 pcall(function()
  403.                     local TargetVel = SilentAimTarget.Character[getgenv().Arctic.SilentAim.AimPart]
  404.                     TargetVel.Velocity = Vector3.new(0, 0, 0)
  405.                     TargetVel.AssemblyLinearVelocity = Vector3.new(0, 0, 0)
  406.                 end)
  407.             end
  408.             if getgenv().Arctic.Checks.VelocityCheck == true and SilentAimTarget.Character:FindFirstChild("Humanoid") ==
  409.                 Enum.HumanoidStateType.Freefall then
  410.                 pcall(function()
  411.                     local TargetVelv5 = SilentAimTarget.Character[getgenv().Arctic.SilentAim.AimPart]
  412.                     TargetVelv5.Velocity = Vector3.new(TargetVelv5.Velocity.X, (TargetVelv5.Velocity.Y * 0.5),
  413.                         TargetVelv5.Velocity.Z)
  414.                     TargetVelv5.AssemblyLinearVelocity = Vector3.new(TargetVelv5.Velocity.X,
  415.                         (TargetVelv5.Velocity.Y * 0.5), TargetVelv5.Velocity.Z)
  416.                 end)
  417.             end
  418.             if getgenv().Arctic.Resolver.Enabled == true then
  419.                 pcall(function()
  420.                     local TargetVelv2 = SilentAimTarget.Character[getgenv().Arctic.SilentAim.AimPart]
  421.                     TargetVelv2.Velocity = Vector3.new(TargetVelv2.Velocity.X, 0, TargetVelv2.Velocity.Z)
  422.                     TargetVelv2.AssemblyLinearVelocity = Vector3.new(TargetVelv2.Velocity.X, 0, TargetVelv2.Velocity.Z)
  423.                 end)
  424.             end
  425.         end
  426.     end
  427. end)
  428. getgenv().Extra = {
  429.     ["Enabled"] = (getgenv().Arctic.GunFOV.Enabled),
  430.     ["Double-Barrel SG"] = {
  431.         ["FOV"] = (getgenv().Arctic.GunFOV.DoubleBarrel)
  432.     },
  433.     ["DoubleBarrel"] = {
  434.         ["FOV"] = (getgenv().Arctic.GunFOV.DoubleBarrel)
  435.     },
  436.     ["Revolver"] = {
  437.         ["FOV"] = (getgenv().Arctic.GunFOV.Revolver)
  438.     },
  439.     ["SMG"] = {
  440.         ["FOV"] = (getgenv().Arctic.GunFOV.Smg)
  441.     },
  442.     ["Shotgun"] = {
  443.         ["FOV"] = (getgenv().Arctic.GunFOV.Shotgun)
  444.     },
  445.     ["TacticalShotgun"] = {
  446.         ["FOV"] = (getgenv().Arctic.GunFOV.TacticalShotgun)
  447.     },
  448.     ["Rifle"] = {
  449.         ["FOV"] = (getgenv().Arctic.GunFOV.Rifle)
  450.     },
  451.     ["Silencer"] = {
  452.         ["FOV"] = (getgenv().Arctic.GunFOV.Silencer)
  453.     },
  454.     ["SilencerAR"] = {
  455.         ["FOV"] = (getgenv().Arctic.GunFOV.SilencerAR)
  456.     },
  457.     ["Glock"] = {
  458.         ["FOV"] = (getgenv().Arctic.GunFOV.Glock)
  459.     },
  460.     ["AK47"] = {
  461.         ["FOV"] = (getgenv().Arctic.GunFOV.AK47)
  462.     },
  463.     ["AR"] = {
  464.         ["FOV"] = (getgenv().Arctic.GunFOV.AR)
  465.     }
  466. }
  467.  
  468. local Script = {
  469.     Functions = {}
  470. }
  471. Script.Functions.getToolName = function(name)
  472.     local split = string.split(string.split(name, "[")[2], "]")[1]
  473.     return split
  474. end
  475. Script.Functions.getEquippedWeaponName = function()
  476.     if (Client.Character) and Client.Character:FindFirstChildWhichIsA("Tool") then
  477.         local Tool = Client.Character:FindFirstChildWhichIsA("Tool")
  478.         if string.find(Tool.Name, "%[") and string.find(Tool.Name, "%]") and not string.find(Tool.Name, "Wallet") and
  479.             not string.find(Tool.Name, "Phone") then
  480.             return Script.Functions.getToolName(Tool.Name)
  481.         end
  482.     end
  483.     return nil
  484. end
  485. RunService.RenderStepped:Connect(function()
  486.     if getgenv().Arctic.SilentAim.Enabled then
  487.         if getgenv().Arctic.Checks.KOCheck == true and SilentAimTarget and SilentAimTarget.Character then
  488.             local KOd = SilentAimTarget.Character:WaitForChild("BodyEffects")["K.O"].Value
  489.             local Grabbed = SilentAimTarget.Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  490.             if KOd or Grabbed then
  491.                 SilentAimTarget = nil
  492.             end
  493.         end
  494.     end
  495.     if getgenv().Arctic.AimAssist.Enabled == true then
  496.         if getgenv().Arctic.Checks.KOCheck == true and AimAssistTarget and AimAssistTarget.Character then
  497.             local KOd = AimAssistTarget.Character:WaitForChild("BodyEffects")["K.O"].Value
  498.             local Grabbed = AimAssistTarget.Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  499.             if KOd or Grabbed then
  500.                 AimAssistTarget = nil
  501.                 IsTargetting = false
  502.             end
  503.         end
  504.     end
  505.     if getgenv().Arctic.AimAssist.DisableOnEnemyDeath == true and AimAssistTarget and
  506.     AimAssistTarget.Character:FindFirstChild("Humanoid") then
  507.         if AimAssistTarget.Character.Humanoid.health < 2 then
  508.             AimAssistTarget = nil
  509.             IsTargetting = false
  510.         end
  511.     end
  512.     if getgenv().Arctic.AimAssist.DisableOnOwnDeath == true and AimAssistTarget and
  513.     AimAssistTarget.Character:FindFirstChild("Humanoid") then
  514.         if Client.Character.Humanoid.health < 2 then
  515.             AimAssistTarget = nil
  516.             IsTargetting = false
  517.         end
  518.     end
  519.     if getgenv().Arctic.FOV.AimAssist.Enabled == true and AimAssistTarget and AimAssistTarget.Character and
  520.     AimAssistTarget.Character:WaitForChild("HumanoidRootPart") then
  521.         if AimAssistFOV.Radius < (Vector2.new(Camera:WorldToScreenPoint(AimAssistTarget.Character.HumanoidRootPart.Position).X,
  522.             Camera:WorldToScreenPoint(AimAssistTarget.Character.HumanoidRootPart.Position).Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude then
  523.                 AimAssistTarget = nil
  524.             IsTargetting = false
  525.         end
  526.     end
  527.     if getgenv().Arctic.AimAssist.Predict and AimAssistTarget and AimAssistTarget.Character and
  528.     AimAssistTarget.Character:FindFirstChild(getgenv().Arctic.AimAssist.Aimpart) then
  529.         if getgenv().Arctic.AimAssist.Shake.Enabled then
  530.             local Main = CFrame.new(Camera.CFrame.p,
  531.             AimAssistTarget.Character[getgenv().Arctic.AimAssist.Aimpart].Position +
  532.                 AimAssistTarget.Character[getgenv().Arctic.AimAssist.Aimpart].Velocity *
  533.                     getgenv().Arctic.AimAssist.Prediction +
  534.                     Vector3.new(math.random(-getgenv().Arctic.AimAssist.Shake.Strength,
  535.                         getgenv().Arctic.AimAssist.Shake.Strength), math.random(
  536.                         -getgenv().Arctic.AimAssist.Shake.Strength,
  537.                         getgenv().Arctic.AimAssist.Shake.Strength), math.random(
  538.                         -getgenv().Arctic.AimAssist.Shake.Strength,
  539.                         getgenv().Arctic.AimAssist.Shake.Strength)) * 0.1)
  540.             Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Arctic.AimAssist.Smoothness / 2,
  541.                 Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  542.         else
  543.             local Main = CFrame.new(Camera.CFrame.p,
  544.             AimAssistTarget.Character[getgenv().Arctic.AimAssist.Aimpart].Position +
  545.                 AimAssistTarget.Character[getgenv().Arctic.AimAssist.Aimpart].Velocity *
  546.                     getgenv().Arctic.AimAssist.Prediction)
  547.             Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Arctic.AimAssist.Smoothness / 2,
  548.                 Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  549.         end
  550.     elseif getgenv().Arctic.AimAssist.Predict == false and AimAssistTarget and AimAssistTarget.Character and
  551.     AimAssistTarget.Character:FindFirstChild(getgenv().Arctic.AimAssist.Aimpart) then
  552.         if getgenv().Arctic.AimAssist.Shake.Enabled then
  553.             local Main = CFrame.new(Camera.CFrame.p,
  554.             AimAssistTarget.Character[getgenv().Arctic.AimAssist.Aimpart].Position +
  555.                     Vector3.new(math.random(-getgenv().Arctic.AimAssist.Shake.Strength,
  556.                         getgenv().Arctic.AimAssist.Shake.Strength), math.random(
  557.                         -getgenv().Arctic.AimAssist.Shake.Strength,
  558.                         getgenv().Arctic.AimAssist.Shake.Strength), math.random(
  559.                         -getgenv().Arctic.AimAssist.Shake.Strength,
  560.                         getgenv().Arctic.AimAssist.Shake.Strength)) * 0.1)
  561.             Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Arctic.AimAssist.Smoothness / 2,
  562.                 Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  563.         else
  564.             local Main =
  565.                 CFrame.new(Camera.CFrame.p, AimAssistTarget.Character[getgenv().Arctic.AimAssist.Aimpart].Position)
  566.             Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().Arctic.AimAssist.Smoothness / 2,
  567.                 Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  568.         end
  569.     end
  570.     if Script.Functions.getEquippedWeaponName() ~= nil then
  571.         local WeaponSettings = getgenv().Extra[Script.Functions.getEquippedWeaponName()]
  572.         if WeaponSettings ~= nil and getgenv().Arctic.GunFOV.Enabled == true then
  573.             getgenv().Arctic.FOV.SilentAim.FOV = WeaponSettings.FOV
  574.         else
  575.             getgenv().Arctic.FOV.SilentAim.FOV = getgenv().Arctic.FOV.SilentAim.FOV
  576.         end
  577.     end
  578.      if getgenv().Arctic.RangeManagement.Enabled and getgenv().Arctic.RangeManagement.Type == "Both" and Client ~= nil and
  579.         (Client.Character) and SilentAimTarget and SilentAimTarget.Character then
  580.         if (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  581.             getgenv().Arctic.RangeManagement.Close.CloseDetection then
  582.             getgenv().Arctic.FOV.SilentAim.FOV = getgenv().Arctic.RangeManagement.Close.CloseFOV
  583.             getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.RangeManagement.Close.ClosePrediction
  584.  
  585.         elseif (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  586.             getgenv().Arctic.RangeManagement.Mid.MidDetection then
  587.             getgenv().Arctic.FOV.SilentAim.FOV = getgenv().Arctic.RangeManagement.Mid.MidFOV
  588.             getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.RangeManagement.Mid.MidPrediction
  589.  
  590.         elseif (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  591.             getgenv().Arctic.RangeManagement.Far.FarDetection then
  592.             getgenv().Arctic.FOV.SilentAim.FOV = getgenv().Arctic.RangeManagement.Far.FarFOV
  593.             getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.RangeManagement.Far.FarPrediction
  594.  
  595.         elseif (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  596.             getgenv().Arctic.RangeManagement.ReallyFar.ReallyFarDetection then
  597.             getgenv().Arctic.FOV.SilentAim.FOV = getgenv().Arctic.RangeManagement.ReallyFar.ReallyFarFOV
  598.             getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.RangeManagement.ReallyFar.ReallyFarPrediction
  599.  
  600.         end
  601.     end
  602.     if getgenv().Arctic.RangeManagement.Enabled and getgenv().Arctic.RangeManagement.Type == "Prediction" and Client ~= nil and
  603.         (Client.Character) and SilentAimTarget and SilentAimTarget.Character then
  604.         if (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  605.             getgenv().Arctic.RangeManagement.Close.CloseDetection then
  606.             getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.RangeManagement.Close.ClosePrediction
  607.  
  608.         elseif (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  609.             getgenv().Arctic.RangeManagement.Mid.MidDetection then
  610.             getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.RangeManagement.Mid.MidPrediction
  611.  
  612.         elseif (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  613.             getgenv().Arctic.RangeManagement.Far.FarDetection then
  614.             getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.RangeManagement.Far.FarPrediction
  615.  
  616.         elseif (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  617.             getgenv().Arctic.RangeManagement.ReallyFar.ReallyFarDetection then
  618.             getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.RangeManagement.ReallyFar.ReallyFarPrediction
  619.  
  620.         end
  621.     end
  622.     if getgenv().Arctic.RangeManagement.Enabled and getgenv().Arctic.RangeManagement.Type == "FOV" and Client ~= nil and
  623.         (Client.Character) and SilentAimTarget and SilentAimTarget.Character then
  624.         if (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  625.             getgenv().Arctic.RangeManagement.Close.CloseDetection then
  626.             getgenv().Arctic.FOV.SilentAim.FOV = getgenv().Arctic.RangeManagement.Close.CloseFOV
  627.  
  628.         elseif (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  629.             getgenv().Arctic.RangeManagement.Mid.MidDetection then
  630.             getgenv().Arctic.FOV.SilentAim.FOV = getgenv().Arctic.RangeManagement.Mid.MidFOV
  631.  
  632.         elseif (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  633.             getgenv().Arctic.RangeManagement.Far.FarDetection then
  634.             getgenv().Arctic.FOV.SilentAim.FOV = getgenv().Arctic.RangeManagement.Far.FarFOV
  635.  
  636.         elseif (Client.Character.HumanoidRootPart.Position - SilentAimTarget.Character.HumanoidRootPart.Position).Magnitude <
  637.             getgenv().Arctic.RangeManagement.ReallyFar.ReallyFarDetection then
  638.             getgenv().Arctic.FOV.SilentAim.FOV = getgenv().Arctic.RangeManagement.ReallyFar.ReallyFarFOV
  639.  
  640.         end
  641.     end
  642. end)
  643. if getgenv().Arctic.Customize.HitChance.Enabled then
  644.     if SilentAimTarget.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  645.         getgenv().Arctic.SilentAim.HitChance = getgenv().Arctic.Customize.HitChance.AirHitChance
  646.     else
  647.         getgenv().Arctic.SilentAim.HitChance = getgenv().Arctic.Customize.HitChance.GroundHitChance
  648.     end
  649. end
  650. if getgenv().Arctic.Customize.Prediction.Enabled then
  651.     if SilentAimTarget.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  652.         getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.Customize.Prediction.AirPrediction
  653.     else
  654.         getgenv().Arctic.SilentAim.Prediction = getgenv().Arctic.Customize.Prediction.GroundPrediction
  655.     end
  656. end
  657. if getgenv().Arctic.Customize.Smoothness.Enabled then
  658.     if AimAssistTarget.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  659.         getgenv().Arctic.AimAssist.Smoothness = getgenv().Arctic.Customize.Smoothness.AirSmoothness
  660.     else
  661.         getgenv().Arctic.AimAssist.Smoothness = getgenv().Arctic.Customize.Smoothness.GroundSmoothness
  662.     end
  663. end
  664. if getgenv().Arctic.Customize.Shake.Enabled then
  665.     if AimAssistTarget.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  666.         getgenv().Arctic.AimAssist.Shake.Strength = getgenv().Arctic.Customize.Shake.AirShake
  667.     else
  668.         getgenv().Arctic.AimAssist.Shake.Strength = getgenv().Arctic.Customize.Shake.GroundShake
  669.     end
  670. end
  671. Client.Chatted:Connect(function(message)
  672.     if getgenv().Arctic.Chat.Enabled then
  673.         local args = string.split(message, " ")
  674.         if args[1] == getgenv().Arctic.Chat.FOV and args[2] ~= nil then
  675.             getgenv().Arctic.FOV.SilentAim.FOV = tonumber(args[2])
  676.         end
  677.     end
  678.     if getgenv().Arctic.Chat.Enabled then
  679.         local args = string.split(message, " ")
  680.         if args[1] == getgenv().Arctic.Chat.Prediction and args[2] ~= nil then
  681.             getgenv().Arctic.SilentAim.Prediction = tonumber(args[2])
  682.         end
  683.     end
  684.     if getgenv().Arctic.Chat.Enabled then
  685.         local args = string.split(message, " ")
  686.         if args[1] == getgenv().Arctic.Chat.HitChance and args[2] ~= nil then
  687.             getgenv().Arctic.SilentAim.HitChance = tonumber(args[2])
  688.         end
  689.     end
  690. end)
Add Comment
Please, Sign In to add comment