Ritual_x

BEST DH LOCK FOR ALL PINGS (PASTEBIN!)

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