9,621 views
Description
Just right click and it'll lock on the nearest visible player.
Features
- + Aimbot (locks on a player)
--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 = Players.LocalPlayer
local MyCharacter = LocalPlayer.Character
local MyRoot = MyCharacter:FindFirstChild("HumanoidRootPart")
local MyHumanoid = MyCharacter:FindFirstChild("Humanoid")
local Mouse = LocalPlayer:GetMouse()
local MyView = Area.CurrentCamera
local MyTeamColor = LocalPlayer.TeamColor
local HoldingM2 = false
local Active = false
local Lock = false
local Epitaph = .187 ---Note: The Bigger The Number, The More Prediction.
local HeadOffset = Vector3.new(0, .1, 0)
_G.TeamCheck = false
_G.AimPart = "HumanoidRootPart"
_G.Sensitivity = 0
_G.CircleSides = 64
_G.CircleColor = Color3.fromRGB(255, 0, 130)
_G.CircleTransparency = 0
_G.CircleRadius = 200
_G.CircleFilled = false
_G.CircleVisible = true
_G.CircleThickness = 1
local FOVCircle = Drawing.new("Circle")
FOVCircle.Position = Vector2.new(MyView.ViewportSize.X / 2, MyView.ViewportSize.Y / 2)
FOVCircle.Radius = _G.CircleRadius
FOVCircle.Filled = _G.CircleFilled
FOVCircle.Color = _G.CircleColor
FOVCircle.Visible = _G.CircleVisible
FOVCircle.Transparency = _G.CircleTransparency
FOVCircle.NumSides = _G.CircleSides
FOVCircle.Thickness = _G.CircleThickness
local function CursorLock()
UIS.MouseBehavior = Enum.MouseBehavior.LockCenter
end
local function UnLockCursor()
HoldingM2 = false Active = false Lock = false
UIS.MouseBehavior = Enum.MouseBehavior.Default
end
function FindNearestPlayer()
local dist = math.huge
local Target = nil
for _, v in pairs(Players:GetPlayers()) do
if v ~= LocalPlayer and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("Humanoid").Health > 0 and v.Character:FindFirstChild("HumanoidRootPart") and v then
local TheirCharacter = v.Character
local CharacterRoot, Visible = MyView:WorldToViewportPoint(TheirCharacter[_G.AimPart].Position)
if Visible then
local RealMag = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(CharacterRoot.X, CharacterRoot.Y)).Magnitude
if RealMag < dist and RealMag < FOVCircle.Radius then
dist = RealMag
Target = TheirCharacter
end
end
end
end
return Target
end
UIS.InputBegan:Connect(function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton2 then
HoldingM2 = true
Active = true
Lock = true
if Active then
local The_Enemy = FindNearestPlayer()
while HoldingM2 do task.wait(.000001)
if Lock and The_Enemy ~= nil then
local Future = The_Enemy.HumanoidRootPart.CFrame + (The_Enemy.HumanoidRootPart.Velocity * Epitaph + HeadOffset)
MyView.CFrame = CFrame.lookAt(MyView.CFrame.Position, Future.Position)
CursorLock()
end
end
end
end
end)
UIS.InputEnded:Connect(function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton2 then
UnLockCursor()
end
end)
game.StarterGui:SetCore("SendNotification", {Title = "Working.", Text = "Success, Script Loaded.", Duration = 4,})
Script worked? 🚀 Boost it to #1 so others find it too.
Similar Scripts
432
7 hours ago
Free
+1 Assassin Leveling
+1 Assassin Leveling script by Tora isme | Auto stage, Anti damage
346
7 hours ago
Free
Huss Valley
Aetherium Hub Huss Valley Crossing script OP (No Keys)
281
7 hours ago
Free
Cold War
QCOLD MENU | Silent aim, No recoil, insta reload
204
7 hours ago
Free
Baddies
Best Baddies Extenders , Anti Inventory Break And Silent Aim
205
7 hours ago
Key System
Build a Phone Empire
Build a Phone Empire script by Softkillz
141
7 hours ago
Key System
WRONG WAY
Wrong Way script by Softkillz | Auto drive bot
🚀
Log in to boost
Boosting rockets this script to #1 on the homepage. A free account takes 30 seconds.
Log in
🚀
Out of boosts!
Grab boosts and rocket your favorite scripts to the top — plus join the booster wall with the RGB ring.
⚡ Go Pro — 10 boosts/month + zero ads
🚀
Boost this script?
It jumps to #1 in Recent Scripts and your avatar joins the booster wall.
🚀
Boosted! You're awesome 💜
Comments (0)
Log in to add a comment.