Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
Camera = .CurrentCamera
LocalPlayer = Players.LocalPlayer
Settings = {
Enabled = ,
ShowName = ,
ShowPosition = ,
ShowTool = ,
ShowHealth = ,
ShowDistance = ,
ShowTeam = ,
TextSize = ,
Font = .Font.GothamBold,
TextColor = .(, , ),
OutlineColor = .(, , ),
UpdateRate = ,
UseTeamColors = ,
DefaultTeamColor = .(, , )
}
PlayerLabels = {}
CustomTeams = {}
(player)
player.Team
{
Name = player.Team.Name,
Color = player.Team.TeamColor player.Team.TeamColor.Color Settings.DefaultTeamColor,
Type =
}
character = player.Character
character
groupValue = character:() character:()
groupValue groupValue:()
{
Name = groupValue.Value,
Color = Settings.DefaultTeamColor,
Type =
}
teamValue = character:() character:()
teamValue teamValue:()
teamNum = teamValue.Value
CustomTeams[teamNum]
{
Name = CustomTeams[teamNum].Name,
Color = CustomTeams[teamNum].Color,
Type =
}
{
Name = .. teamNum,
Color = Settings.DefaultTeamColor,
Type =
}
leaderstats = player:()
leaderstats
teamStat = leaderstats:() leaderstats:()
teamStat (teamStat:() teamStat:())
teamStat:()
{
Name = teamStat.Value,
Color = Settings.DefaultTeamColor,
Type =
}
{
Name = .. teamStat.Value,
Color = Settings.DefaultTeamColor,
Type =
}
success, groupName = (()
player:() player:() player:()
)
success groupName
{
Name = groupName,
Color = Settings.DefaultTeamColor,
Type =
}
(teamId, teamName, teamColor)
CustomTeams[teamId] = {
Name = teamName,
Color = teamColor Settings.DefaultTeamColor
}
(player)
Settings.UseTeamColors
Settings.TextColor
team = (player)
team
team.Color
Settings.TextColor
(team)
team
teamEmojis = {
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] =
}
teamName = team.Name
emoji =
name, icon (teamEmojis)
teamName:(name, , )
emoji = icon ..
team.Type ==
emoji .. .. teamName
team.Type ==
emoji .. .. teamName
emoji .. teamName
(player)
character = player.Character
character
tool = character:()
tool
tool.Name
hopperBin = character:()
hopperBin
hopperBin.Name
(player)
character = player.Character
character
humanoid = character:()
humanoid
.(humanoid.Health)
(position)
.(, position.X, position.Y, position.Z)
(position)
cameraPos = Camera.CFrame.Position
.((position - cameraPos).Magnitude)
(player)
Settings.Enabled
player == LocalPlayer
character = player.Character
character character:()
PlayerLabels[player]
PlayerLabels[player]:()
PlayerLabels[player] =
name = player.Name
position = character.HumanoidRootPart.Position
tool = (player)
health = (player)
distance = (position)
formattedPos = (position)
team = (player)
infoText = {}
Settings.ShowName
.(infoText, name)
Settings.ShowTeam team
teamFormatted = (team)
.(infoText, .. teamFormatted .. )
Settings.ShowHealth
.(infoText, .(, health))
Settings.ShowPosition
.(infoText, .(, formattedPos))
Settings.ShowTool
.(infoText, .(, tool))
Settings.ShowDistance
.(infoText, .(, distance))
fullText = .(infoText, )
textColor = (player)
PlayerLabels[player]
billboardGui = .()
billboardGui.Adornee = character:()
billboardGui.Size = .(, , , )
billboardGui.StudsOffset = .(, , )
billboardGui.AlwaysOnTop =
billboardGui.ZIndexBehavior = .ZIndexBehavior.Sibling
textLabel = .()
textLabel.Size = .(, , , )
textLabel.BackgroundTransparency =
textLabel.TextScaled =
textLabel.TextSize = Settings.TextSize
textLabel.Font = Settings.Font
textLabel.TextColor3 = textColor
textLabel.TextStrokeTransparency =
textLabel.TextStrokeColor3 = Settings.OutlineColor
textLabel.Text = fullText
textLabel.Parent = billboardGui
billboardGui.Parent = character
PlayerLabels[player] = {
Gui = billboardGui,
Label = textLabel,
CurrentTeam = team
}
PlayerLabels[player].Label.Text = fullText
PlayerLabels[player].Label.TextColor3 = textColor
team ( PlayerLabels[player].CurrentTeam PlayerLabels[player].CurrentTeam.Name ~= team.Name)
PlayerLabels[player].CurrentTeam = team
()
player, data (PlayerLabels)
data data.Gui
data.Gui:()
PlayerLabels = {}
()
Settings.Enabled
()
_, player (Players:())
(player)
(player)
player.CharacterAdded:(()
.()
(player)
)
player.CharacterRemoving:(()
PlayerLabels[player]
PlayerLabels[player].Gui:()
PlayerLabels[player] =
)
player.Team
teamConnection
teamConnection = player:():(()
(player)
)
player._teamConnection
player._teamConnection = teamConnection
(player)
PlayerLabels[player]
PlayerLabels[player].Gui:()
PlayerLabels[player] =
()
userInputService = :()
userInputService.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.Insert
Settings.Enabled = Settings.Enabled
Settings.Enabled
()
()
()
()
input.KeyCode == .KeyCode.RightControl
Settings.UseTeamColors = Settings.UseTeamColors
( .. (Settings.UseTeamColors))
()
)
()
.(()
Settings.Enabled
()
.(Settings.UpdateRate)
)
()
()
_, player (Players:())
(player)
Players.PlayerAdded:(OnPlayerAdded)
Players.PlayerRemoving:(OnPlayerRemoved)
()
()
()
()
()
()
.RegisterCustomTeam = RegisterCustomTeam
.ESP_Settings = Settings
()
Universal