
11.9k Views
317 Executions
AIMBOT SKRIPT
Universal Script π
lulaPublished 25
3 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
works best for KAT
Updates
Script edited: Create script
--aimbot
local Camera = game:GetService("Workspace").CurrentCamera
local Players = game:GetService("Players")
local LocalPlayer = game:GetService("Players").LocalPlayer
local function GetClosestPlayer()
local ClosestPlayer = nil
local FarthestDistance = math.huge
for i, v in pairs(Players.GetPlayers(Players)) do
if v ~= LocalPlayer and v.Character and v.Character.FindFirstChild(v.Character, "HumanoidRootPart") then
local DistanceFromPlayer = (LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude
if DistanceFromPlayer < FarthestDistance then
FarthestDistance = DistanceFromPlayer
ClosestPlayer = v
end
end
end
if ClosestPlayer then
return ClosestPlayer
end
end
local GameMetaTable = getrawmetatable(game)
local OldGameMetaTableNamecall = GameMetaTable.__namecall
setreadonly(GameMetaTable, false)
GameMetaTable.__namecall = newcclosure(function(object, ...)
local NamecallMethod = getnamecallmethod()
local Arguments = {...}
if tostring(NamecallMethod) == "FindPartOnRayWithIgnoreList" then
local ClosestPlayer = GetClosestPlayer()
if ClosestPlayer and ClosestPlayer.Character then
Arguments[1] = Ray.new(Camera.CFrame.Position, (ClosestPlayer.Character.Head.Position - Camera.CFrame.Position).Unit * (Camera.CFrame.Position - ClosestPlayer.Character.Head.Position).Magnitude)
end
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







