Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Workspace = game:GetService("Workspace")
Camera = Workspace.CurrentCamera
(part)
screenPoint, onScreen = Camera:(part.Position)
onScreen
Drawings = {}
()
_, drawing (Drawings)
drawing:()
Drawings = {}
_, player (Players:())
character = player.Character
humanoid = character character:()
head = character character:()
humanoid head (head)
topLeft = character:():(character:() * -)
bottomRight = character:():(character:() * )
topLeftScreen, _ = Camera:(topLeft)
bottomRightScreen, _ = Camera:(bottomRight)
width = bottomRightScreen.X - topLeftScreen.X
height = bottomRightScreen.Y - topLeftScreen.Y
box = .()
box.Position = .(topLeftScreen.X, topLeftScreen.Y)
box.Size = .(width, height)
box.Color = .(, , )
box.Thickness =
box.Filled =
.(Drawings, box)
healthPercentage = humanoid.Health / humanoid.MaxHealth
healthBarHeight = height * healthPercentage
healthBar = .()
healthBar.Position = .(bottomRightScreen.X, topLeftScreen.Y)
healthBar.Size = .(, healthBarHeight)
healthBar.Color = .( - healthPercentage, healthPercentage, )
healthBar.Thickness =
healthBar.Filled =
.(Drawings, healthBar)
playerName = .()
playerName.Text = player.Name
playerName.Position = .(topLeftScreen.X + (width/), topLeftScreen.Y - )
playerName.Size =
playerName.Color = .(, , )
playerName.Center =
.(Drawings, playerName)
:().RenderStepped:(()
()
)
made this script for fun lol

Universal