local aimbotEnabled = false
local aimbotTeamCheckEnabled = false
local function isBehindWall(target)
if not target or not [Link] or not
[Link]:FindFirstChild("Head") then return false end
local origin = [Link]
local direction = ([Link] - origin).Unit
local raycastParams = [Link]()
[Link] = {[Link]}
[Link] = [Link]
local raycastResult = workspace:Raycast(origin, direction * 1000,
raycastParams)
return not (raycastResult and [Link] and
[Link]:IsDescendantOf([Link]))
end
local function isPlayerAlive(player)
return player and [Link] and
[Link]:FindFirstChild("Humanoid") and [Link] >
0
end
local function getClosestPlayer()
local closestPlayer, shortestDistance = nil, [Link]
for _, player in pairs([Link]:GetPlayers()) do
if player ~= [Link] and isPlayerAlive(player) then
local character = [Link]
if character and character:FindFirstChild("Head") then
local screenPoint =
[Link]:WorldToViewportPoint([Link])
local distance = ([Link](screenPoint.X, screenPoint.Y) -
[Link]([Link].X / 2,
[Link].Y / 2)).Magnitude
if distance < shortestDistance and not isBehindWall(player) then
closestPlayer, shortestDistance = player, distance
end
end
end
end
return closestPlayer
end
local function getClosestPlayerWithTeamCheck()
local closestPlayer, shortestDistance = nil, [Link]
for _, player in pairs([Link]:GetPlayers()) do
if player ~= [Link] and [Link] ~=
[Link] and isPlayerAlive(player) then
local character = [Link]
if character and character:FindFirstChild("Head") then
local screenPoint =
[Link]:WorldToViewportPoint([Link])
local distance = ([Link](screenPoint.X, screenPoint.Y) -
[Link]([Link].X / 2,
[Link].Y / 2)).Magnitude
if distance < shortestDistance and not isBehindWall(player) then
closestPlayer, shortestDistance = player, distance
end
end
end
end
return closestPlayer
end
local function aimAt(target)
if target and [Link] and [Link]:FindFirstChild("Head") then
[Link] =
[Link]([Link], [Link])
end
end
game:GetService("RunService").RenderStepped:Connect(function()
if aimbotEnabled then
local target = getClosestPlayer()
if target then aimAt(target) end
elseif aimbotTeamCheckEnabled then
local target = getClosestPlayerWithTeamCheck()
if target then aimAt(target) end
end
end)
local ScreenGui = [Link]("ScreenGui")
local MainFrame = [Link]("Frame")
local Header = [Link]("TextLabel")
local ButtonsFrame = [Link]("Frame")
local AimbotButton = [Link]("TextButton")
local TeamCheckButton = [Link]("TextButton")
local Footer = [Link]("TextLabel")
local OpenButton = [Link]("TextButton")
[Link] = [Link]
[Link] = ScreenGui
MainFrame.BackgroundColor3 = [Link](0, 0, 0)
[Link] = 0.5
[Link] = [Link](0, 240, 0, 280)
[Link] = [Link](0.5, -120, 0.5, -140)
[Link] = false
[Link] = 2
MainFrame.BorderColor3 = [Link](255, 255, 255)
[Link] = MainFrame
[Link] = "Aimbot Menu"
[Link] = [Link]
[Link] = 24
Header.TextColor3 = [Link](255, 255, 255)
Header.BackgroundColor3 = [Link](0, 0, 0)
[Link] = 0.5
[Link] = [Link](1, 0, 0, 40)
[Link] = MainFrame
[Link] = 1
[Link] = [Link](1, 0, 1, -100)
[Link] = [Link](0, 0, 0, 40)
[Link] = ButtonsFrame
[Link] = "Aimbot Normal"
[Link] = [Link](0.85, 0, 0, 40)
[Link] = [Link](0.075, 0, 0, 20)
AimbotButton.BackgroundColor3 = [Link](0, 0, 0)
[Link] = [Link]
AimbotButton.TextColor3 = [Link](255, 255, 255)
AimbotButton.MouseButton1Click:Connect(function()
aimbotEnabled = not aimbotEnabled
aimbotTeamCheckEnabled = false
[Link] = aimbotEnabled and "Aimbot Normal: Ativado" or "Aimbot
Normal: Desativado"
end)
[Link] = ButtonsFrame
[Link] = "Aimbot TeamCheck"
[Link] = [Link](0.85, 0, 0, 40)
[Link] = [Link](0.075, 0, 0, 70)
TeamCheckButton.BackgroundColor3 = [Link](0, 0, 0)
[Link] = [Link]
TeamCheckButton.TextColor3 = [Link](255, 255, 255)
TeamCheckButton.MouseButton1Click:Connect(function()
aimbotTeamCheckEnabled = not aimbotTeamCheckEnabled
aimbotEnabled = false
[Link] = aimbotTeamCheckEnabled and "Aimbot TeamCheck: Ativado"
or "Aimbot TeamCheck: Desativado"
end)
[Link] = MainFrame
[Link] = "v1.0 | By Ghzin7sz"
[Link] = [Link]
[Link] = 14
Footer.TextColor3 = [Link](255, 255, 255)
[Link] = 1
[Link] = [Link](1, 0, 0, 40)
[Link] = [Link](0, 0, 1, -40)
[Link] = ScreenGui
[Link] = "Abrir Menu"
[Link] = [Link](0, 140, 0, 40)
[Link] = [Link](0, 20, 0, 20)
OpenButton.BackgroundColor3 = [Link](0, 0, 0)
[Link] = [Link]
OpenButton.TextColor3 = [Link](255, 255, 255)
OpenButton.MouseButton1Click:Connect(function()
[Link] = not [Link]
[Link] = [Link] and "Fechar Menu" or "Abrir Menu"
end)