local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
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
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
return target
end
local Caster = require(game.ReplicatedStorage.ZexisShared.Modules.Caster)
if getgenv().ShotHookCaster then
pcall(function() getgenv().ShotHookCaster:Restore() end)
end
local oldCast = Caster.Cast
Caster.Cast = function(p1, p2, p3, p4, p5, p6)
local target = getNearestPlayer()
if target and target.Character and target.Character:FindFirstChild("Head") then
p6 = target.Character.Head.Position
end
return oldCast(p1, p2, p3, p4, p5, p6)
end
getgenv().ShotHookCaster = {
Restore = function()
Caster.Cast = oldCast
end
}
print("Requires executor supporting getgenv and module script hooking.")
print("for more scripts follower me on Rscripts @VobeHooks. Thanks For the Support!")
print("Last Update on this script was on 7/13/2026. Enjoy!")
Comments
Join the discussion about this script.
имба скрипт без менюшки просто аимбот причем не палевный