Run it
Copy the script and paste it into your executor.
--Used ai fully made by neosnapp
--Pls support me report bugs discord : neo_snap_31882
-- Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
UserInputService = :()
LocalPlayer = Players.LocalPlayer
Camera = .CurrentCamera
Settings = {
LockEnabled = ,
ToggleKey = .KeyCode.C,
Smoothness = ,
TargetPart = ,
TeamCheck =
}
()
target =
shortestDistance = .huge
_, player (Players:())
player ~= LocalPlayer player.Character
root = player.Character:(Settings.TargetPart)
hum = player.Character:()
myRoot = LocalPlayer.Character LocalPlayer.Character:()
root hum hum.Health > myRoot
Settings.TeamCheck player.Team == LocalPlayer.Team
distance = (myRoot.Position - root.Position).Magnitude
_, isVisible = Camera:(root.Position)
isVisible distance < shortestDistance
target = root
shortestDistance = distance
target
UserInputService.InputBegan:((input, processed)
processed input.KeyCode == Settings.ToggleKey
Settings.LockEnabled = Settings.LockEnabled
)
RunService:(, , ()
Settings.LockEnabled
target = ()
target
targetCFrame = .(Camera.CFrame.Position, target.Position)
Camera.CFrame = Camera.CFrame:(targetCFrame, Settings.Smoothness)
)C to open lock on locks on to the HumanoidRootPart u can change to Head or Torso or smething like this Used ai fully made by neosnapp.

Universal