Universal Script šŸ“Œ
934 Views
217 Executions

Npc Esp

Universal Script šŸ“Œ
VoidX5
VoidX510K executions
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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

View Raw
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



Comments

1
Log in to join the conversation. Login
globalexploitor's profile picture
globalexploitor1 year ago

yo u got discord?

1

More universal scripts

See all
Script hub
166.2k
594.7k
Bumped 7 minutes ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Script hub
32
2
Approved 24 minutes ago
Key System
Universal Script šŸ“Œ
17
3
Approved 27 minutes ago
Script hub
364
1.3k
Bumped 50 minutes ago
Key System
Script hub
313.9k
1.2M
Bumped 1 hour ago
Key System