
574 Views
71 Executions
Dev Scripts
Universal Script 📌
ScripMakerPublished 5
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
This script it basically shows you people's health bar above their head if they are dying or reset re-execute the script again (works in anygame)
loadstring([[
local Players = game:GetService("Players")
local function createHealthBar(character)
local humanoid = character:WaitForChild("Humanoid")
local head = character:WaitForChild("Head")
-- Remove duplicates
if head:FindFirstChild("HealthBar") then
head.HealthBar:Destroy()
end
-- Billboard
local billboard = Instance.new("BillboardGui")
billboard.Name = "HealthBar"
billboard.Size = UDim2.new(8, 0, 2, 0)
billboard.StudsOffset = Vector3.new(0, 4, 0)
billboard.AlwaysOnTop = true
billboard.Parent = head
-- Background
local bg = Instance.new("Frame")
bg.Size = UDim2.new(1, 0, 0.3, 0)
bg.Position = UDim2.new(0, 0, 0.7, 0)
bg.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
bg.BorderSizePixel = 0
bg.Parent = billboard
-- Green bar
local bar = Instance.new("Frame")
bar.Size = UDim2.new(1, 0, 1, 0)
bar.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
bar.BorderSizePixel = 0
bar.Parent = bg
-- Text (Exact HP)
local text = Instance.new("TextLabel")
text.Size = UDim2.new(1, 0, 1.3, 0)
text.Position = UDim2.new(0, 0, -1.3, 0)
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







