Universal Script 📌
3.1k Views
164 Executions

ESP made by the best AI model

Universal Script 📌
indonesiangamer777
indonesiangamer777Published 10
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

btw this took only ONE prompt

View Raw
--!optimize 2
--!native

-- // Services
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local CoreGui = game:GetService("CoreGui") -- Alternative parent for Highlight if needed

-- // Local Player Variables
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") -- Ensure PlayerGui is loaded

-- // Configuration
local ESP_ENABLED = true -- Toggle the entire ESP on/off
local TEAM_CHECK_ENABLED = true -- << NEW: Only show ESP for players NOT on your team
local SHOW_NAMES = true
local SHOW_HEALTH = true
local USE_HIGHLIGHT = true -- Use the Highlight instance for outlines
local HIGHLIGHT_COLOR = Color3.fromRGB(255, 50, 50) -- Red for enemies (adjust as needed)
local HIGHLIGHT_FILL_TRANSPARENCY = 0.8
local NAME_COLOR = Color3.fromRGB(255, 255, 255) -- White name
local HEALTH_BAR_ENABLED = true -- Simple bar above health text
local HEALTH_BAR_SIZE = UDim2.new(0, 100, 0, 5) -- Width 100px, Height 5px
local MAX_DISTANCE = 1000 -- Only show ESP for players within this distance (in studs). Set to math.huge for infinite.

-- // ESP Management Table
local espInstances = {} -- Store references to created ESP elements { Player = { BillboardGui, Highlight } }

-- // Function to clean up ESP for a specific player
local function CleanupESP(targetPlayer)
	if espInstances[targetPlayer] then
		if espInstances[targetPlayer].BillboardGui then
			espInstances[targetPlayer].BillboardGui:Destroy()
		end
		if espInstances[targetPlayer].Highlight then
			espInstances[targetPlayer].Highlight:Destroy()
		end
		espInstances[targetPlayer] = nil -- Remove entry
	end
end


Comments

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

More universal scripts

See all
Universal Script 📌
25
0
Approved 23 minutes ago
Key System
Script hub
167.3k
1.3M
Bumped 31 minutes ago
Key System
Script hub
265.4k
102.3k
Bumped 2 hours ago
Key System
Script hub
281.5k
917.0k
Bumped 4 hours ago
Key System

Script hub

#21 this week

Verified script badgeAxon Hub 60+ Games & 800+ Features

Script hub
2.1M
704.6k
Bumped 5 hours ago
Key System

Script hub

#5 today

Verified script badgeLumin Hub | #1 | Insta Steal

Universal Script 📌
30.0k
88.2k
Bumped 6 hours ago
Script hub
19.0k
65.5k
Bumped 6 hours ago
Key System