--FE Simple AimLock Script | Released Nov 2021 | Working.
local Area = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local Players = game:GetService("Players")
local LocalPlayer = [Link]
local MyCharacter = [Link]
local MyRoot = MyCharacter:FindFirstChild("HumanoidRootPart")
local MyHumanoid = MyCharacter:FindFirstChild("Humanoid")
local Mouse = LocalPlayer:GetMouse()
local MyView = [Link]
local MyTeamColor = [Link]
local HoldingM2 = false
local Active = false
local Lock = false
local Epitaph = .187 ---Note: The Bigger The Number, The More Prediction.
local HeadOffset = [Link](0, .1, 0)
_G.TeamCheck = false
_G.AimPart = "HumanoidRootPart"
_G.Sensitivity = 0
_G.CircleSides = 64
_G.CircleColor = [Link](255, 0, 130)
_G.CircleTransparency = 0
_G.CircleRadius = 200
_G.CircleFilled = false
_G.CircleVisible = true
_G.CircleThickness = 1
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.CircleTransparency
[Link] = _G.CircleSides
[Link] = _G.CircleThickness
local function CursorLock()
[Link] = [Link]
end
local function UnLockCursor()
HoldingM2 = false Active = false Lock = false
[Link] = [Link]
end
function FindNearestPlayer()
local dist = [Link]
local Target = nil
for _, v in pairs(Players:GetPlayers()) do
if v ~= LocalPlayer and [Link]:FindFirstChild("Humanoid") and
[Link]:FindFirstChild("Humanoid").Health > 0 and
[Link]:FindFirstChild("HumanoidRootPart") and v then
local TheirCharacter = [Link]
local CharacterRoot, Visible =
MyView:WorldToViewportPoint(TheirCharacter[_G.AimPart].Position)
if Visible then
local RealMag = ([Link](Mouse.X, Mouse.Y) -
[Link](CharacterRoot.X, CharacterRoot.Y)).Magnitude
if RealMag < dist and RealMag < [Link] then
dist = RealMag
Target = TheirCharacter
end
end
end
end
return Target
end
[Link]:Connect(function(Input)
if [Link] == [Link].MouseButton2 then
HoldingM2 = true
Active = true
Lock = true
if Active then
local The_Enemy = FindNearestPlayer()
while HoldingM2 do [Link](.000001)
if Lock and The_Enemy ~= nil then
local Future = The_Enemy.[Link] +
(The_Enemy.[Link] * Epitaph + HeadOffset)
[Link] = [Link]([Link],
[Link])
CursorLock()
end
end
end
end
end)
[Link]:Connect(function(Input)
if [Link] == [Link].MouseButton2 then
UnLockCursor()
end
end)
[Link]:SetCore("SendNotification", {Title = "Working.", Text = "Success,
Script Loaded.", Duration = 4,})