-- SERVICES
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local LocalPlayer = [Link]
local Camera = [Link]
-- SETTINGS
local AimbotEnabled = true
local Tracking = false
local FOVRadius = 160 -- Initial FOV
local MinimumDistance = 500
-- GUI CREATION
local gui = [Link]("ScreenGui", [Link])
local frame = [Link]("Frame", gui)
[Link] = [Link](0.5, -125, 0.9, -15)
[Link] = [Link](0, 250, 0, 30)
frame.BackgroundColor3 = [Link](30, 30, 30)
[Link] = 0
local slider = [Link]("TextButton", frame)
[Link] = [Link](0, 20, 1, 0)
[Link] = [Link](0, FOVRadius / 500 * 250, 0, 0)
slider.BackgroundColor3 = [Link](200, 200, 200)
[Link] = ""
local label = [Link]("TextLabel", frame)
[Link] = [Link](1, 0, 0, 20)
[Link] = [Link](0, 0, -1, 0)
[Link] = "FOV: " .. FOVRadius
label.TextColor3 = [Link](1, 1, 1)
[Link] = 1
local dragging = false
[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 then
dragging = true
end
end)
[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 then
dragging = false
end
end)
[Link]:Connect(function(input)
if dragging and [Link] == [Link] then
local relativeX = [Link]([Link].X - [Link].X,
0, 250)
[Link] = [Link](0, relativeX, 0, 0)
FOVRadius = [Link]((relativeX / 250) * 500) -- Max FOV 500
[Link] = "FOV: " .. FOVRadius
end
end)
-- FOV CIRCLE
local fovCircle = [Link]("Circle")
[Link] = FOVRadius
[Link] = 2
[Link] = [Link](255, 255, 255)
[Link] = 0.5
[Link] = false
[Link] = true
-- AIMBOT FUNCTION
local function GetClosestTarget()
local closestTarget = nil
local shortestDistance = FOVRadius
for _, player in pairs(Players:GetPlayers()) do
if player ~= LocalPlayer and [Link] and
[Link]:FindFirstChild("Head") then
local head = [Link]
local screenPoint, onScreen =
Camera:WorldToViewportPoint([Link])
if onScreen then
local mouseLocation = UserInputService:GetMouseLocation()
local distance = ([Link](screenPoint.X, screenPoint.Y) -
[Link](mouseLocation.X, mouseLocation.Y)).Magnitude
local worldDistance = ([Link] -
[Link]).Magnitude
if distance < shortestDistance and worldDistance <= MinimumDistance
then
shortestDistance = distance
closestTarget = head
end
end
end
end
return closestTarget
end
-- INPUT HANDLING
[Link]:Connect(function(input)
if [Link] == [Link].MouseButton2 then
Tracking = true
end
end)
[Link]:Connect(function(input)
if [Link] == [Link].MouseButton2 then
Tracking = false
end
end)
-- MAIN LOOP
[Link]:Connect(function()
-- Update FOV circle
local mouseLocation = UserInputService:GetMouseLocation()
[Link] = [Link](mouseLocation.X, mouseLocation.Y)
[Link] = FOVRadius
if AimbotEnabled and Tracking then
local target = GetClosestTarget()
if target then
-- Smooth camera transition
local targetPosition = [Link]
local newCFrame = [Link]([Link], targetPosition)
[Link] = [Link]:Lerp(newCFrame, 0.2)
-- Move mouse towards target
local screenPoint = Camera:WorldToViewportPoint(targetPosition)
local delta = [Link](screenPoint.X, screenPoint.Y) -
[Link](mouseLocation.X, mouseLocation.Y)
pcall(function()
mousemoverel(delta.X, delta.Y)
end)
end
end
end)