
934 Views
217 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
this script is a little weird i can't really explain how to work it bugs sometimes if you have godmode and die the gui disappears which makes this gui a little buggy
Key features:
⢠Reliable NPC detection (using DescendantAdded/Removed + initial scan)
⢠Player-to-NPC distance used for color + thresholds
⢠Name | Distance | Health billboard text (up to 5000 studs)
⢠Highlight outline (up to 2000 studs)
⢠Select Mode: click to toggle selection (multi-select); double-click to unselect
⢠Changeable keybind (default T) to toggle global ESP on/off
⢠Modern draggable GUI
⢠Optimized lazy visuals to reduce lag
]]
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local RS = game:GetService("RunService")
local Workspace = workspace
local LocalPlayer = Players.LocalPlayer
local Mouse = LocalPlayer:GetMouse()
-- Config
local TEXT_MAX_DISTANCE = 5000
local OUTLINE_MAX_DISTANCE = 2000
local SELECT_CLICK_MAX_STUDS = 300 -- how far clicking may select
local SELECT_CLICK_MAX_SCREEN_DIST = 80 -- pixels threshold to mouse when selecting by screen pos
-- State
local ESPKey = Enum.KeyCode.T
local awaitingKey = false
local espEnabled = true -- global ESP toggle
local selectMode = false -- when true, clicking toggles selection; you can select many
local selectedSet = {} -- [model] = true for forced selection
local trackedNPCs = {} -- [model] = true for candidate NPCs (humanoid, not player)
local ESPS = {} -- [model] = {highlight, billboard, label, created = true}
-- Utility functions
local function isPlayerCharacter(model)
if not model or not model:IsA("Model") then return false end
return Players:GetPlayerFromCharacter(model) ~= nil
end










yo u got discord?