Universal Script 📌
2.5k Views
406 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
21.1k
74.4k
Bumped 46 minutes ago
Key System
Script hub
601.1k
48.7k
Bumped 55 minutes ago
Script hub
7.0k
54.9k
Bumped 3 hours ago
Universal Script 📌
155
20
Approved 3 hours ago
Script hub
13.3k
63.3k
Bumped 4 hours ago
Script hub
2.6k
7.7k
Bumped 5 hours ago
Key System