#Target Lock on towards where camera is pointing
6 messages · Page 1 of 1 (latest)
Read this thread: https://devforum.roblox.com/t/how-to-find-player-closest-to-the-mouse-and-reference-them/1362332/29
Developer Forum | Roblox
Then try this for the local script: local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local localPlayer = Players.LocalPlayer local mouse = localPlayer:GetMouse () local maxDistance = 10 UserInputService.InputBegan:Connect(function (input,gp) if gp then return end local nearestPla...
With shift lock the mouse is in the middle of the screen so it’d be whoever they look at
ok i will, thanks
** You are now Level 4! **