0% found this document useful (0 votes)
16K views3 pages

Aimbot Script - Lua

Uploaded by

apelaptof
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16K views3 pages

Aimbot Script - Lua

Uploaded by

apelaptof
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local Camera = workspace.

CurrentCamera
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local LocalPlayer = [Link]
local Holding = false

_G.AimbotEnabled = true
_G.TeamCheck = false -- If set to true then the script would only lock your aim at
enemy team members.
_G.AimPart = "Head" -- Where the aimbot script would lock at.
_G.Sensitivity = 0 -- How many seconds it takes for the aimbot script to officially
lock onto the target's aimpart.

_G.CircleSides = 64 -- How many sides the FOV circle would have.


_G.CircleColor = [Link](255, 255, 255) -- (RGB) Color that the FOV circle
would appear as.
_G.CircleTransparency = 0.7 -- Transparency of the circle.
_G.CircleRadius = 80 -- The radius of the circle / FOV.
_G.CircleFilled = false -- Determines whether or not the circle is filled.
_G.CircleVisible = true -- Determines whether or not the circle is visible.
_G.CircleThickness = 0 -- The thickness of the circle.

local FOVCircle = [Link]("Circle")


[Link] = [Link]([Link].X / 2, [Link].Y /
2)
[Link] = _G.CircleRadius
[Link] = _G.CircleFilled
[Link] = _G.CircleColor
[Link] = _G.CircleVisible
[Link] = _G.CircleRadius
[Link] = _G.CircleTransparency
[Link] = _G.CircleSides
[Link] = _G.CircleThickness

local function GetClosestPlayer()


local MaximumDistance = _G.CircleRadius
local Target = nil

for _, v in next, Players:GetPlayers() do


if [Link] ~= [Link] then
if _G.TeamCheck == true then
if [Link] ~= [Link] then
if [Link] ~= nil then
if
[Link]:FindFirstChild("HumanoidRootPart") ~= nil then
if [Link]:FindFirstChild("Humanoid")
~= nil and [Link]:FindFirstChild("Humanoid").Health ~= 0 then
local ScreenPoint =
Camera:WorldToScreenPoint([Link]:WaitForChild("HumanoidRootPart",
[Link]).Position)
local VectorDistance =
([Link](UserInputService:GetMouseLocation().X,
UserInputService:GetMouseLocation().Y) - [Link](ScreenPoint.X,
ScreenPoint.Y)).Magnitude

if VectorDistance < MaximumDistance


then
Target = v
end
end
end
end
end
else
if [Link] ~= nil then
if [Link]:FindFirstChild("HumanoidRootPart") ~=
nil then
if [Link]:FindFirstChild("Humanoid") ~=
nil and [Link]:FindFirstChild("Humanoid").Health ~= 0 then
local ScreenPoint =
Camera:WorldToScreenPoint([Link]:WaitForChild("HumanoidRootPart",
[Link]).Position)
local VectorDistance =
([Link](UserInputService:GetMouseLocation().X,
UserInputService:GetMouseLocation().Y) - [Link](ScreenPoint.X,
ScreenPoint.Y)).Magnitude

if VectorDistance < MaximumDistance then


Target = v
end
end
end
end
end
end
end

return Target
end

[Link]:Connect(function(Input)
if [Link] == [Link].MouseButton2 then
Holding = true
end
end)

[Link]:Connect(function(Input)
if [Link] == [Link].MouseButton2 then
Holding = false
end
end)

[Link]:Connect(function()
[Link] = [Link](UserInputService:GetMouseLocation().X,
UserInputService:GetMouseLocation().Y)
[Link] = _G.CircleRadius
[Link] = _G.CircleFilled
[Link] = _G.CircleColor
[Link] = _G.CircleVisible
[Link] = _G.CircleRadius
[Link] = _G.CircleTransparency
[Link] = _G.CircleSides
[Link] = _G.CircleThickness

if Holding == true and _G.AimbotEnabled == true then


TweenService:Create(Camera, [Link](_G.Sensitivity,
[Link], [Link]), {CFrame =
[Link]([Link],
GetClosestPlayer().Character[_G.AimPart].Position)}):Play()
end
end)

local Camera = workspace.CurrentCamera
local Players = game:GetService("Players")
local RunService = game:GetService("RunServ
Target = v
end
end
end
end
end
else
if v.Character ~= nil then
if v.Character:FindFirstChild("HumanoidRootPart") ~= 
nil then
Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame = 
CFrame.new(Camera.CFrame.Position, 
GetClosestPlayer().Character

You might also like