Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
player = Players.LocalPlayer
camera = .CurrentCamera
playerGui = player:()
LOCK_ON_ANIM_ID =
MAX_DISTANCE =
screenGui = .(, playerGui)
screenGui.Name =
button = .(, screenGui)
button.Name =
button.Size = .(, , , )
button.Position = .(, , , -)
button.Text =
button.TextScaled =
button.BackgroundColor3 = .(, , )
button.TextColor3 = .(, , )
button.BackgroundTransparency =
glowFrame = .(, button)
glowFrame.Size = .(, , , )
glowFrame.Position = .(, -, , -)
glowFrame.BackgroundTransparency =
glowFrame.BackgroundColor3 = .(, , )
glowGradient = .(, glowFrame)
glowGradient.Color = ColorSequence.(.(, , ), .(, , ))
glowGradient.Transparency = NumberSequence.(, )
glowGradient.Rotation =
glowFrame.Visible =
isLockedOn =
target =
()
nearest =
shortest = MAX_DISTANCE
char = player.Character
(char char:())
playerPos = char.HumanoidRootPart.Position
_, obj (:())
obj:() obj ~= char obj:() obj:()
dist = (obj.HumanoidRootPart.Position - playerPos).Magnitude
dist < shortest
shortest = dist
nearest = obj
nearest
()
isLockedOn
isLockedOn =
button.BackgroundColor3 = .(, , )
glowFrame.Visible =
target
target = ()
()
isLockedOn =
target =
button.BackgroundColor3 = .(, , )
glowFrame.Visible =
player.Character player.Character:()
camera.CameraSubject = player.Character.Humanoid
RunService.RenderStepped:(()
isLockedOn target
hrp = target:()
hrp target:().Health >
camPos = camera.CFrame.Position
dir = (hrp.Position - camPos).Unit
camera.CFrame = .(camPos, camPos + dir)
()
)
(char)
humanoid = char:()
animator = humanoid:()
animator.AnimationPlayed:((track)
id = .(track.Animation.AnimationId, )
id == LOCK_ON_ANIM_ID
()
track.Stopped:(()
()
)
)
player.CharacterAdded:(setupAnimDetection)
player.Character
(player.Character)
Auto locks onto nearest player within a close distance when blocking

Universal