
KeylessUniversal

-- ============================================
-- 🎯 Aimbot — يهدف على راس أقرب لاعب
-- ضعه في Delta / StarterPlayerScripts
-- ============================================
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
-- حذف القديم
local old = PlayerGui:FindFirstChild("AimbotGui")
if old then old:Destroy() end
-- ================= الحالة =================
local State = {
Enabled = false,
Conn = nil,
Target = nil,
}
-- ================= أدوات =================
local function new(class, props, parent)
local inst = Instance.new(class)
if props then
for k, v in pairs(props) do
pcall(function() inst[k] = v end)
end
end
if parent then inst.Parent = parent end
return inst
end
local function corner(p, r)
return new("UICorner", { CornerRadius = r or UDim.new(0, 8) }, p)
end
-- ================= الحصول على راس اللاعب =================
local function getHead(player)
local char = player.Character
if not char then return nil end
return char:FindFirstChild("Head")
end
-- ================= أقرب لاعب =================
local function getClosestPlayer()
local myChar = LocalPlayer.Character
if not myChar then return nil end
local myHRP = myChar:FindFirstChild("HumanoidRootPart")
if not myHRP then return nil end
local closest, closestDist = nil, math.huge
for _, p in ipairs(Players:GetPlayers()) do
if p ~= LocalPlayer and p.Character then
local head = p.Character:FindFirstChild("Head")
local hum = p.Character:FindFirstChildOfClass("Humanoid")
if head and hum and hum.Health > 0 then
local dist = (head.Position - myHRP.Position).Magnitude
if dist < closestDist then
closestDist = dist
closest = p
end
end
end
end
return closest
end
-- ================= تشغيل Aimbot =================
local function startAimbot()
State.Enabled = true
State.Conn = RunService.RenderStepped:Connect(function()
if not State.Enabled then return end
local target = getClosestPlayer()
State.Target = target
if target then
local head = getHead(target)
if head then
-- قفل الكاميرا على الراس
pcall(function()
Camera.CFrame = CFrame.new(Camera.CFrame.Position, head.Position)
end)
end
end
end)
end
-- ================= إيقاف Aimbot =================
local function stopAimbot()
State.Enabled = false
State.Target = nil
if State.Conn then
State.Conn:Disconnect()
State.Conn = nil
end
end
-- ================= الواجهة =================
local gui = new("ScreenGui", {
Name = "AimbotGui",
ResetOnSpawn = false,
IgnoreGuiInset = true,
}, PlayerGui)
local btn = new("TextButton", {
Size = UDim2.fromOffset(220, 55),
Position = UDim2.new(0, 20, 0.5, -27),
BackgroundColor3 = Color3.fromRGB(100, 150, 240),
Text = "🎯 AIMBOT: OFF",
TextColor3 = Color3.new(1, 1, 1),
Font = Enum.Font.GothamBold,
TextSize = 15,
BorderSizePixel = 0,
AutoButtonColor = false,
}, gui)
corner(btn, UDim.new(0, 12))
local info = new("TextLabel", {
Size = UDim2.fromOffset(220, 20),
Position = UDim2.new(0, 20, 0.5, 32),
BackgroundTransparency = 1,
Text = "اضغط للتشغيل",
TextColor3 = Color3.fromRGB(200, 200, 210),
Font = Enum.Font.Gotham,
TextSize = 12,
}, gui)
-- Hover
btn.MouseEnter:Connect(function()
if not State.Enabled then
btn.BackgroundColor3 = Color3.fromRGB(120, 170, 255)
end
end)
btn.MouseLeave:Connect(function()
if not State.Enabled then
btn.BackgroundColor3 = Color3.fromRGB(100, 150, 240)
end
end)
-- الضغط
btn.MouseButton1Click:Connect(function()
if State.Enabled then
stopAimbot()
btn.Text = "🎯 AIMBOT: OFF"
btn.BackgroundColor3 = Color3.fromRGB(100, 150, 240)
info.Text = "متوقف"
info.TextColor3 = Color3.fromRGB(200, 200, 210)
else
startAimbot()
btn.Text = "🎯 AIMBOT: ON"
btn.BackgroundColor3 = Color3.fromRGB(85, 210, 130)
info.Text = "شغال — يهدف على الراس"
info.TextColor3 = Color3.fromRGB(85, 210, 130)
end
end)
-- تحديث الهدف
task.spawn(function()
while gui.Parent do
task.wait(0.3)
if State.Enabled and State.Target then
info.Text = "🎯 " .. State.Target.Name
info.TextColor3 = Color3.fromRGB(85, 210, 130)
end
end
end)
print("[Aimbot] تم التحميل")No comments yet for this script.



