Advertisement
Iza__

ee

Dec 20th, 2022 (edited)
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.84 KB | None | 0 0
  1. -- // thank shquals (CHRISTIAN#1770) for this leak
  2. -- // under is a anti aim viewer script
  3. loadstring(game:HttpGet("https://raw.githubusercontent.com/Nosssa/NossLock/main/AntiAimViewer"))()
  4.  
  5. local Aiming = loadstring(game:HttpGet("https://pastebin.com/raw/QVHZsmWc"))()
  6. Aiming.TeamCheck(false)
  7.  
  8. local Workspace = game:GetService("Workspace")
  9. local Players = game:GetService("Players")
  10. local RunService = game:GetService("RunService")
  11. local UserInputService = game:GetService("UserInputService")
  12.  
  13. local LocalPlayer = Players.LocalPlayer
  14. local Mouse = LocalPlayer:GetMouse()
  15. local CurrentCamera = Workspace.CurrentCamera
  16.  
  17. getgenv().DaHoodSettings = {
  18. SilentAim = true,
  19. AimLock = false,
  20. Prediction = 0.11243,
  21. AimLockKeybind = Enum.KeyCode.E,
  22. AUTO_PREDICTION = true
  23. }
  24. getgenv().DaHoodSettings = DaHoodSettings
  25.  
  26. function Aiming.Check()
  27. if not (Aiming.Enabled == true and Aiming.Selected ~= LocalPlayer and Aiming.SelectedPart ~= nil) then
  28. return false
  29. end
  30.  
  31. local Character = Aiming.Character(Aiming.Selected)
  32. local KOd = Character:WaitForChild("BodyEffects")["K.O"].Value
  33. local Grabbed = Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
  34.  
  35. if (KOd or Grabbed) then
  36. return false
  37. end
  38.  
  39. return true
  40. end
  41.  
  42. local __index
  43. __index = hookmetamethod(game, "__index", function(t, k)
  44. if (t:IsA("Mouse") and (k == "Hit" or k == "Target") and Aiming.Check()) then
  45. local SelectedPart = Aiming.SelectedPart
  46.  
  47. if (DaHoodSettings.SilentAim and (k == "Hit" or k == "Target")) then
  48. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  49.  
  50. return (k == "Hit" and Hit or SelectedPart)
  51. end
  52. end
  53.  
  54. return __index(t, k)
  55. end)
  56.  
  57.  
  58.  
  59.  
  60. RunService:BindToRenderStep("AimLock", 0, function()
  61. if (DaHoodSettings.AimLock and Aiming.Check() and UserInputService:IsKeyDown(DaHoodSettings.AimLockKeybind)) then
  62. local SelectedPart = Aiming.SelectedPart
  63.  
  64. local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
  65.  
  66. CurrentCamera.CFrame = CFrame.lookAt(CurrentCamera.CFrame.Position, Hit.Position)
  67. end
  68. end)
  69.  
  70.  
  71. if getgenv().DaHoodSettings.AUTO_PREDICTION == true then
  72. pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  73. split = string.split(pingvalue,'(')
  74. ping = tonumber(split[1])
  75. if ping < 360 then
  76. getgenv().DaHoodSettings.Prediction = 0.16537
  77. elseif ping < 270 then
  78. getgenv().DaHoodSettings.Prediction = 0.195566
  79. elseif ping < 260 then
  80. getgenv().DaHoodSettings.Prediction = 0.175566
  81. elseif ping < 250 then
  82. getgenv().DaHoodSettings.Prediction = 0.1651
  83. elseif ping < 240 then
  84. getgenv().DaHoodSettings.Prediction = 0.16780
  85. elseif ping < 230 then
  86. getgenv().DaHoodSettings.Prediction = 0.15692
  87. elseif ping < 220 then
  88. getgenv().DaHoodSettings.Prediction = 0.165566
  89. elseif ping < 210 then
  90. getgenv().DaHoodSettings.Prediction = 0.16780
  91. elseif ping < 200 then
  92. getgenv().DaHoodSettings.Prediction = 0.165566
  93. elseif ping < 190 then
  94. getgenv().DaHoodSettings.Prediction = 0.166547
  95. elseif ping < 180 then
  96. getgenv().DaHoodSettings.Prediction = 0.19284
  97. elseif ping < 170 then
  98. getgenv().DaHoodSettings.Prediction = 0.1923111
  99. elseif ping < 160 then
  100. getgenv().DaHoodSettings.Prediction = 0.16
  101. elseif ping < 150 then
  102. getgenv().DaHoodSettings.Prediction = 0.15
  103. elseif ping < 140 then
  104. getgenv().DaHoodSettings.Prediction = 0.1223333
  105. elseif ping < 130 then
  106. getgenv().DaHoodSettings.Prediction = 0.156692
  107. elseif ping < 120 then
  108. getgenv().DaHoodSettings.Prediction = 0.143765
  109. elseif ping < 110 then
  110. getgenv().DaHoodSettings.Prediction = 0.1455
  111. elseif ping < 100 then
  112. getgenv().DaHoodSettings.Prediction = 0.130340
  113. elseif ping < 90 then
  114. getgenv().DaHoodSettings.Prediction = 0.136
  115. elseif ping < 80 then
  116. getgenv().DaHoodSettings.Prediction = 0.1347
  117. elseif ping < 70 then
  118. getgenv().DaHoodSettings.Prediction = 0.119
  119. elseif ping < 60 then
  120. getgenv().DaHoodSettings.Prediction = 0.12731
  121. elseif ping < 50 then
  122. getgenv().DaHoodSettings.Prediction = 0.127668
  123. elseif ping < 40 then
  124. getgenv().DaHoodSettings.Prediction = 0.125
  125. elseif ping < 30 then
  126. getgenv().DaHoodSettings.Prediction = 0.11
  127. elseif ping < 20 then
  128. getgenv().DaHoodSettings.Prediction = 0.12588
  129. elseif ping < 10 then
  130. getgenv().DaHoodSettings.Prediction = 0.9
  131. end
  132. end
  133. local player = game.Players.LocalPlayer
  134. local mouse = player:GetMouse()
  135. mouse.KeyDown:Connect(function(key)
  136.  
  137. if key == "]" then
  138.  
  139.  
  140.  
  141. if DaHoodSettings.SilentAim == false then
  142.  
  143. DaHoodSettings.SilentAim = true
  144.  
  145. else
  146.  
  147. DaHoodSettings.SilentAim = false
  148.  
  149. end
  150. end
  151. end)
  152.  
  153.  
  154. wait(2)
  155. loadstring(game:HttpGet("https://raw.githubusercontent.com/cotton12moneypooppee12/popopmonkey/main/useless"))()
  156. wait(2)
  157. loadstring(game:HttpGet("https://raw.githubusercontent.com/cotton12moneypooppee12/re/main/rea"))()
  158.  
  159.  
  160. getgenv().OldAimPart = "UpperTorso"
  161. getgenv().AimPart = "Head" -- For R15 Games: {UpperTorso, LowerTorso, HumanoidRootPart, Head} | For R6 Games: {Head, Torso, HumanoidRootPart}
  162. getgenv().AimlockKey = "x"
  163. getgenv().AimRadius = 30 -- How far away from someones character you want to lock on at
  164. getgenv().ThirdPerson = true
  165. getgenv().FirstPerson = true
  166. getgenv().TeamCheck = false -- Check if Target is on your Team (True means it wont lock onto your teamates, false is vice versa) (Set it to false if there are no teams)
  167. getgenv().PredictMovement = true -- Predicts if they are moving in fast velocity (like jumping) so the aimbot will go a bit faster to match their speed
  168. getgenv().PredictionVelocity = 8.32
  169. getgenv().CheckIfJumped = true
  170. getgenv().Smoothness = true
  171. getgenv().SmoothnessAmount = 0.0429
  172. local Players, Uis, RService, SGui = game:GetService"Players", game:GetService"UserInputService", game:GetService"RunService", game:GetService"StarterGui";
  173. local Client, Mouse, Camera, CF, RNew, Vec3, Vec2 = Players.LocalPlayer, Players.LocalPlayer:GetMouse(), workspace.CurrentCamera, CFrame.new, Ray.new, Vector3.new, Vector2.new;
  174. local Aimlock, MousePressed, CanNotify = true, false, false;
  175. local AimlockTarget;
  176. local OldPre;
  177.  
  178.  
  179.  
  180. getgenv().WorldToViewportPoint = function(P)
  181. return Camera:WorldToViewportPoint(P)
  182. end
  183.  
  184. getgenv().WorldToScreenPoint = function(P)
  185. return Camera.WorldToScreenPoint(Camera, P)
  186. end
  187.  
  188. getgenv().GetObscuringObjects = function(T)
  189. if T and T:FindFirstChild(getgenv().AimPart) and Client and Client.Character:FindFirstChild("Head") then
  190. local RayPos = workspace:FindPartOnRay(RNew(
  191. T[getgenv().AimPart].Position, Client.Character.Head.Position)
  192. )
  193. if RayPos then return RayPos:IsDescendantOf(T) end
  194. end
  195. end
  196.  
  197.  
  198.  
  199.  
  200. getgenv().GetNearestTarget = function()
  201. -- Credits to whoever made this, i didnt make it, and my own mouse2plr function kinda sucks
  202. local players = {}
  203. local PLAYER_HOLD = {}
  204. local DISTANCES = {}
  205. for i, v in pairs(Players:GetPlayers()) do
  206. if v ~= Client then
  207. table.insert(players, v)
  208. end
  209. end
  210. for i, v in pairs(players) do
  211. if v.Character ~= nil then
  212. local AIM = v.Character:FindFirstChild("Head")
  213. if getgenv().TeamCheck == true and v.Team ~= Client.Team then
  214. local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
  215. local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
  216. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  217. local DIFF = math.floor((POS - AIM.Position).magnitude)
  218. PLAYER_HOLD[v.Name .. i] = {}
  219. PLAYER_HOLD[v.Name .. i].dist= DISTANCE
  220. PLAYER_HOLD[v.Name .. i].plr = v
  221. PLAYER_HOLD[v.Name .. i].diff = DIFF
  222. table.insert(DISTANCES, DIFF)
  223. elseif getgenv().TeamCheck == false and v.Team == Client.Team then
  224. local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
  225. local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
  226. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  227. local DIFF = math.floor((POS - AIM.Position).magnitude)
  228. PLAYER_HOLD[v.Name .. i] = {}
  229. PLAYER_HOLD[v.Name .. i].dist= DISTANCE
  230. PLAYER_HOLD[v.Name .. i].plr = v
  231. PLAYER_HOLD[v.Name .. i].diff = DIFF
  232. table.insert(DISTANCES, DIFF)
  233. end
  234. end
  235. end
  236.  
  237. if unpack(DISTANCES) == nil then
  238. return nil
  239. end
  240.  
  241. local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  242. if L_DISTANCE > getgenv().AimRadius then
  243. return nil
  244. end
  245.  
  246. for i, v in pairs(PLAYER_HOLD) do
  247. if v.diff == L_DISTANCE then
  248. return v.plr
  249. end
  250. end
  251. return nil
  252. end
  253.  
  254. Mouse.KeyDown:Connect(function(a)
  255. if not (Uis:GetFocusedTextBox()) then
  256. if a == AimlockKey and AimlockTarget == nil then
  257. pcall(function()
  258. if MousePressed ~= true then MousePressed = true end
  259. local Target;Target = GetNearestTarget()
  260. if Target ~= nil then
  261. AimlockTarget = Target
  262. end
  263. end)
  264. elseif a == AimlockKey and AimlockTarget ~= nil then
  265. if AimlockTarget ~= nil then AimlockTarget = nil end
  266. if MousePressed ~= false then
  267. MousePressed = false
  268. end
  269. end
  270. end
  271. end)
  272.  
  273. RService.RenderStepped:Connect(function()
  274. if getgenv().ThirdPerson == true and getgenv().FirstPerson == true then
  275. if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 or (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
  276. CanNotify = true
  277. else
  278. CanNotify = false
  279. end
  280. elseif getgenv().ThirdPerson == true and getgenv().FirstPerson == false then
  281. if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 then
  282. CanNotify = true
  283. else
  284. CanNotify = false
  285. end
  286. elseif getgenv().ThirdPerson == false and getgenv().FirstPerson == true then
  287. if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
  288. CanNotify = true
  289. else
  290. CanNotify = false
  291. end
  292. end
  293. if Aimlock == true and MousePressed == true then
  294. if AimlockTarget and AimlockTarget.Character and AimlockTarget.Character:FindFirstChild(getgenv().AimPart) then
  295. if getgenv().FirstPerson == true then
  296. if CanNotify == true then
  297. if getgenv().PredictMovement == true then
  298. if getgenv().Smoothness == true then
  299. --// The part we're going to lerp/smoothen \\--
  300. local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
  301.  
  302. --// Making it work \\--
  303. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
  304. else
  305. Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
  306. end
  307. elseif getgenv().PredictMovement == false then
  308. if getgenv().Smoothness == true then
  309. --// The part we're going to lerp/smoothen \\--
  310. local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
  311.  
  312. --// Making it work \\--
  313. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
  314. else
  315. Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
  316. end
  317. end
  318. end
  319. end
  320. end
  321. end
  322. if CheckIfJumped == true then
  323. if AimlockTarget.Character.HuDDDDDDDDDDWmanoid.FloorMaterial == Enum.Material.Air then
  324.  
  325. getgenv().AimPart = "UpperTorso"
  326. else
  327. getgenv().AimPart = getgenv().OldAimPart
  328.  
  329. end
  330. end
  331. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement