Run it
Copy the script and paste it into your executor.
UIS = :()
RunService = :()
Players = :()
LocalPlayer = Players.LocalPlayer
Camera = .CurrentCamera
SMOOTHNESS =
FIELD_OF_VIEW =
AIM_KEY = .UserInputType.MouseButton2
isAiming =
UIS.InputBegan:((input)
input.UserInputType == AIM_KEY
isAiming =
)
UIS.InputEnded:((input)
input.UserInputType == AIM_KEY
isAiming =
)
()
closestTarget =
shortestDistance = .huge
_, player (Players:())
player ~= LocalPlayer player.Character player.Character:()
screenPos, onScreen = Camera:(player.Character.HumanoidRootPart.Position)
onScreen
mousePos = .(Camera.ViewportSize.X / , Camera.ViewportSize.Y / )
distance = (.(screenPos.X, screenPos.Y) - mousePos).Magnitude
distance < shortestDistance distance < FIELD_OF_VIEW *
shortestDistance = distance
closestTarget = player.Character.HumanoidRootPart
closestTarget
RunService.RenderStepped:(()
isAiming
target = ()
target
targetRotation = .(Camera.CFrame.Position, target.Position)
Camera.CFrame = Camera.CFrame:(targetRotation, SMOOTHNESS)
)
RunService = :()
Players = :()
LocalPlayer = Players.LocalPlayer
Camera = .CurrentCamera
LINE_THICKNESS =
RAINBOW_SPEED =
(targetPlayer)
character = targetPlayer.Character targetPlayer.CharacterAdded:()
highlight = .()
highlight.Name =
highlight.Parent = character
highlight.FillTransparency =
highlight.OutlineTransparency =
line = .()
line.Visible =
line.Thickness = LINE_THICKNESS
line.Transparency =
highlight, line
espData = {}
RunService.RenderStepped:(()
t = () * RAINBOW_SPEED
rainbowColor = .(t % , , )
_, player (Players:())
player ~= LocalPlayer player.Character player.Character:()
rootPart = player.Character.HumanoidRootPart
screenPos, onScreen = Camera:(rootPart.Position)
espData[player]
h, l = (player)
espData[player] = {Highlight = h, Line = l}
data = espData[player]
data.Highlight.FillColor = rainbowColor
data.Highlight.OutlineColor = rainbowColor
onScreen
data.Line.From = .(Camera.ViewportSize.X / , Camera.ViewportSize.Y)
data.Line.To = .(screenPos.X, screenPos.Y)
data.Line.Color = rainbowColor
data.Line.Visible =
data.Line.Visible =
)
Universal