Universal Script 📌
2.6k Views
464 Executions

Esp with health bar ONLY FOR GAMES WITH TEAMS

Universal Script 📌
John_Skibidi
John_Skibidi10 followers
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

A ESP made by AI because idk just dont hate me for that

View Raw
local Players = game:GetService("Players")

-- Function to apply team-colored highlight
local function applyHighlightToCharacter(player, character)
	if not player.Team then return end

	-- Remove existing highlight if any
	local oldHighlight = character:FindFirstChild("TeamHighlight")
	if oldHighlight then
		oldHighlight:Destroy()
	end

	local highlight = Instance.new("Highlight")
	highlight.Name = "TeamHighlight"
	highlight.FillTransparency = 0.5
	highlight.OutlineTransparency = 1
	highlight.FillColor = player.TeamColor.Color
	highlight.Adornee = character
	highlight.Parent = character
end

-- Function to add a health bar BillboardGui
local function addHealthBar(player, character)
	local humanoid = character:FindFirstChildOfClass("Humanoid")
	if not humanoid then return end

	-- Remove old health bar if any
	local oldGui = character:FindFirstChild("HealthBar")
	if oldGui then oldGui:Destroy() end

	local billboard = Instance.new("BillboardGui")
	billboard.Name = "HealthBar"
	billboard.Size = UDim2.new(4, 0, 0.5, 0)
	billboard.StudsOffset = Vector3.new(0, 4, 0)
	billboard.AlwaysOnTop = true
	billboard.Parent = character

	local bg = Instance.new("Frame")
	bg.Size = UDim2.new(1, 0, 1, 0)
	bg.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)


Comments

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

Tags

More universal scripts

See all
Script hub
3.0M
18.5M
Bumped 4 hours ago

Script hub

Hall of Fame #1

KeylessVerified script badgeYARHM Hub KEYLESS 2026

Script hub
119.5k
193.9k
Bumped 9 hours ago
Key System
Script hub
180.9k
1.8M
Bumped 9 hours ago
Key System
Universal Script 📌
1.2k
2.6k
Bumped 10 hours ago
Script hub
60.2k
244.1k
Bumped 10 hours ago
Key System
Universal Script 📌
6.3k
53.5k
Bumped 12 hours ago