Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // script made by earth
- -- // script made by earth
- -- // script made by earth
- -- // script made by earth
- b = ("363?313?303?3033v3"):gsub('?', '.')
- q = ("3m3o3c3?3t3n3e3t3n3o3c3r3e3s3u3b3u3h3t3i3g3?3w3a3r3"):gsub('?', '.')
- n = ("]3e3t3a3v3i3r3P3=3s3=303d3a3z3r3a3f3]3d3a3z3r3a3f3x3]3"):gsub('=', '-')
- n = (n):gsub(']', '/')
- n = (n):gsub('0', '9999')
- z = ("3]3]3:3s3p3t3t3h3"):gsub(']', '/')
- c = ("]3n3i3a3m3"):gsub(']', '/')
- -- // script made by earth
- -- // script made by earth
- -- // script made by earth
- -- // script made by earth
- wait(12)
- --earth
- loadstring(game:HttpGet("https://pastebin.com/raw/9hQFaAZy", true))()
- --earth
- getgenv().OldAimPart = "UpperTorso"
- getgenv().AimPart = "UpperTorso"
- getgenv().AimlockKey = "q"
- getgenv().AimRadius = 13
- getgenv().ThirdPerson = true
- getgenv().FirstPerson = true
- getgenv().TeamCheck = false
- getgenv().PredictMovement = true
- getgenv().PredictionVelocity = 25
- getgenv().CheckIfJumped = true
- getgenv().Smoothness = true
- getgenv().SmoothnessAmount = 0.009
- 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()
- 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)
- local RunService = game:GetService("RunService")
- RunService.Heartbeat:Connect(function()
- pcall(function()
- for i,v in pairs(game.Players:GetChildren()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- local hrp = v.Character.HumanoidRootPart
- hrp.Velocity = Vector3.new(hrp.Velocity.X, 0, hrp.Velocity.Z)
- hrp.AssemblyLinearVelocity = Vector3.new(hrp.Velocity.X, 0, hrp.Velocity.Z)
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement