Advertisement
pr0xity_INC

DAHOOD AIMLOCK

Jul 5th, 2022
3,329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.89 KB | None | 0 0
  1. --[[
  2.  
  3.  
  4. ▀███▀▀▀██████▀ ▀███▀███▄ ▀███▀███▀ ▀██▀▀███▀▀▀██▄▀███▀ ▀██▀
  5. ██ ▀███ █ ███▄ █ ███▄ ▄█ ██ ▀██▄ ███ ▄█
  6. ██ █ ██ █ █ ███ █ ▀██▄█▀ ██ ▄██ ███ ▄█
  7. ██▀▀██ ██ █ █ ▀██▄ █ ███ ███████ ████
  8. ██ █ ██ █ █ ▀██▄█ ▄█▀▀██▄ ██ ██
  9. ██ ██▄ ▄█ █ ███ ▄█ ▀██▄ ██ ██
  10. ▄████▄ ▀██████▀▀ ▄███▄ ██ ▄██▄▄ ▄▄███▄████▄ ▄████▄
  11.  
  12.  
  13.  
  14.  
  15. ]]
  16. -- Toggle
  17. getgenv().Target = true
  18.  
  19. -- Configuration
  20. getgenv().Key = Enum.KeyCode.Q
  21. getgenv().Prediction = 0.178
  22. getgenv().ChatMode = false
  23. getgenv().NotifMode = true
  24. getgenv().PartMode = true
  25. getgenv().AirshotFunccc = false
  26. getgenv().Partz = "Head"
  27. getgenv().AutoPrediction = true
  28. getgenv().Fov = 100
  29. getgenv().Circle = true
  30. --
  31. _G.Types = {
  32. Ball = Enum.PartType.Ball,
  33. Block = Enum.PartType.Block,
  34. Cylinder = Enum.PartType.Cylinder
  35. }
  36.  
  37. --variables
  38. local Tracer = Instance.new("Part", game.Workspace)
  39. Tracer.Name = "gay"
  40. Tracer.Anchored = true
  41. Tracer.CanCollide = false
  42. Tracer.Transparency = 0.3
  43. Tracer.Parent = game.Workspace
  44. Tracer.Shape = _G.Types.Block
  45. Tracer.Size = Vector3.new(1,1,1)
  46. Tracer.Color = Color3.fromRGB(192,192,192)
  47.  
  48. --
  49. local plr = game.Players.LocalPlayer
  50. local mouse = plr:GetMouse()
  51. local Runserv = game:GetService("RunService")
  52.  
  53. circle = Drawing.new("Circle")
  54. circle.Color = Color3.fromRGB(192,192,192)
  55. circle.Thickness = 0
  56. circle.NumSides = 732
  57. circle.Radius = getgenv().Fov
  58. circle.Thickness = 0
  59. circle.Transparency = 0
  60. circle.Visible = getgenv().Circle
  61. circle.Filled = false
  62.  
  63. Runserv.RenderStepped:Connect(function()
  64. circle.Position = Vector2.new(mouse.X,mouse.Y+35)
  65. if getgenv().AirshotFunccc == true then
  66. if Plr ~= nil then else return; end
  67. if Plr.Character.Humanoid.Jump == true and Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  68. getgenv().Partz = "RightFoot"
  69. else
  70. Plr.Character:WaitForChild("Humanoid").StateChanged:Connect(function(old,new)
  71. if new == Enum.HumanoidStateType.Freefall then
  72. getgenv().Partz = "RightFoot"
  73. else
  74. getgenv().Partz = "HumanoidRootPart"
  75. end
  76. end)
  77. end
  78. end
  79. end)
  80.  
  81. local guimain = Instance.new("Folder", game.CoreGui)
  82. local CC = game:GetService"Workspace".CurrentCamera
  83. local LocalMouse = game.Players.LocalPlayer:GetMouse()
  84. local Locking = false
  85.  
  86.  
  87. --
  88. if getgenv().valiansh == true then
  89. game.StarterGui:SetCore("SendNotification", {
  90. Title = "funxpyware.cc",
  91. Text = "Already Loaded!",
  92. Duration = 5
  93.  
  94. })
  95. return
  96. end
  97.  
  98. getgenv().valiansh = true
  99.  
  100. local UserInputService = game:GetService("UserInputService")
  101.  
  102. UserInputService.InputBegan:Connect(function(keygo,ok)
  103. if (not ok) then
  104. if (keygo.KeyCode == getgenv().Key) then
  105. if getgenv().Target == true then
  106. Locking = not Locking
  107.  
  108. if Locking then
  109. Plr = getClosestPlayerToCursor()
  110. if getgenv().ChatMode then
  111. local A_1 = "Target: "..tostring(Plr.Character.Humanoid.DisplayName) local A_2 = "All" local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest Event:FireServer(A_1, A_2)
  112. end
  113. if getgenv().NotifMode then
  114. game.StarterGui:SetCore("SendNotification", {
  115. Title = "funxpyware.cc";
  116. Text = "Target: "..tostring(Plr.Character.Humanoid.DisplayName);
  117.  
  118. })
  119. end
  120. elseif not Locking then
  121. if getgenv().ChatMode then
  122. local A_1 = "Unlocked!" local A_2 = "All" local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest Event:FireServer(A_1, A_2)
  123. end
  124. if getgenv().NotifMode then
  125. game.StarterGui:SetCore("SendNotification", {
  126. Title = "funxpyware.cc",
  127. Text = "Unlocked",
  128. Duration = 5
  129. })
  130. elseif getgenv().Target == false then
  131. game.StarterGui:SetCore("SendNotification", {
  132. Title = "",
  133. Text = "Target left or died.",
  134. Duration = 5
  135.  
  136. })
  137.  
  138. end
  139.  
  140.  
  141. end end
  142. end
  143. end
  144. end)
  145.  
  146. function getClosestPlayerToCursor()
  147. local closestPlayer
  148. local shortestDistance = circle.Radius
  149.  
  150. for i, v in pairs(game.Players:GetPlayers()) do
  151. if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("LowerTorso") then
  152. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  153. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(LocalMouse.X, LocalMouse.Y)).magnitude
  154. if magnitude < shortestDistance then
  155. closestPlayer = v
  156. shortestDistance = magnitude
  157. end
  158. end
  159. end
  160. return closestPlayer
  161. end
  162. --
  163. if getgenv().PartMode then
  164. game:GetService"RunService".Stepped:connect(function()
  165. if Locking and Plr.Character and Plr.Character:FindFirstChild("LowerTorso") then
  166. Tracer.CFrame = CFrame.new(Plr.Character.LowerTorso.Position+(Plr.Character.LowerTorso.Velocity*Prediction))
  167. else
  168. Tracer.CFrame = CFrame.new(0, 9999, 0)
  169. end
  170. end)
  171. end
  172.  
  173.  
  174.  
  175. --
  176. local rawmetatable = getrawmetatable(game)
  177. local old = rawmetatable.__namecall
  178. setreadonly(rawmetatable, false)
  179. rawmetatable.__namecall = newcclosure(function(...)
  180. local args = {...}
  181. if Locking and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  182. args[3] = Plr.Character[getgenv().Partz].Position+(Plr.Character[getgenv().Partz].Velocity*Prediction)
  183. return old(unpack(args))
  184. end
  185. return old(...)
  186. end)
  187. ---
  188. while wait() do
  189. if getgenv().AutoPrediction == true then
  190. local pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  191. local split = string.split(pingvalue,'(')
  192. local ping = tonumber(split[1])
  193. if ping < 130 then
  194. getgenv().Prediction = 0.151
  195. elseif ping < 125 then
  196. getgenv().Prediction = 0.149
  197. elseif ping < 110 then
  198. getgenv().Prediction = 0.140
  199. elseif ping < 105 then
  200. getgenv().Prediction = 0.133
  201. elseif ping < 90 then
  202. getgenv().Prediction = 0.130
  203. elseif ping < 80 then
  204. getgenv().Prediction = 0.128
  205. elseif ping < 70 then
  206. getgenv().Prediction = 0.1230
  207. elseif ping < 60 then
  208. getgenv().Prediction = 0.1229
  209. elseif ping < 50 then
  210. getgenv().Prediction = 0.1225
  211. elseif ping < 40 then
  212. getgenv().Prediction = 0.1256
  213. end
  214. end
  215. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement