local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local DeagleShared = require(game:GetService("ReplicatedStorage").Modules.Shared.DeagleShared)
if getgenv().DeagleHook then
pcall(function() getgenv().DeagleHook:Restore() end)
end
local function getNearestPlayer()
local target = nil
local maxDist = math.huge
local char = LocalPlayer.Character
if not char or not char:FindFirstChild("HumanoidRootPart") then
return nil
end
local mouse = UserInputService:GetMouseLocation()
for _, plr in ipairs(Players:GetPlayers()) do
if plr ~= LocalPlayer and plr.Character and plr.Character:FindFirstChild("Head") and plr.Character:FindFirstChild("Humanoid") then
if plr.Character.Humanoid.Health > 0 then
if not plr.Team or plr.Team ~= LocalPlayer.Team then
local head = plr.Character.Head
local screenPos, onScreen = Camera:WorldToViewportPoint(head.Position)
if onScreen then
local dist = (mouse - Vector2.new(screenPos.X, screenPos.Y)).Magnitude
if dist < maxDist then
maxDist = dist
target = plr
end
end
end
end
end
end
return target
end
local oldRaycast = DeagleShared.Raycast
DeagleShared.Raycast = function(p18, p19, p20)
local target = getNearestPlayer()
if target and target.Character and target.Character:FindFirstChild("Head") then
local head = target.Character.Head
return {
Instance = head,
Position = head.Position,
Normal = Vector3.new(0, 1, 0),
Material = Enum.Material.Plastic
}
end
return oldRaycast(p18, p19, p20)
end
getgenv().DeagleHook = {
Restore = function()
DeagleShared.Raycast = oldRaycast
print("Deagle Silent Aim Unhooked")
end
}
print("Requires executor supporting getgenv and module script hooking.")
print("for more scripts follower me on Rscripts @VobeHooks Thanks.")
print("Last Update on this script was on 7/13/2026. Enjoy!")
Comments
Join the discussion about this script.
shooting thru walls, makes other players think your hacking. overall? 7/10