
2.5k Views
406 Executions
Esp with health bar ONLY FOR GAMES WITH TEAMS
Universal Script 📌
John_Skibidi10 followers
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo 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
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
0Log in to join the conversation. Login
No comments yet. Be the first!







