Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // thank shquals (CHRISTIAN#1770) for this leak
- -- // under is a anti aim viewer script
- loadstring(game:HttpGet("https://raw.githubusercontent.com/Nosssa/NossLock/main/AntiAimViewer"))()
- local Aiming = loadstring(game:HttpGet("https://pastebin.com/raw/QVHZsmWc"))()
- Aiming.TeamCheck(false)
- local Workspace = game:GetService("Workspace")
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local LocalPlayer = Players.LocalPlayer
- local Mouse = LocalPlayer:GetMouse()
- local CurrentCamera = Workspace.CurrentCamera
- getgenv().DaHoodSettings = {
- SilentAim = true,
- AimLock = false,
- Prediction = 0.11243,
- AimLockKeybind = Enum.KeyCode.E,
- AUTO_PREDICTION = true
- }
- getgenv().DaHoodSettings = DaHoodSettings
- function Aiming.Check()
- if not (Aiming.Enabled == true and Aiming.Selected ~= LocalPlayer and Aiming.SelectedPart ~= nil) then
- return false
- end
- local Character = Aiming.Character(Aiming.Selected)
- local KOd = Character:WaitForChild("BodyEffects")["K.O"].Value
- local Grabbed = Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
- if (KOd or Grabbed) then
- return false
- end
- return true
- end
- local __index
- __index = hookmetamethod(game, "__index", function(t, k)
- if (t:IsA("Mouse") and (k == "Hit" or k == "Target") and Aiming.Check()) then
- local SelectedPart = Aiming.SelectedPart
- if (DaHoodSettings.SilentAim and (k == "Hit" or k == "Target")) then
- local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
- return (k == "Hit" and Hit or SelectedPart)
- end
- end
- return __index(t, k)
- end)
- RunService:BindToRenderStep("AimLock", 0, function()
- if (DaHoodSettings.AimLock and Aiming.Check() and UserInputService:IsKeyDown(DaHoodSettings.AimLockKeybind)) then
- local SelectedPart = Aiming.SelectedPart
- local Hit = SelectedPart.CFrame + (SelectedPart.Velocity * DaHoodSettings.Prediction)
- CurrentCamera.CFrame = CFrame.lookAt(CurrentCamera.CFrame.Position, Hit.Position)
- end
- end)
- if getgenv().DaHoodSettings.AUTO_PREDICTION == true then
- pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
- split = string.split(pingvalue,'(')
- ping = tonumber(split[1])
- if ping < 360 then
- getgenv().DaHoodSettings.Prediction = 0.16537
- elseif ping < 270 then
- getgenv().DaHoodSettings.Prediction = 0.195566
- elseif ping < 260 then
- getgenv().DaHoodSettings.Prediction = 0.175566
- elseif ping < 250 then
- getgenv().DaHoodSettings.Prediction = 0.1651
- elseif ping < 240 then
- getgenv().DaHoodSettings.Prediction = 0.16780
- elseif ping < 230 then
- getgenv().DaHoodSettings.Prediction = 0.15692
- elseif ping < 220 then
- getgenv().DaHoodSettings.Prediction = 0.165566
- elseif ping < 210 then
- getgenv().DaHoodSettings.Prediction = 0.16780
- elseif ping < 200 then
- getgenv().DaHoodSettings.Prediction = 0.165566
- elseif ping < 190 then
- getgenv().DaHoodSettings.Prediction = 0.166547
- elseif ping < 180 then
- getgenv().DaHoodSettings.Prediction = 0.19284
- elseif ping < 170 then
- getgenv().DaHoodSettings.Prediction = 0.1923111
- elseif ping < 160 then
- getgenv().DaHoodSettings.Prediction = 0.16
- elseif ping < 150 then
- getgenv().DaHoodSettings.Prediction = 0.15
- elseif ping < 140 then
- getgenv().DaHoodSettings.Prediction = 0.1223333
- elseif ping < 130 then
- getgenv().DaHoodSettings.Prediction = 0.156692
- elseif ping < 120 then
- getgenv().DaHoodSettings.Prediction = 0.143765
- elseif ping < 110 then
- getgenv().DaHoodSettings.Prediction = 0.1455
- elseif ping < 100 then
- getgenv().DaHoodSettings.Prediction = 0.130340
- elseif ping < 90 then
- getgenv().DaHoodSettings.Prediction = 0.136
- elseif ping < 80 then
- getgenv().DaHoodSettings.Prediction = 0.1347
- elseif ping < 70 then
- getgenv().DaHoodSettings.Prediction = 0.119
- elseif ping < 60 then
- getgenv().DaHoodSettings.Prediction = 0.12731
- elseif ping < 50 then
- getgenv().DaHoodSettings.Prediction = 0.127668
- elseif ping < 40 then
- getgenv().DaHoodSettings.Prediction = 0.125
- elseif ping < 30 then
- getgenv().DaHoodSettings.Prediction = 0.11
- elseif ping < 20 then
- getgenv().DaHoodSettings.Prediction = 0.12588
- elseif ping < 10 then
- getgenv().DaHoodSettings.Prediction = 0.9
- end
- end
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- mouse.KeyDown:Connect(function(key)
- if key == "]" then
- if DaHoodSettings.SilentAim == false then
- DaHoodSettings.SilentAim = true
- else
- DaHoodSettings.SilentAim = false
- end
- end
- end)
- wait(2)
- loadstring(game:HttpGet("https://raw.githubusercontent.com/cotton12moneypooppee12/popopmonkey/main/useless"))()
- wait(2)
- loadstring(game:HttpGet("https://raw.githubusercontent.com/cotton12moneypooppee12/re/main/rea"))()
- getgenv().OldAimPart = "UpperTorso"
- getgenv().AimPart = "Head" -- For R15 Games: {UpperTorso, LowerTorso, HumanoidRootPart, Head} | For R6 Games: {Head, Torso, HumanoidRootPart}
- getgenv().AimlockKey = "x"
- getgenv().AimRadius = 30 -- How far away from someones character you want to lock on at
- getgenv().ThirdPerson = true
- getgenv().FirstPerson = true
- 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)
- 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
- getgenv().PredictionVelocity = 8.32
- getgenv().CheckIfJumped = true
- getgenv().Smoothness = true
- getgenv().SmoothnessAmount = 0.0429
- local Players, Uis, RService, SGui = game:GetService"Players", game:GetService"UserInputService", game:GetService"RunService", game:GetService"StarterGui";
- local Client, Mouse, Camera, CF, RNew, Vec3, Vec2 = Players.LocalPlayer, Players.LocalPlayer:GetMouse(), workspace.CurrentCamera, CFrame.new, Ray.new, Vector3.new, Vector2.new;
- local Aimlock, MousePressed, CanNotify = true, false, false;
- local AimlockTarget;
- local OldPre;
- getgenv().WorldToViewportPoint = function(P)
- return Camera:WorldToViewportPoint(P)
- end
- getgenv().WorldToScreenPoint = function(P)
- return Camera.WorldToScreenPoint(Camera, P)
- end
- getgenv().GetObscuringObjects = function(T)
- if T and T:FindFirstChild(getgenv().AimPart) and Client and Client.Character:FindFirstChild("Head") then
- local RayPos = workspace:FindPartOnRay(RNew(
- T[getgenv().AimPart].Position, Client.Character.Head.Position)
- )
- if RayPos then return RayPos:IsDescendantOf(T) end
- end
- end
- getgenv().GetNearestTarget = function()
- -- Credits to whoever made this, i didnt make it, and my own mouse2plr function kinda sucks
- local players = {}
- local PLAYER_HOLD = {}
- local DISTANCES = {}
- for i, v in pairs(Players:GetPlayers()) do
- if v ~= Client then
- table.insert(players, v)
- end
- end
- for i, v in pairs(players) do
- if v.Character ~= nil then
- local AIM = v.Character:FindFirstChild("Head")
- if getgenv().TeamCheck == true and v.Team ~= Client.Team then
- local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
- local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
- local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
- local DIFF = math.floor((POS - AIM.Position).magnitude)
- PLAYER_HOLD[v.Name .. i] = {}
- PLAYER_HOLD[v.Name .. i].dist= DISTANCE
- PLAYER_HOLD[v.Name .. i].plr = v
- PLAYER_HOLD[v.Name .. i].diff = DIFF
- table.insert(DISTANCES, DIFF)
- elseif getgenv().TeamCheck == false and v.Team == Client.Team then
- local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
- local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
- local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
- local DIFF = math.floor((POS - AIM.Position).magnitude)
- PLAYER_HOLD[v.Name .. i] = {}
- PLAYER_HOLD[v.Name .. i].dist= DISTANCE
- PLAYER_HOLD[v.Name .. i].plr = v
- PLAYER_HOLD[v.Name .. i].diff = DIFF
- table.insert(DISTANCES, DIFF)
- end
- end
- end
- if unpack(DISTANCES) == nil then
- return nil
- end
- local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
- if L_DISTANCE > getgenv().AimRadius then
- return nil
- end
- for i, v in pairs(PLAYER_HOLD) do
- if v.diff == L_DISTANCE then
- return v.plr
- end
- end
- return nil
- end
- Mouse.KeyDown:Connect(function(a)
- if not (Uis:GetFocusedTextBox()) then
- if a == AimlockKey and AimlockTarget == nil then
- pcall(function()
- if MousePressed ~= true then MousePressed = true end
- local Target;Target = GetNearestTarget()
- if Target ~= nil then
- AimlockTarget = Target
- end
- end)
- elseif a == AimlockKey and AimlockTarget ~= nil then
- if AimlockTarget ~= nil then AimlockTarget = nil end
- if MousePressed ~= false then
- MousePressed = false
- end
- end
- end
- end)
- RService.RenderStepped:Connect(function()
- if getgenv().ThirdPerson == true and getgenv().FirstPerson == true then
- if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 or (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
- CanNotify = true
- else
- CanNotify = false
- end
- elseif getgenv().ThirdPerson == true and getgenv().FirstPerson == false then
- if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 then
- CanNotify = true
- else
- CanNotify = false
- end
- elseif getgenv().ThirdPerson == false and getgenv().FirstPerson == true then
- if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
- CanNotify = true
- else
- CanNotify = false
- end
- end
- if Aimlock == true and MousePressed == true then
- if AimlockTarget and AimlockTarget.Character and AimlockTarget.Character:FindFirstChild(getgenv().AimPart) then
- if getgenv().FirstPerson == true then
- if CanNotify == true then
- if getgenv().PredictMovement == true then
- if getgenv().Smoothness == true then
- --// The part we're going to lerp/smoothen \\--
- local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
- --// Making it work \\--
- Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
- else
- Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
- end
- elseif getgenv().PredictMovement == false then
- if getgenv().Smoothness == true then
- --// The part we're going to lerp/smoothen \\--
- local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
- --// Making it work \\--
- Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
- else
- Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
- end
- end
- end
- end
- end
- end
- if CheckIfJumped == true then
- if AimlockTarget.Character.HuDDDDDDDDDDWmanoid.FloorMaterial == Enum.Material.Air then
- getgenv().AimPart = "UpperTorso"
- else
- getgenv().AimPart = getgenv().OldAimPart
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement