What's new
Heapleak - Scripthub

Get the most out of HeapLeak by creating a free account! Once signed in, you’ll gain full access to restricted content, be able to share your own scripts, and participate in our member-only discussions.

Da hood Lock

Version / Update: v1.0.0
Download / Script Link
getgenv().Aimbot = {
Status = true,
Keybind = 'C',
Hitpart = 'HumanoidRootPart',
['Prediction'] = {
X = 0.165,
Y = 0.1,
},
}

if getgenv().AimbotRan then
return
else
getgenv().AimbotRan = true
end
-- make it reexecutable to update settings


local RunService = game:GetService('RunService')
local Workspace = game:GetService('Workspace')
local Players = game:GetService('Players')

local LocalPlayer = Players.LocalPlayer
local Camera = Workspace.CurrentCamera
local Mouse = LocalPlayer:GetMouse()

local Player = nil -- Our target player


local GetClosestPlayer = function() -- // Optimized GetClosestPlayer i believe?
local ClosestDistance, ClosestPlayer = 100000, nil
for _, Player : Player in pairs(Players:GetPlayers()) do
if Player.Name ~= LocalPlayer.Name and Player.Character and Player.Character:FindFirstChild('HumanoidRootPart') then
local Root, Visible = Camera:WorldToScreenPoint(Player.Character.HumanoidRootPart.Position)
if not Visible then
continue
end
Root = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(Root.X, Root.Y)).Magnitude
if Root < ClosestDistance then
ClosestPlayer = Player
ClosestDistance = Root
end
end
end
return ClosestPlayer
end

Mouse.KeyDown:Connect(function(key) -- Get our closest player (toggle)
if key == Aimbot.Keybind:lower() then
Player = not Player and GetClosestPlayer() or nil
end
end)

RunService.RenderStepped:Connect(function()
if not Player then
return
end
if not Aimbot.Status then
return
end
local Hitpart = Player.Character:FindFirstChild(Aimbot.Hitpart)
if not Hitpart then
return
end
Camera.CFrame = CFrame.new(Camera.CFrame.Position, Hitpart.Position + Hitpart.Velocity * Vector3.new(Aimbot.Prediction.X, Aimbot.Prediction.Y, Aimbot.Prediction.X))
end)
[ View More ]
7cfef599-d745-455e-a6d3-e547e577facc.webp


This Lock is very good for every ''da hood games'' you know what i mean
 
Back
Top