Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
LocalPlayer = Players.LocalPlayer
Camera = .CurrentCamera
CamlockEnabled =
AutoAirEnabled =
LastTargetJumpState =
ManualTarget =
CurrentTarget =
Highlight =
MenuOpen =
ButtonsLocked =
Gui = .()
Gui.Name =
Gui.ResetOnSpawn =
Gui.Parent = LocalPlayer:()
TargetLabel = .()
TargetLabel.Name =
TargetLabel.Size = .(, , , )
TargetLabel.Position = .(, -, , )
TargetLabel.BackgroundColor3 =
.(, , )
TargetLabel.BackgroundTransparency =
TargetLabel.Text =
TargetLabel.TextColor3 =
.(, , )
TargetLabel.TextSize =
TargetLabel.Font = .Font.GothamBold
TargetLabel.Parent = Gui
.(, TargetLabel).CornerRadius =
.(, )
CamlockButton = .()
CamlockButton.Name =
CamlockButton.Size =
.(, , , )
CamlockButton.Position =
.(, -, , -)
CamlockButton.BackgroundColor3 =
.(, , )
CamlockButton.Text =
CamlockButton.TextColor3 =
.(, , )
CamlockButton.TextSize =
CamlockButton.Font = .Font.GothamBold
CamlockButton.Parent = Gui
.(, CamlockButton).CornerRadius =
.(, )
AutoAirButton = .()
AutoAirButton.Name =
AutoAirButton.Size =
.(, , , )
AutoAirButton.Position =
.(, -, , -)
AutoAirButton.BackgroundColor3 =
.(, , )
AutoAirButton.Text =
AutoAirButton.TextColor3 =
.(, , )
AutoAirButton.TextSize =
AutoAirButton.Font = .Font.GothamBold
AutoAirButton.Parent = Gui
.(, AutoAirButton).CornerRadius =
.(, )
LockButton = .()
LockButton.Name =
LockButton.Size =
.(, , , )
LockButton.Position =
.(, -, , -)
LockButton.BackgroundColor3 =
.(, , )
LockButton.Text =
LockButton.TextColor3 =
.(, , )
LockButton.TextSize =
LockButton.Font = .Font.GothamBold
LockButton.Parent = Gui
.(, LockButton).CornerRadius =
.(, )
PlayerMenu = .()
PlayerMenu.Name =
PlayerMenu.Size =
.(, , , )
PlayerMenu.Position =
.(, , , -)
PlayerMenu.BackgroundColor3 =
.(, , )
PlayerMenu.BorderSizePixel =
PlayerMenu.Parent = Gui
.(, PlayerMenu).CornerRadius =
.(, )
Title = .()
Title.Size =
.(, -, , )
Title.Position =
.(, , , )
Title.BackgroundTransparency =
Title.Text =
Title.TextColor3 =
.(, , )
Title.TextSize =
Title.Font = .Font.GothamBold
Title.TextXAlignment =
.TextXAlignment.Left
Title.Parent = PlayerMenu
TopArrow = .()
TopArrow.Name =
TopArrow.Size =
.(, , , )
TopArrow.Position =
.(, -, , )
TopArrow.BackgroundTransparency =
TopArrow.Text =
TopArrow.TextColor3 =
.(, , )
TopArrow.TextSize =
TopArrow.Font = .Font.GothamBold
TopArrow.Parent = PlayerMenu
SearchBox = .()
SearchBox.Name =
SearchBox.Size =
.(, -, , )
SearchBox.Position =
.(, , , )
SearchBox.BackgroundColor3 =
.(, , )
SearchBox.PlaceholderText =
SearchBox.PlaceholderColor3 =
.(, , )
SearchBox.Text =
SearchBox.TextColor3 =
.(, , )
SearchBox.TextSize =
SearchBox.Font = .Font.Gotham
SearchBox.ClearTextOnFocus =
SearchBox.Parent = PlayerMenu
.(, SearchBox).CornerRadius =
.(, )
PlayerList = .()
PlayerList.Name =
PlayerList.Size =
.(, -, , -)
PlayerList.Position =
.(, , , )
PlayerList.BackgroundTransparency =
PlayerList.BorderSizePixel =
PlayerList.ScrollBarThickness =
PlayerList.Parent = PlayerMenu
Layout = .()
Layout.Padding =
.(, )
Layout.Parent = PlayerList
BottomArrow = .()
BottomArrow.Name =
BottomArrow.Size =
.(, , , )
BottomArrow.Position =
.(, , , -)
BottomArrow.BackgroundTransparency =
BottomArrow.Text =
BottomArrow.TextColor3 =
.(, , )
BottomArrow.TextSize =
BottomArrow.Font = .Font.GothamBold
BottomArrow.Parent = PlayerMenu
()
Highlight
Highlight:()
Highlight =
(Player)
()
Player
Player.Character
Highlight = .()
Highlight.Name =
Highlight.Adornee =
Player.Character
Highlight.FillTransparency =
Highlight.OutlineTransparency =
Highlight.OutlineColor =
.(, , )
Highlight.Parent =
Player.Character
(Player)
CurrentTarget == Player
()
CurrentTarget = Player
Player
TargetLabel.Text =
..
Player.DisplayName
(Player)
TargetLabel.Text =
()
ClosestPlayer =
ClosestDistance = .huge
Viewport =
Camera.ViewportSize
CameraCenter =
.(
Viewport.X / ,
Viewport.Y /
)
_, Player (
Players:()
)
Player ~= LocalPlayer
Character =
Player.Character
Character
Humanoid =
Character:(
)
Root =
Character:(
)
Humanoid
Root
Humanoid.Health >
ScreenPosition, OnScreen =
Camera:(
Root.Position
)
OnScreen
Point =
.(
ScreenPosition.X,
ScreenPosition.Y
)
Distance =
(
Point -
CameraCenter
).Magnitude
Distance <
ClosestDistance
ClosestDistance =
Distance
ClosestPlayer =
Player
ClosestPlayer
()
_, Child (
PlayerList:()
)
Child:()
Child:()
Search =
.(
SearchBox.Text
)
_, Player (
Players:()
)
Player ~= LocalPlayer
Username =
.(
Player.Name
)
DisplayName =
.(
Player.DisplayName
)
Matches =
Search ==
.(
Username,
Search,
,
)
.(
DisplayName,
Search,
,
)
Matches
Button =
.(
)
Button.Size =
.(
,
-,
,
)
Button.BackgroundColor3 =
.(
,
,
)
Button.TextColor3 =
.(
,
,
)
Button.Text =
Player.DisplayName ..
..
Player.Name
Button.TextSize =
Button.Font =
.Font.Gotham
Button.Parent =
PlayerList
.(
,
Button
).CornerRadius =
.(, )
Button.Activated:(
()
ManualTarget =
Player
(
Player
)
)
PlayerList.CanvasSize =
.(
,
,
,
Layout.AbsoluteContentSize.Y +
)
SearchBox:(
):(
RefreshPlayers
)
Players.PlayerAdded:(
RefreshPlayers
)
Players.PlayerRemoving:(
(Player)
ManualTarget ==
Player
ManualTarget =
CurrentTarget ==
Player
()
()
)
()
()
MenuOpen =
PlayerMenu.Size =
.(
,
,
,
)
SearchBox.Visible =
PlayerList.Visible =
BottomArrow.Visible =
TopArrow.Text =
()
MenuOpen =
PlayerMenu.Size =
.(
,
,
,
)
SearchBox.Visible =
PlayerList.Visible =
BottomArrow.Visible =
TopArrow.Text =
TopArrow.Activated:(
()
MenuOpen
()
()
)
BottomArrow.Activated:(
CloseMenu
)
CamlockButton.Activated:(
()
CamlockEnabled =
CamlockEnabled
CamlockEnabled
CamlockButton.Text =
CamlockButton.BackgroundColor3 =
.(
,
,
)
CamlockButton.Text =
CamlockButton.BackgroundColor3 =
.(
,
,
)
()
)
AutoAirButton.Activated:(
()
AutoAirEnabled =
AutoAirEnabled
AutoAirEnabled
AutoAirButton.Text =
AutoAirButton.BackgroundColor3 =
.(
,
,
)
AutoAirButton.Text =
AutoAirButton.BackgroundColor3 =
.(
,
,
)
LastTargetJumpState =
)
LockButton.Activated:(
()
ButtonsLocked = ButtonsLocked
ButtonsLocked
LockButton.Text =
LockButton.BackgroundColor3 =
.(
,
,
)
LockButton.Text =
LockButton.BackgroundColor3 =
.(
,
,
)
)
RunService.RenderStepped:(
()
CamlockEnabled
ManualTarget
ManualTarget.Parent
ManualTarget =
()
(
ManualTarget
)
AutomaticTarget =
()
(
AutomaticTarget
)
CurrentTarget
CurrentTarget.Character
()
Root =
CurrentTarget.Character:
(
)
Root
AutoAirEnabled
Humanoid =
CurrentTarget.Character:
()
Humanoid
IsJumping =
Humanoid:() ==
.HumanoidStateType.Jumping
Humanoid:() ==
.HumanoidStateType.Freefall
IsJumping LastTargetJumpState
()
LastTargetJumpState = IsJumping
LastTargetJumpState =
Camera.CFrame =
.(
Camera.CFrame.Position,
Root.Position
)
)
(Object, CanLock)
Dragging =
DragStart
StartPosition
Object.InputBegan:(
(Input)
CanLock ButtonsLocked
Input.UserInputType ==
.UserInputType.MouseButton1
Input.UserInputType ==
.UserInputType.Touch
Dragging =
DragStart =
Input.Position
StartPosition =
Object.Position
)
UserInputService.InputChanged:(
(Input)
Dragging
CanLock ButtonsLocked
Dragging =
Input.UserInputType ==
.UserInputType.MouseMovement
Input.UserInputType ==
.UserInputType.Touch
Delta =
Input.Position -
DragStart
Object.Position =
.(
StartPosition.X.Scale,
StartPosition.X.Offset +
Delta.X,
StartPosition.Y.Scale,
StartPosition.Y.Offset +
Delta.Y
)
)
UserInputService.InputEnded:(
(Input)
Input.UserInputType ==
.UserInputType.MouseButton1
Input.UserInputType ==
.UserInputType.Touch
Dragging =
)
(PlayerMenu, )
(CamlockButton, )
(AutoAirButton, )
Players.PlayerAdded:(
(Player)
Player.CharacterAdded:(
()
.()
CurrentTarget ==
Player
(
Player
)
)
)Camlock with a player list for shooting games

Universal