Facebook
From Name, 3 Days ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 33
  1. loadstring(game:HttpGet("https://raw.githubusercontent.com/RandomAdamYT/DarkHub/master/Init", true))()
  2.  
  3. local player = game:GetService("Players").LocalPlayer
  4. local mouse = player:GetMouse()
  5. local aimbotEnabled = false
  6.  
  7. local function toggleAimbot()
  8.     aimbotEnabled = not aimbotEnabled
  9. end
  10.  
  11. local function getClosestEnemy()
  12.     local enemies = {}
  13.     for i, v in pairs(game:GetService("Players"):GetPlayers()) do
  14.         if v.TeamColor ~= player.TeamColor and v.Character and v.Character:FindFirstChild("Head") then
  15.             table.insert(enemies, v.Character)
  16.         end
  17.     end
  18.    
  19.     local closestEnemy = nil
  20.     local shortestDistance = math.huge
  21.    
  22.     for i, enemy in pairs(enemies) do
  23.         local distance = (enemy.Head.Position - player.Character.Head.Position).Magnitude
  24.         if distance < shortestDistance then
  25.             closestEnemy = enemy
  26.             shortestDistance = distance
  27.         end
  28.     end
  29.    
  30.     return closestEnemy
  31. end
  32.  
  33. game:GetService("RunService").RenderStepped:Connect(function()
  34.     if aimbotEnabled then
  35.         local enemy = getClosestEnemy()
  36.         if enemy then
  37.             local target = enemy.Head.Position + Vector3.new(0, 1, 0)
  38.             mousemoverel((target - mousemouselocation()).X, (target - mousemouselocation()).Y)
  39.         end
  40.     end
  41. end)
  42.  
  43. game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessed)
  44.     if not gameProcessed and input.KeyCode == Enum.KeyCode.P then
  45.         toggleAimbot()
  46.     end
  47. end)
  48.  
  49. local infAmmoEnabled = false
  50. local infFireRateEnabled = false
  51. local damageBuffEnabled = false
  52.  
  53. function toggleInfAmmo()
  54.     infAmmoEnabled = not infAmmoEnabled
  55. end
  56.  
  57. function toggleInfFireRate()
  58.     infFireRateEnabled = not infFireRateEnabled
  59. end
  60.  
  61. function toggleDamageBuff()
  62.     damageBuffEnabled = not damageBuffEnabled
  63. end
  64.  
  65. local mt = getrawmetatable(game)
  66. local oldNamecall = mt.__namecall
  67.  
  68. setreadonly(mt, false)
  69.  
  70. mt.__namecall = newcclosure(function(self, ...)
  71.     local method = getnamecallmethod()
  72.     local args = {...}
  73.    
  74.     if method == "FindPartOnRayWithIgnoreList" and infAmmoEnabled then
  75.         args[2].IgnoreList = {}
  76.         return oldNamecall(self, unpack(args))
  77.     end
  78.    
  79.     if method == "FireServer" and args[1] == "notify" and infFireRateEnabled then
  80.         return
  81.     end
  82.    
  83.     if method == "FireServer" and args[1] == "dmg" and damageBuffEnabled then
  84.         args[2] = args[2] * 2
  85.         return oldNamecall(self, unpack(args))
  86.     end
  87.    
  88.     return oldNamecall(self, ...)
  89. end)
  90.  
  91. setreadonly(mt, true)
  92.  
  93. game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessed)
  94.     if not gameProcessed and input.KeyCode == Enum.KeyCode.F1 then
  95.         toggleInfAmmo()
  96.     end
  97.    
  98.     if not gameProcessed and input.KeyCode == Enum.KeyCode.F2 then
  99.         toggleInfFireRate()
  100.     end
  101.    
  102.     if not gameProcessed and input.KeyCode == Enum.KeyCode.F3 then
  103.         toggleDamageBuff()
  104.     end
  105. end)
  106.