Universal Script ๐Ÿ“Œ
7.6k Views
2.0k Executions

Universal Highlight NPCs

Universal Script ๐Ÿ“Œ
XWelly
XWellyFirst script
2 years 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

Highlights All NPCs, even through walls. This works on mobile too. If the script is executed and you canโ€™t see the NPC highlighted, knowing the NPC is in game, thatโ€™s because the NPC is far away from you. (The script still work and will show when an npc is close to you.) All you gotta do is execute. NOTE: The original script didnโ€™t had a loop command and players will have to execute repeatedly for new NPCs to show, eventually causing disruption in performance. So I did some rewriting and modifications to the script so the script itself will loop with better performance and without lag. Credits/Original script by: braverpsx Rescripted by me.

Updates

  1. Script edited: Create script

View Raw
local function applyHighlight(item)
    if item:IsA("Humanoid") then
        local highlight = Instance.new("Highlight")
        local parent = item.Parent
        if parent then
            local plr = game.Players:GetPlayerFromCharacter(parent)
            if not plr then
                highlight.Parent = parent
            end
        end
    end
end

for _, item in pairs(workspace:GetDescendants()) do
    applyHighlight(item)
end

workspace.DescendantAdded:Connect(applyHighlight)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
2.0M
626.6k
Bumped 28 minutes ago
Key System
Script hub
202.4k
2.3M
Bumped 2 hours ago
Key System

Script hub

#20 this week

Verified script badgeAirflow HUB

Universal Script ๐Ÿ“Œ
57.4k
270.2k
Bumped 4 hours ago
Key System
Script hub
2.2M
2.5M
Bumped 7 hours ago
Key System
Universal Script ๐Ÿ“Œ
33.4k
479.7k
Bumped 7 hours ago
Script hub
4.0M
2.7M
Bumped 7 hours ago

Script hub

Hall of Fame #5

KeylessVerified script badge[KEYLESS] Moondiety Script | 30+ supported Games