Advertisement
Ritual_x

DA HOOD CUSTOMIZABLE AIMLOCK (SILENT AIMBOT) *PASTEBIN*

Feb 20th, 2023
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. local CC = game:GetService'Workspace'.CurrentCamera
  2. local Plr
  3. local enabled = false
  4. local accomidationfactor = 0.1324
  5. local mouse = game.Players.LocalPlayer:GetMouse()
  6. local placemarker = Instance.new("Part", game.Workspace)
  7. local guimain = Instance.new("Folder", game.CoreGui)
  8.  
  9. function makemarker(Parent, Adornee, Color, Size, Size2)
  10. local e = Instance.new("BillboardGui", Parent)
  11. e.Name = "PP"
  12. e.Adornee = Adornee
  13. e.Size = UDim2.new(Size, Size2, Size, Size2)
  14. e.AlwaysOnTop = true
  15. local a = Instance.new("Frame", e)
  16. a.Size = UDim2.new(1, 0, 1, 0)
  17. a.BackgroundTransparency = 0.4
  18. a.BackgroundColor3 = Color
  19. local g = Instance.new("UICorner", a)
  20. g.CornerRadius = UDim.new(30, 30)
  21. return(e)
  22. end
  23.  
  24. local data = game.Players:GetPlayers()
  25. function noob(player)
  26. local character
  27. repeat wait() until player.Character
  28. local handler = makemarker(guimain, player.Character:WaitForChild("LowerTorso"), Color3.fromRGB(0, 76, 153), 0.0, 0)
  29. handler.Name = player.Name
  30. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild("LowerTorso") end)
  31.  
  32. local TextLabel = Instance.new("TextLabel", handler)
  33. TextLabel.BackgroundTransparency = 1
  34. TextLabel.Position = UDim2.new(0, 0, 0, -50)
  35. TextLabel.Size = UDim2.new(0, 100, 0, 100)
  36. TextLabel.Font = Enum.Font.SourceSansSemibold
  37. TextLabel.TextSize = 14
  38. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  39. TextLabel.TextStrokeTransparency = 0
  40. TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
  41. TextLabel.Text = 'Name: '..player.Name
  42. TextLabel.ZIndex = 10
  43.  
  44. spawn(function()
  45. while wait() do
  46. if player.Character then
  47. --TextLabel.Text = player.Name.." | Bounty: "..tostring(player:WaitForChild("leaderstats").Wanted.Value).." | "..tostring(math.floor(player.Character:WaitForChild("Humanoid").Health))
  48. end
  49. end
  50. end)
  51. end
  52.  
  53. for i = 1, #data do
  54. if data[i] ~= game.Players.LocalPlayer then
  55. noob(data[i])
  56. end
  57. end
  58.  
  59. game.Players.PlayerAdded:connect(function(Player)
  60. noob(Player)
  61. end)
  62.  
  63. game.Players.PlayerRemoving:Connect(function(player)
  64. guimain[player.Name]:Destroy()
  65. end)
  66.  
  67. spawn(function()
  68. placemarker.Anchored = true
  69. placemarker.CanCollide = false
  70. placemarker.Size = Vector3.new(0.1, 0.1, 0.1)
  71. placemarker.Transparency = 10
  72. makemarker(placemarker, placemarker, Color3.fromRGB(0, 0, 0), 0.55, 0)
  73. end)
  74.  
  75. mouse.KeyDown:Connect(function(k)
  76. if k ~= "q" then return end
  77. if enabled then
  78. enabled = false
  79. -- guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  80. else
  81. enabled = true
  82. Plr = getClosestPlayerToCursor()
  83. --guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  84. end
  85. end)
  86.  
  87. function getClosestPlayerToCursor()
  88. local closestPlayer
  89. local shortestDistance = math.huge
  90.  
  91. for i, v in pairs(game.Players:GetPlayers()) do
  92. if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("Head") then
  93. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  94. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  95. if magnitude < shortestDistance then
  96. closestPlayer = v
  97. shortestDistance = magnitude
  98. end
  99. end
  100. end
  101. return closestPlayer
  102. end
  103.  
  104. game:GetService"RunService".Stepped:connect(function()
  105. if enabled and Plr.Character and Plr.Character:FindFirstChild("HumanoidRootPart") then
  106. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  107. else
  108. placemarker.CFrame = CFrame.new(0, 9999, 0)
  109. end
  110. end)
  111.  
  112. local mt = getrawmetatable(game)
  113. local old = mt.__namecall
  114. setreadonly(mt, false)
  115. mt.__namecall = newcclosure(function(...)
  116. local args = {...}
  117. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  118. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  119. return old(unpack(args))
  120. end
  121. return old(...)
  122. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement