Professional Documents
Culture Documents
CurrentCamera
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local LocalPlayer = Players.LocalPlayer
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.
coroutine.wrap(function()
wait(20); MaximumDistance = math.huge -- Reset the MaximumDistance so
that the Aimbot doesn't remember it as a very small variable and stop capturing
players...
end)()
return Target
end
UserInputService.InputBegan:Connect(function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton2 then
Holding = true
end
end)
UserInputService.InputEnded:Connect(function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton2 then
Holding = false
end
end)
RunService.RenderStepped:Connect(function()
if Holding == true and _G.AimbotEnabled == true then
TweenService:Create(Camera, TweenInfo.new(_G.Sensitivity,
Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {CFrame =
CFrame.new(Camera.CFrame.Position,
GetClosestPlayer().Character[_G.AimPart].Position)}):Play()
end
end)