--[[
G7 Correction - Safe Mobile Aimbot
Works on: MM2, Blox Fruits
Anti-Detection Style (Smooth + Distance Limit + Team Check)
]]
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Camera = workspace.CurrentCamera
local LocalPlayer = Players.LocalPlayer
local AimbotEnabled = false
-- إعدادات الحماية
local MAX_DISTANCE = 350 -- لا يقفل إذا بعيد
local SMOOTHNESS = 0.12 -- كل ما أقل = أهدأ وأطبيعي
-- واجهة الزر
local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
ScreenGui.ResetOnSpawn = false
local Button = Instance.new("TextButton", ScreenGui)
Button.Size = UDim2.new(0,160,0,50)
Button.Position = UDim2.new(0,20,0.5,-25)
Button.Text = "G7: OFF"
Button.TextScaled = true
Button.BackgroundColor3 = Color3.fromRGB(25,25,25)
Button.TextColor3 = Color3.fromRGB(255,255,255)
Button.BorderSizePixel = 0
Instance.new("UICorner", Button).CornerRadius = UDim.new(0,12)
Button.MouseButton1Click:Connect(function()
AimbotEnabled = not AimbotEnabled
Button.Text = AimbotEnabled and "G7: ON" or "G7: OFF"
end)
-- تحقق هل عدو
local function IsEnemy(player)
if not player.Character or not LocalPlayer.Character then return false end
-- لو اللعبة فيها Teams
if player.Team and LocalPlayer.Team then
return player.Team ~= LocalPlayer.Team
end
-- لو ما فيها Teams (مثل Blox Fruits بعض الأحيان)
return true
end
-- أقرب هدف
local function GetTarget()
local best = nil
local shortest = math.huge
for _,plr in ipairs(Players:GetPlayers()) do
if plr ~= LocalPlayer and IsEnemy(plr)
and plr.Character and plr.Character:FindFirstChild("Head")
and plr.Character:FindFirstChild("Humanoid")
and plr.Character.Humanoid.Health > 0 then
local head = plr.Character.Head
local pos, visible = Camera:WorldToViewportPoint(head.Position)
if visible then
local dist3D = (head.Position - Camera.CFrame.Position).Magnitude
if dist3D < MAX_DISTANCE then
local center = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
local dist2D = (Vector2.new(pos.X,pos.Y) - center).Magnitude
if dist2D < shortest then
shortest = dist2D
best = plr
end
end
end
end
end
return best
end
-- تصويب ناعم
RunService.RenderStepped:Connect(function()
if not AimbotEnabled then return end
local target = GetTarget()
if target and target.Character and target.Character:FindFirstChild("Head") then
local head = target.Character.Head
local newCFrame = CFrame.new(Camera.CFrame.Position, head.Position)
Camera.CFrame = Camera.CFrame:Lerp(newCFrame, SMOOTHNESS)
end
end)