Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Workspace = game:()
LocalPlayer = Players.LocalPlayer
Camera = Workspace.CurrentCamera
AIM_PART =
AIM_SMOOTHNESS =
MAX_DISTANCE =
()
closestPlayer =
closestDistance = MAX_DISTANCE
_, player (Players:())
player ~= LocalPlayer player.Character player.Character:(AIM_PART)
targetPart = player.Character[AIM_PART]
direction = (targetPart.Position - Camera.CFrame.Position)
rayParams = RaycastParams.()
rayParams.FilterDescendantsInstances = {LocalPlayer.Character}
rayParams.FilterType = .RaycastFilterType.Blacklist
ray = Workspace:(Camera.CFrame.Position, direction, rayParams)
ray ray.Instance ray.Instance:(player.Character)
screenPoint, onScreen = Camera:(targetPart.Position)
onScreen
distance = (Camera.CFrame.Position - targetPart.Position).Magnitude
distance < closestDistance
closestDistance = distance
closestPlayer = targetPart
Players = :()
RunService = :()
LocalPlayer = Players.LocalPlayer
(player)
player == LocalPlayer
(character)
torso = character:()
torso torso:()
box = .()
box.Name =
box.Adornee = torso
box.AlwaysOnTop =
box.ZIndex =
box.Size = .(, , )
box.Color3 = .(, , )
box.Transparency =
box.Parent = torso
player.Character
(player.Character)
player.CharacterAdded:((character)
()
(character)
)
_, player (Players:())
(player)
Players.PlayerAdded:((player)
(player)
)
Universal