Run it
Copy the script and paste it into your executor.
Players = :()
camera = .CurrentCamera
player = Players.LocalPlayer
playerGui = player:()
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 =
shortestDistance =
playerPos = player.Character player.Character:() player.Character.HumanoidRootPart.Position
playerPos
_, obj (:())
obj:() obj ~= player.Character obj:() obj:()
distance = (obj.HumanoidRootPart.Position - playerPos).Magnitude
distance < shortestDistance
shortestDistance = distance
nearest = obj
nearest
button.MouseButton1Click:(()
isLockedOn = isLockedOn
isLockedOn
button.BackgroundColor3 = .(, , )
glowFrame.Visible =
target
target = ()
button.BackgroundColor3 = .(, , )
glowFrame.Visible =
camera.CameraSubject = player.Character:()
target =
)
:().RenderStepped:(()
isLockedOn target
humanoidRootPart = target:()
humanoidRootPart target:().Health >
targetPosition = humanoidRootPart.Position
cameraPosition = camera.CFrame.Position
direction = (targetPosition - cameraPosition).unit
camera.CFrame = .(cameraPosition, cameraPosition + direction)
button.BackgroundColor3 = .(, , )
glowFrame.Visible =
camera.CameraSubject = player.Character:()
isLockedOn =
target =
)Locks onto players/npcs