Run it
Copy the script and paste it into your executor.
game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Loaded", Text = "press Q to auto aim"})
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
-- Settings
local Settings = {
BindKey = "Q" -- Custom Key
}
local isClicking = false
local function getClosestPlayer()
local closestPlayer = nil
shortestDistance = .huge
_, player (Players:())
player ~= LocalPlayer player.Character player.Character:()
distance = (player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).magnitude
distance < shortestDistance
closestPlayer = player
shortestDistance = distance
closestPlayer
(target)
target target.Character target.Character:()
targetPosition = target.Character.HumanoidRootPart.Position
Camera.CFrame = .(Camera.CFrame.Position, targetPosition)
isClicking
isClicking =
()
isClicking =
UserInputService.InputBegan:((input, gameProcessed)
input.KeyCode == .KeyCode[Settings.BindKey:()] gameProcessed
closestPlayer = ()
(closestPlayer)
)Proximity aim for roblox universal made by chatgpt Every time you press the Q (or custom) the camera will automatically redirect to the nearest player and click

Universal