Run it
Copy the script and paste it into your executor.
Players = :()
UIS = :()
RunService = :()
TweenService = :()
player = Players.LocalPlayer
camera = .CurrentCamera
playerGui = player:()
lockedTarget =
lockEnabled =
systemEnabled =
maxDistance =
keybind = .KeyCode.X
waitingForKeybind =
(character, name)
character
character:(name)
(other)
other == player
char = other.Character
char
hum = char:()
head = (char, )
root = (char, )
hum hum.Health <=
head root
myChar = player.Character
myRoot = myChar (myChar, )
myRoot
dist = (root.Position - myRoot.Position).Magnitude
dist <= maxDistance
()
best =
bestDist = .huge
center = .(camera.ViewportSize.X / , camera.ViewportSize.Y / )
_, p (Players:())
(p)
head = (p.Character, )
pos, visible = camera:(head.Position)
visible
screenPos = .(pos.X, pos.Y)
d = (screenPos - center).Magnitude
d < bestDist
bestDist = d
best = p
best
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = playerGui
main = .()
main.Name =
main.Size = .(, , , )
main.Position = .(, , , -)
main.BackgroundColor3 = .(, , )
main.BorderSizePixel =
main.ZIndex =
main.Parent = gui
mainCorner = .()
mainCorner.CornerRadius = .(, )
mainCorner.Parent = main
stroke = .()
stroke.Color = .(, , )
stroke.Thickness =
stroke.Transparency =
stroke.Parent = main
topBar = .()
topBar.Name =
topBar.Size = .(, , , )
topBar.BackgroundColor3 = .(, , )
topBar.BorderSizePixel =
topBar.ZIndex =
topBar.Parent = main
topCorner = .()
topCorner.CornerRadius = .(, )
topCorner.Parent = topBar
topFill = .()
topFill.Size = .(, , , )
topFill.Position = .(, , , -)
topFill.BackgroundColor3 = .(, , )
topFill.BorderSizePixel =
topFill.ZIndex =
topFill.Parent = topBar
accent = .()
accent.Size = .(, , , )
accent.Position = .(, , , )
accent.BackgroundColor3 = .(, , )
accent.BorderSizePixel =
accent.ZIndex =
accent.Parent = main
title = .()
title.Size = .(, -, , )
title.Position = .(, , , )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.TextXAlignment = .TextXAlignment.Left
title.Font = .Font.GothamBold
title.TextSize =
title.ZIndex =
title.Parent = main
subtitle = .()
subtitle.Size = .(, -, , )
subtitle.Position = .(, , , )
subtitle.BackgroundTransparency =
subtitle.Text =
subtitle.TextColor3 = .(, , )
subtitle.TextXAlignment = .TextXAlignment.Left
subtitle.Font = .Font.Gotham
subtitle.TextSize =
subtitle.ZIndex =
subtitle.Parent = main
status = .()
status.Size = .(, -, , )
status.Position = .(, , , )
status.BackgroundTransparency =
status.Text =
status.TextColor3 = .(, , )
status.TextXAlignment = .TextXAlignment.Left
status.Font = .Font.GothamMedium
status.TextSize =
status.ZIndex =
status.Parent = main
targetLabel = .()
targetLabel.Size = .(, -, , )
targetLabel.Position = .(, , , )
targetLabel.BackgroundTransparency =
targetLabel.Text =
targetLabel.TextColor3 = .(, , )
targetLabel.TextXAlignment = .TextXAlignment.Left
targetLabel.Font = .Font.Gotham
targetLabel.TextSize =
targetLabel.ZIndex =
targetLabel.Parent = main
toggleButton = .()
toggleButton.Size = .(, , , )
toggleButton.Position = .(, -, , -)
toggleButton.BackgroundColor3 = .(, , )
toggleButton.BorderSizePixel =
toggleButton.Text =
toggleButton.TextColor3 = .(, , )
toggleButton.Font = .Font.GothamBold
toggleButton.TextSize =
toggleButton.AutoButtonColor =
toggleButton.ZIndex =
toggleButton.Parent = main
buttonCorner = .()
buttonCorner.CornerRadius = .(, )
buttonCorner.Parent = toggleButton
buttonStroke = .()
buttonStroke.Color = .(, , )
buttonStroke.Thickness =
buttonStroke.Transparency =
buttonStroke.Parent = toggleButton
keybindTag = .()
keybindTag.Size = .(, , , )
keybindTag.Position = .(, , , -)
keybindTag.BackgroundColor3 = .(, , )
keybindTag.BorderSizePixel =
keybindTag.Text =
keybindTag.TextColor3 = .(, , )
keybindTag.Font = .Font.GothamMedium
keybindTag.TextSize =
keybindTag.AutoButtonColor =
keybindTag.ZIndex =
keybindTag.Parent = main
keyCorner = .()
keyCorner.CornerRadius = .(, )
keyCorner.Parent = keybindTag
keyStroke = .()
keyStroke.Color = .(, , )
keyStroke.Thickness =
keyStroke.Transparency =
keyStroke.Parent = keybindTag
()
systemEnabled
status.Text =
status.TextColor3 = .(, , )
toggleButton.Text =
TweenService:(toggleButton, TweenInfo.(), {
BackgroundColor3 = .(, , )
}):()
status.Text =
status.TextColor3 = .(, , )
toggleButton.Text =
TweenService:(toggleButton, TweenInfo.(), {
BackgroundColor3 = .(, , )
}):()
waitingForKeybind
keybindTag.Text =
keybindTag.Text = .. keybind.Name
lockedTarget lockedTarget.Character lockedTarget.Character:()
targetLabel.Text = .. lockedTarget.Name
targetLabel.Text =
toggleButton.MouseButton1Click:(()
systemEnabled = systemEnabled
systemEnabled
lockEnabled =
lockedTarget =
()
)
toggleButton.MouseEnter:(()
TweenService:(toggleButton, TweenInfo.(), {
Size = .(, , , )
}):()
)
toggleButton.MouseLeave:(()
TweenService:(toggleButton, TweenInfo.(), {
Size = .(, , , )
}):()
)
keybindTag.MouseButton1Click:(()
waitingForKeybind =
lockEnabled =
lockedTarget =
TweenService:(keybindTag, TweenInfo.(), {
BackgroundColor3 = .(, , )
}):()
()
)
dragging =
dragStart
startPos
dragInput
topBar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
dragging =
dragStart = input.Position
startPos = main.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
topBar.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement
dragInput = input
)
UIS.InputChanged:((input)
dragging input == dragInput
delta = input.Position - dragStart
main.Position = .(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
)
UIS.InputBegan:((input, gpe)
gpe
waitingForKeybind
input.UserInputType == .UserInputType.Keyboard
keybind = input.KeyCode
waitingForKeybind =
TweenService:(keybindTag, TweenInfo.(), {
BackgroundColor3 = .(, , )
}):()
()
systemEnabled
input.KeyCode == keybind
lockEnabled
lockEnabled =
lockedTarget =
lockedTarget = ()
lockEnabled = lockedTarget ~=
()
)
RunService.RenderStepped:(()
systemEnabled
lockEnabled lockedTarget
(lockedTarget)
lockEnabled =
lockedTarget =
()
head = lockedTarget.Character lockedTarget.Character:()
head
lockEnabled =
lockedTarget =
()
camPos = camera.CFrame.Position
targetCF = .(camPos, head.Position)
camera.CFrame = camera.CFrame:(targetCF, )
targetLabel.Text = .. lockedTarget.Name
)
()CAMLOCK

Universal