Universal Script 📌
257 Views
57 Executions

hightlight script esp

Universal Script 📌
sh11t
sh11tPublished 5
9 months 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

capslock to enable/off script

View Raw
//xaydev
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local StarterGui = game:GetService("StarterGui")

local ESPEnabled = false

-- Notification helper
local function notify(msg)
    StarterGui:SetCore("SendNotification", {
        Title = "ESP",
        Text = msg,
        Duration = 2
    })
end


local function addHighlight(player)
    if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
        if not player.Character:FindFirstChild("ESPHighlight") then
            local highlight = Instance.new("Highlight")
            highlight.Name = "ESPHighlight"
            -- TeamColor fill
            if player.Team and player.Team.TeamColor then
                highlight.FillColor = player.Team.TeamColor.Color
            else
                highlight.FillColor = Color3.fromRGB(255, 0, 0)
            end
            highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
            highlight.FillTransparency = 0.7
            highlight.OutlineTransparency = 0
            highlight.Parent = player.Character
        end
    end
end

local function removeHighlight(player)
    if player.Character and player.Character:FindFirstChild("ESPHighlight") then
        player.Character.ESPHighlight:Destroy()


Comments

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

More universal scripts

See all
Script hub
6.8k
53.8k
Bumped 15 minutes ago
Universal Script 📌
18
1
Approved 16 minutes ago
Script hub
13.1k
62.1k
Bumped 45 minutes ago
Script hub
2.4k
7.4k
Bumped 2 hours ago
Key System
Universal Script 📌
1.3k
4.9k
Bumped 2 hours ago